Forum OpenACS Q&A: Re: PostgreSQL 7.2.x on Mac OSX 10.2.x?

Collapse
Posted by Tom Lazar on
thanks for the pointer Walter,

however, even when following the updated instructions there I can't manage to build postgresql 7.2.x (I tried the 7.2.4 and then the 7.2.1 versions) under 10.2.4 (with the Dec2002 DevTools).

I did send a report to MarkD, though, perhaps he can shed some light onto the issue. In the meantime, for your entertainment 😉 the output of make, when I attempt to build postgresql:

[cassady:~/Desktop/tomster.org/postgresql-7.2.1] tomster% make
make -C doc all
gzip -d -c man.tar.gz | /usr/bin/tar xf -
for file in man1/*.1; do \
  mv $file $file.bak && \
  sed -e 's/\\fR(l)/\\fR(7)/' $file.bak >$file && \
  rm $file.bak || exit; \
done
/bin/sh ../config/mkinstalldirs man7
mkdir man7
for file in manl/*.l; do \
  sed -e '/^\.TH/s/"l"/"7"/'  \
              -e 's/\\fR(l)/\\fR(7)/' \
      $file >man7/`basename $file | sed 's/.l$/.7/'` || exit; \
done
make -C src all
make -C backend all
prereqdir=`cd parser/ >/dev/null && pwd` && \
  cd ../../src/include/parser/ && rm -f parse.h && \
  ln -s "$prereqdir/parse.h" .
make -C utils fmgroids.h
CPP='gcc -traditional-cpp -E' AWK='awk' /bin/sh Gen_fmgrtab.sh ../../../src/include/catalog/pg_proc.h
cd ../../src/include/utils/ && rm -f fmgroids.h && \
    ln -s ../../../src/backend/utils/fmgroids.h .
make -C access all
make -C common SUBSYS.o
gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -c -o heaptuple.o heaptuple.c
In file included from ../../../../src/include/postgres.h:47,
                from heaptuple.c:21:
../../../../src/include/c.h:55:19: stdio.h: No such file or directory
../../../../src/include/c.h:56:20: stdlib.h: No such file or directory
../../../../src/include/c.h:57:20: string.h: No such file or directory
../../../../src/include/c.h:58:20: stddef.h: No such file or directory
../../../../src/include/c.h:73:20: locale.h: No such file or directory
In file included from ../../../../src/include/postgres.h:47,
                from heaptuple.c:21:
../../../../src/include/c.h:314: parse error before "Size"
../../../../src/include/c.h:314: warning: type defaults to `int' in declaration of `Size'
../../../../src/include/c.h:314: warning: data definition has no type or storage class
../../../../src/include/c.h:631: parse error before "size_t"
../../../../src/include/c.h:637: parse error before "size_t"
In file included from ../../../../src/include/postgres.h:49,
                from heaptuple.c:21:
../../../../src/include/utils/palloc.h:48: parse error before "Size"
../../../../src/include/utils/palloc.h:54: parse error before "Size"
In file included from ../../../../src/include/storage/shmem.h:17,
                from ../../../../src/include/storage/lock.h:19,
                from ../../../../src/include/storage/bufmgr.h:19,
                from ../../../../src/include/storage/bufpage.h:18,
                from ../../../../src/include/access/htup.h:17,
                from ../../../../src/include/access/heapam.h:17,
                from heaptuple.c:23:
../../../../src/include/utils/hsearch.h:90: warning: parameter names (without types) in function declaration
../../../../src/include/utils/hsearch.h:109: warning: parameter names (without types) in function declaration
In file included from ../../../../src/include/storage/lock.h:19,
                from ../../../../src/include/storage/bufmgr.h:19,
                from ../../../../src/include/storage/bufpage.h:18,
                from ../../../../src/include/access/htup.h:17,
                from ../../../../src/include/access/heapam.h:17,
                from heaptuple.c:23:
../../../../src/include/storage/shmem.h:66: parse error before "size"
../../../../src/include/storage/shmem.h:71: parse error before "Size"
../../../../src/include/storage/shmem.h:96: parse error before "Size"
In file included from ../../../../src/include/nodes/pg_list.h:17,
                from ../../../../src/include/access/tupdesc.h:19,
                from ../../../../src/include/utils/rel.h:18,
                from ../../../../src/include/storage/bufmgr.h:21,
                from ../../../../src/include/storage/bufpage.h:18,
                from ../../../../src/include/access/htup.h:17,
                from ../../../../src/include/access/heapam.h:17,
                from heaptuple.c:23:
../../../../src/include/nodes/nodes.h:271: parse error before "size"
In file included from ../../../../src/include/utils/rel.h:23,
                from ../../../../src/include/storage/bufmgr.h:21,
                from ../../../../src/include/storage/bufpage.h:18,
                from ../../../../src/include/access/htup.h:17,
                from ../../../../src/include/access/heapam.h:17,
                from heaptuple.c:23:
../../../../src/include/storage/fd.h:69: parse error before '*' token
../../../../src/include/storage/fd.h:69: warning: type defaults to `int' in declaration of `AllocateFile'
../../../../src/include/storage/fd.h:69: warning: data definition has no type or storage class
../../../../src/include/storage/fd.h:70: parse error before '*' token
In file included from ../../../../src/include/access/htup.h:17,
                from ../../../../src/include/access/heapam.h:17,
                from heaptuple.c:23:
../../../../src/include/storage/bufpage.h:312: parse error before "Size"
../../../../src/include/storage/bufpage.h:313: parse error before "Size"
../../../../src/include/storage/bufpage.h:315: parse error before "Size"
../../../../src/include/storage/bufpage.h:318: parse error before "PageGetFreeSpace"
../../../../src/include/storage/bufpage.h:318: warning: type defaults to `int' in declaration of `PageGetFreeSpace'
../../../../src/include/storage/bufpage.h:318: warning: data definition has no type or storage class
In file included from ../../../../src/include/access/xact.h:19,
                from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/utils/nabstime.h:17:20: limits.h: No such file or directory
../../../../src/include/utils/nabstime.h:18:18: time.h: No such file or directory
In file included from ../../../../src/include/utils/nabstime.h:21,
                from ../../../../src/include/access/xact.h:19,
                from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/utils/timestamp.h:16:18: time.h: No such file or directory
../../../../src/include/utils/timestamp.h:17:18: math.h: No such file or directory
../../../../src/include/utils/timestamp.h:18:20: limits.h: No such file or directory
In file included from ../../../../src/include/utils/nabstime.h:21,
                from ../../../../src/include/access/xact.h:19,
                from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/utils/timestamp.h:170: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/timestamp.h:170: warning: its scope is only this definition or declaration, which is probably not what you want
../../../../src/include/utils/timestamp.h:172: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/timestamp.h:175: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/timestamp.h:176: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/timestamp.h:179: warning: `struct tm' declared inside parameter list
In file included from ../../../../src/include/utils/nabstime.h:22,
                from ../../../../src/include/access/xact.h:19,
                from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/utils/datetime.h:19:18: time.h: No such file or directory
../../../../src/include/utils/datetime.h:20:18: math.h: No such file or directory
../../../../src/include/utils/datetime.h:21:20: limits.h: No such file or directory
In file included from ../../../../src/include/utils/nabstime.h:22,
                from ../../../../src/include/access/xact.h:19,
                from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/utils/datetime.h:252: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:253: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:262: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:266: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:270: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:272: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:274: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:275: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:276: warning: `struct tm' declared inside parameter list
../../../../src/include/utils/datetime.h:277: warning: `struct tm' declared inside parameter list
In file included from ../../../../src/include/access/xact.h:19,
                from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/utils/nabstime.h:161: warning: `struct tm' declared inside parameter list
In file included from ../../../../src/include/utils/tqual.h:19,
                from ../../../../src/include/access/relscan.h:17,
                from ../../../../src/include/access/heapam.h:18,
                from heaptuple.c:23:
../../../../src/include/access/xact.h:80: parse error before "time_t"
../../../../src/include/access/xact.h:80: warning: no semicolon at end of struct or union
../../../../src/include/access/xact.h:85: warning: type defaults to `int' in declaration of `xl_xact_commit'
../../../../src/include/access/xact.h:85: warning: data definition has no type or storage class
../../../../src/include/access/xact.h:91: parse error before "time_t"
../../../../src/include/access/xact.h:91: warning: no semicolon at end of struct or union
../../../../src/include/access/xact.h:92: warning: type defaults to `int' in declaration of `xl_xact_abort'
../../../../src/include/access/xact.h:92: warning: data definition has no type or storage class
In file included from ../../../../src/include/utils/memutils.h:20,
                from ../../../../src/include/access/tupmacs.h:17,
                from ../../../../src/include/access/heapam.h:19,
                from heaptuple.c:23:
../../../../src/include/nodes/memnodes.h:38: parse error before "Size"
../../../../src/include/nodes/memnodes.h:41: parse error before "Size"
In file included from ../../../../src/include/access/tupmacs.h:17,
                from ../../../../src/include/access/heapam.h:19,
                from heaptuple.c:23:
../../../../src/include/utils/memutils.h:51: parse error before "Size"
../../../../src/include/utils/memutils.h:51: warning: no semicolon at end of struct or union
../../../../src/include/utils/memutils.h:56: warning: type defaults to `int' in declaration of `StandardChunkHeader'
../../../../src/include/utils/memutils.h:56: warning: data definition has no type or storage class
../../../../src/include/utils/memutils.h:94: parse error before "Size"
../../../../src/include/utils/memutils.h:107: parse error before "Size"
In file included from heaptuple.c:23:
../../../../src/include/access/heapam.h:174: parse error before "ComputeDataSize"
../../../../src/include/access/heapam.h:174: warning: type defaults to `int' in declaration of `ComputeDataSize'
../../../../src/include/access/heapam.h:174: warning: data definition has no type or storage class
../../../../src/include/access/heapam.h:188: parse error before "Size"
heaptuple.c:37: parse error before "ComputeDataSize"
heaptuple.c:40: warning: return type defaults to `int'
heaptuple.c: In function `DataFill':
heaptuple.c:124: warning: implicit declaration of function `memcpy'
heaptuple.c:131: `size_t' undeclared (first use in this function)
heaptuple.c:131: (Each undeclared identifier is reported only once
heaptuple.c:131: for each function it appears in.)
heaptuple.c: In function `heap_formtuple':
heaptuple.c:610: parse error before "_len"
heaptuple.c:610: `_len' undeclared (first use in this function)
heaptuple.c:610: warning: implicit declaration of function `memset'
heaptuple.c: In function `heap_modifytuple':
heaptuple.c:705: warning: implicit declaration of function `memmove'
heaptuple.c: At top level:
heaptuple.c:745: parse error before "Size"
heaptuple.c:747: warning: no previous prototype for `heap_addheader'
heaptuple.c: In function `heap_addheader':
heaptuple.c:750: parse error before "len"
heaptuple.c:757: `len' undeclared (first use in this function)
heaptuple.c:757: `structlen' undeclared (first use in this function)
heaptuple.c:767: parse error before "_len"
heaptuple.c:767: `_len' undeclared (first use in this function)
heaptuple.c:770: `natts' undeclared (first use in this function)
heaptuple.c:773: `structure' undeclared (first use in this function)
make[4]: *** [heaptuple.o] Error 1
make[3]: *** [common-recursive] Error 2
make[2]: *** [access-recursive] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2