On 11 Jul 2005, at 10:55, Andreas Dittrich wrote:
I am having the same Problem on 10.4.1 and postgresql80-
ssl-8.0.3-22. Did you mail the maintainer about this?
Am 07.07.2005 um 08:57 schrieb Guy Lauquin:
OSX 10.3.9, unstable tree,
Package manager version: 0.24.7
Distribution version: 0.7.2.rsync
Compilation of postgresql80-8.0.3-12 failed with the folowing
message:
checking that type of libpq's Oid is as expected... yes
checking for strerror_r... yes
checking for SUSv3-style strerror_r returning int... yes
checking for strerror_r returning char *... yes
configure: error:
Your compiler offers a strerror_r() function, but test programs
redeclaring it
as returning int and char *, respectively, both compile
successfully. The
former is what the Single Unix Specification SUSv3 dictates, and
the latter is
an older GNU libc function. At least one of these tests should
have failed,
since there can't be two versions of this function taking the same
arguments but
returning different types.
As a result of this ambiguity, the configure script was unable to
determine
which version of the function is correct. You may need to use
less permissive
compiler options so that at least one of the alternatives will
fail to compile.
See the config.log for more details; search for strerror_r to find
the relevant
snippets. If all else fails, consider compiling a non-threadsafe
version of
libpqxx using the configure script's --disable-thread-safety option.
+ exit 3
### execution of /var/tmp/tmp.1.Vy7zUT failed, exit code 3
Removing build lock...
dpkg -r fink-buildlock-postgresql80-8.0.3-12
(Reading database ... 98560 files and directories currently
installed.)
Removing fink-buildlock-postgresql80-8.0.3-12 ...
Failed: phase compiling: postgresql80-8.0.3-12 failed
The config .log indicates :
....
conftest.c:2: error: parse error before "me"
configure:2557: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2722: checking if gcc-3.3 -no-cpp-precomp supports -
Wdeclaration-after-statement
configure:2742: gcc-3.3 -no-cpp-precomp -c -O2 -Wall -Wmissing-
prototypes -Wpointer-arith -Wdeclaration-after-statement -I/sw/src/
fink.build/root-postgresql80-8.0.3-12/sw/include/postgresql -I/sw/
src/fink.build/root-postgresql80-8.0.3-12/sw/include -I/sw/include
-DHAVE_OPTRESET -fno-common conftest.c >&5
cc1: error: unrecognized option `-Wdeclaration-after-statement'
configure:2748: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.0.3"
| #define PACKAGE_STRING "PostgreSQL 8.0.3"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.0.3"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2770: result: no
configure:2775: checking if gcc-3.3 -no-cpp-precomp supports -Wold-
style-definition
configure:2795: gcc-3.3 -no-cpp-precomp -c -O2 -Wall -Wmissing-
prototypes -Wpointer-arith -Wold-style-definition -I/sw/src/
fink.build/root-postgresql80-8.0.3-12/sw/include/postgresql -I/sw/
src/fink.build/root-postgresql80-8.0.3-12/sw/include -I/sw/include
-DHAVE_OPTRESET -fno-common conftest.c >&5
cc1: error: unrecognized option `-Wold-style-definition'
configure:2801: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "8.0.3"
| #define PACKAGE_STRING "PostgreSQL 8.0.3"
| #define PACKAGE_BUGREPORT "pgsql-bugs@postgresql.org"
| #define PG_VERSION "8.0.3"
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
Thanks for your help
Guy
Confirmed here too, both on a panther and on a tiger machine.
(Does not appear when compiling with gcc4).
Maintainer cc'd.
JF Mertens
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users