Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] no answer to Solaris 2.6 failure to build 6.3.2?

From: t-ishii(at)sra(dot)co(dot)jp
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: De Clarke <de(at)ucolick(dot)org>, pgsql-hackers(at)postgreSQL(dot)org, pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [HACKERS] no answer to Solaris 2.6 failure to build 6.3.2?
Date: 1998-07-03 01:35:04
Message-ID: 199807030135.KAA26446@srapc451.sra.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
>De Clarke <de(at)ucolick(dot)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(at)sra(dot)co(dot)jp

pgsql-hackers by date

Next:From: Tom LaneDate: 1998-07-03 01:50:10
Subject: Re: [HACKERS] no answer to Solaris 2.6 failure to build 6.3.2?
Previous:From: Tom LaneDate: 1998-07-03 01:23:21
Subject: Re: [HACKERS] no answer to Solaris 2.6 failure to build 6.3.2?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group