Thread: Port Bug Report: Include file mismatch: stdio.h, stdlib.h, unistd.h
============================================================================ POSTGRESQL BUG REPORT TEMPLATE ============================================================================ Your name : D. Jay Newman Your email address : jay@sprucegrove.com Category : install: compile Severity : critical Summary: Include file mismatch: stdio.h, stdlib.h, unistd.h System Configuration -------------------- Operating System : AIX 4.2 PostgreSQL version : 6.5 Compiler used : Hardware: --------- AIX projects 2 4 009450E14C00 (43p -- a PowerPC version of IBM's AIX box) Versions of other tools: ------------------------ -------------------------------------------------------------------------- Problem Description: -------------------- gmake[1]: Entering directory `/usr/local/src/pgsql/src/utils' xlc -I../include -I../backend -qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg - qcheck=divzero -qlonglong -c version.c -o version.o "/usr/include/stdlib.h", line 471.33: 1506-343 (S) Redeclaration of getopt diffe rs from previous declaration on line 378 of "/usr/include/stdio.h". "/usr/include/stdlib.h", line 471.33: 1506-377 (I) The type "char**" of paramete r 2 differs from the previous type "char* const*". "/usr/include/stdlib.h", line 472.33: 1506-343 (S) Redeclaration of getpass diff ers from previous declaration on line 367 of "/usr/include/unistd.h". "/usr/include/stdlib.h", line 472.33: 1506-377 (I) The type "char*" of parameter 1 differs from the previous type "const char*". gmake[1]: *** [version.o] Error 1 gmake[1]: Leaving directory `/usr/local/src/pgsql/src/utils' gmake: *** [all] Error 2 -------------------------------------------------------------------------- Test Case: ---------- gmake all -------------------------------------------------------------------------- Solution: --------- --------------------------------------------------------------------------
Hi, had the same problem when compiling the current 6.5 snapshot with xlc on AIX 4.1.3.0. The configure script defines const as empty on line 325. If you comment out this line, postgreSQL should compile fine at least. Regards Olaf > Summary: Include file mismatch: stdio.h, stdlib.h, unistd.h > > System Configuration > -------------------- > Operating System : AIX 4.2 > > PostgreSQL version : 6.5 > > Compiler used : > > Hardware: > --------- > AIX projects 2 4 009450E14C00 > (43p -- a PowerPC version of IBM's AIX box) > > Versions of other tools: > ------------------------ > > > -------------------------------------------------------------------------- > > Problem Description: > -------------------- > gmake[1]: Entering directory `/usr/local/src/pgsql/src/utils' > xlc -I../include -I../backend -qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg - > qcheck=divzero -qlonglong -c version.c -o version.o > "/usr/include/stdlib.h", line 471.33: 1506-343 (S) Redeclaration of getopt diffe > rs from previous declaration on line 378 of "/usr/include/stdio.h". > "/usr/include/stdlib.h", line 471.33: 1506-377 (I) The type "char**" of paramete > r 2 differs from the previous type "char* const*". > "/usr/include/stdlib.h", line 472.33: 1506-343 (S) Redeclaration of getpass diff > ers from previous declaration on line 367 of "/usr/include/unistd.h". > "/usr/include/stdlib.h", line 472.33: 1506-377 (I) The type "char*" of parameter > 1 differs from the previous type "const char*". > gmake[1]: *** [version.o] Error 1 > gmake[1]: Leaving directory `/usr/local/src/pgsql/src/utils' > gmake: *** [all] Error 2 -- Olaf Mittelstaedt - IuK - mittelstaedt@fh-ulm.de Fachhochschule Ulm Prittwitzstr. 10 89075 Ulm Tel.: +49 (0)731-50-28220 Fax: -28270 Entia non sunt multiplicanda praeter necessitatem.
Can someone suggest why const is failing in the configure test? > Hi, > > had the same problem when compiling the current 6.5 snapshot with xlc > on AIX 4.1.3.0. The configure script defines const as empty on line > 325. If you comment out this line, postgreSQL should compile fine at > least. > > Regards > Olaf > > > Summary: Include file mismatch: stdio.h, stdlib.h, unistd.h > > > > System Configuration > > -------------------- > > Operating System : AIX 4.2 > > > > PostgreSQL version : 6.5 > > > > Compiler used : > > > > Hardware: > > --------- > > AIX projects 2 4 009450E14C00 > > (43p -- a PowerPC version of IBM's AIX box) > > > > Versions of other tools: > > ------------------------ > > > > > > -------------------------------------------------------------------------- > > > > Problem Description: > > -------------------- > > gmake[1]: Entering directory `/usr/local/src/pgsql/src/utils' > > xlc -I../include -I../backend -qchars=signed -qmaxmem=8192 -qhalt=w -qsrcmsg - > > qcheck=divzero -qlonglong -c version.c -o version.o > > "/usr/include/stdlib.h", line 471.33: 1506-343 (S) Redeclaration of getopt diffe > > rs from previous declaration on line 378 of "/usr/include/stdio.h". > > "/usr/include/stdlib.h", line 471.33: 1506-377 (I) The type "char**" of paramete > > r 2 differs from the previous type "char* const*". > > "/usr/include/stdlib.h", line 472.33: 1506-343 (S) Redeclaration of getpass diff > > ers from previous declaration on line 367 of "/usr/include/unistd.h". > > "/usr/include/stdlib.h", line 472.33: 1506-377 (I) The type "char*" of parameter > > 1 differs from the previous type "const char*". > > gmake[1]: *** [version.o] Error 1 > > gmake[1]: Leaving directory `/usr/local/src/pgsql/src/utils' > > gmake: *** [all] Error 2 > -- > Olaf Mittelstaedt - IuK - mittelstaedt@fh-ulm.de > Fachhochschule Ulm Prittwitzstr. 10 89075 Ulm > Tel.: +49 (0)731-50-28220 Fax: -28270 > > Entia non sunt multiplicanda praeter necessitatem. > > > -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
> >had the same problem when compiling the current 6.5 snapshot with xlc > >on AIX 4.1.3.0. The configure script defines const as empty on line > >325. If you comment out this line, postgreSQL should compile fine at > >least. Sorry, should be: "on or around line 325 of src/include/config.h"! Regards Olaf -- Olaf Mittelstaedt - IuK - mittelstaedt@fh-ulm.de Fachhochschule Ulm Prittwitzstr. 10 89075 Ulm Tel.: +49 (0)731-50-28220 Fax: -28270 Beati pauperes spiritu.