From: | "William Gray" <grayw(at)mail(dot)montclair(dot)edu> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #2457: Make fails at copydir.c / copydir.o |
Date: | 2006-05-26 16:49:27 |
Message-ID: | 200605261649.k4QGnRGM098553@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 2457
Logged by: William Gray
Email address: grayw(at)mail(dot)montclair(dot)edu
PostgreSQL version: 8.1.4
Operating system: Mac OS X Tiger 10.4.6 (PowerPC)
Description: Make fails at copydir.c / copydir.o
Details:
When I run the make for 8.1.4, a number of parse errors are thrown, causing
the build to fail.
Using GNU bison 2.1 via /usr/local/bin instead of mac os x bison (1.28).
This doesn't seem to help.
Also saw bug #1959 and other archives not on incompatibility fix for tiger's
readline, seems unrelated, didn't help.
I've done some looking in the archives for ports and bugs lists, but I
haven't been able to find something similar (apologies if this has already
been dealt with). Is there a searchable bugs database where I can look up
related bugs by platform?
My build so far:
export CFLAGS="-mtune=G5 -mcpu=G5"
./configure --without-tcl --without-krb5 --with-openssl --with-readline
--with-pam --with-bonjour --prefix=/usr/local/postgresql-8.1.4 --with-perl
make produces the following error (it's kinda long):
gcc -no-cpp-precomp -mtune=G5 -mcpu=G5 -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing -I../../src/port -DFRONTEND -I../../src/include -c -o
copydir.o copydir.c
In file included from ../../src/include/postgres.h:48,
from copydir.c:19:
../../src/include/c.h:194: error: parse error before '*' token
../../src/include/c.h:194: warning: type defaults to 'int' in declaration of
'BoolPtr'
../../src/include/c.h:194: warning: data definition has no type or storage
class
In file included from ../../src/include/c.h:822,
from ../../src/include/postgres.h:48,
from copydir.c:19:
../../src/include/port.h:23: error: parse error before "pg_set_noblock"
../../src/include/port.h:23: warning: type defaults to 'int' in declaration
of 'pg_set_noblock'
../../src/include/port.h:23: warning: data definition has no type or storage
class
../../src/include/port.h:24: error: parse error before "pg_set_block"
../../src/include/port.h:24: warning: type defaults to 'int' in declaration
of 'pg_set_block'
../../src/include/port.h:24: warning: data definition has no type or storage
class
../../src/include/port.h:35: error: parse error before
"path_contains_parent_reference"
../../src/include/port.h:35: warning: type defaults to 'int' in declaration
of 'path_contains_parent_reference'
../../src/include/port.h:35: warning: data definition has no type or storage
class
../../src/include/port.h:36: error: parse error before
"path_is_prefix_of_path"
../../src/include/port.h:36: warning: type defaults to 'int' in declaration
of 'path_is_prefix_of_path'
../../src/include/port.h:36: warning: data definition has no type or storage
class
../../src/include/port.h:49: error: parse error before "get_home_path"
../../src/include/port.h:49: warning: type defaults to 'int' in declaration
of 'get_home_path'
../../src/include/port.h:49: warning: data definition has no type or storage
class
../../src/include/port.h:181: error: parse error before "bool"
../../src/include/port.h:244: error: parse error before "bool"
../../src/include/port.h:246: error: parse error before "rmtree"
../../src/include/port.h:246: error: parse error before "bool"
../../src/include/port.h:246: warning: type defaults to 'int' in declaration
of 'rmtree'
../../src/include/port.h:246: warning: data definition has no type or
storage class
In file included from ../../src/include/postgres.h:49,
from copydir.c:19:
../../src/include/utils/elog.h:101: error: parse error before "errstart"
../../src/include/utils/elog.h:102: warning: type defaults to 'int' in
declaration of 'errstart'
../../src/include/utils/elog.h:102: warning: data definition has no type or
storage class
../../src/include/utils/elog.h:240: error: parse error before "bool"
../../src/include/utils/elog.h:240: warning: no semicolon at end of struct
or union
../../src/include/utils/elog.h:241: warning: type defaults to 'int' in
declaration of 'output_to_client'
../../src/include/utils/elog.h:241: warning: data definition has no type or
storage class
../../src/include/utils/elog.h:242: error: parse error before
"show_funcname"
../../src/include/utils/elog.h:242: warning: type defaults to 'int' in
declaration of 'show_funcname'
../../src/include/utils/elog.h:242: warning: data definition has no type or
storage class
../../src/include/utils/elog.h:255: error: parse error before '}' token
../../src/include/utils/elog.h:255: warning: type defaults to 'int' in
declaration of 'ErrorData'
../../src/include/utils/elog.h:255: warning: data definition has no type or
storage class
../../src/include/utils/elog.h:258: error: parse error before '*' token
../../src/include/utils/elog.h:258: warning: type defaults to 'int' in
declaration of 'CopyErrorData'
../../src/include/utils/elog.h:258: warning: data definition has no type or
storage class
../../src/include/utils/elog.h:259: error: parse error before '*' token
../../src/include/utils/elog.h:261: error: parse error before '*' token
In file included from copydir.c:19:
../../src/include/postgres.h:475: error: parse error before
"assert_enabled"
../../src/include/postgres.h:475: warning: type defaults to 'int' in
declaration of 'assert_enabled'
../../src/include/postgres.h:475: warning: data definition has no type or
storage class
In file included from copydir.c:25:
../../src/include/storage/fd.h:64: error: parse error before "interXact"
../../src/include/storage/fd.h:90: error: parse error before "isCommit"
copydir.c:49: error: parse error before "bool"
copydir.c:50: warning: no previous prototype for 'copydir'
copydir.c: In function 'copydir':
copydir.c:56: error: 'todir' undeclared (first use in this function)
copydir.c:56: error: (Each undeclared identifier is reported only once
copydir.c:56: error: for each function it appears in.)
copydir.c:61: error: 'fromdir' undeclared (first use in this function)
copydir.c:86: error: 'recurse' undeclared (first use in this function)
copydir.c:87: error: 'bool' undeclared (first use in this function)
copydir.c:87: error: parse error before numeric constant
make[2]: *** [copydir.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
Thanks,
Billy Gray
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-05-26 17:44:26 | Re: BUG #2457: Make fails at copydir.c / copydir.o |
Previous Message | Vivekananda | 2006-05-26 12:42:33 | BUG #2456: How to write user defined functions in Postgress sql |