>De Clarke <de@ucolick.org> writes:
>> I still cannot get postgres 6.3.2 libpq to build under
>> Solaris 2.6 ... this means I can't test any of my apps
>> using postgres on my deployment platform. can anyone
>> help?
>
>> gcc version 2.7.2.3
>
>> fe-connect.c: In function `PQconnectdb':
>> fe-connect.c:204: warning: implicit declaration of function `strdup'
>> fe-connect.c:204: warning: assignment makes pointer from integer without a cast
>
>[ snip a whole lot of similar errors, all apparently arising from the
>lack of prototypes for strdup() and other functions... ]
>
>gcc is unhappy because it hasn't seen any declaration for strdup, and
>later fdopen, strcasecmp, etc. All the other complaints follow from
>that.
[snip]
I have successfully built 6.3.2 under Sparc/Solaris 2.6 with gcc
2.7.2.2. Here are the outputs from gmake.
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c fe-auth.c -o fe-auth.o
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c fe-connect.c -o fe-connect.o
fe-connect.c: In function `connectDB':
fe-connect.c:561: warning: passing arg 4 of `setsockopt' from incompatible pointer type
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c fe-exec.c -o fe-exec.o
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c fe-misc.c -o fe-misc.o
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c fe-lobj.c -o fe-lobj.o
ln -s ../../backend/lib/dllist.c .
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c dllist.c -o dllist.o
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c pqsignal.c -o pqsignal.o
ln -s ../../backend/libpq/pqcomprim.c .
gcc -I../../include -I../../backend -I/usr/local/include/tcl7.6jp -I/usr/local/include/tk4.2jp -Wall
-Wmissing-prototypes-DFRONTEND -c pqcomprim.c -o pqcomprim.o
ar crs libpq.a `lorder fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-lobj.o dllist.o pqsignal.o pqcomprim.o | tsort`
UX tsort: INFORM: cycle in data
fe-connect.o
fe-auth.o
UX tsort: INFORM: cycle in data
fe-exec.o
fe-connect.o
ranlib libpq.a
rm -f c.h
echo "#undef PORTNAME" > c.h
echo "#define PORTNAME sparc_solaris" >> c.h
cat ../../include/c.h >> c.h
--
Tatsuo Ishii
t-ishii@sra.co.jp