libpq needs -lsocket on UnixWare

Started by Larry Rosenmanabout 25 years ago5 messages
#1Larry Rosenman
ler@lerctr.org

Is there any way to get libpq built with -lsocket on the unixware (and
probably other SVR4's) to get the network stuff required ?

(other SVR4's prolly need -lsocket -lnsl)

Larry

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

#2KuroiNeko
evpopkov@carrier.kiev.ua
In reply to: Larry Rosenman (#1)
Re: libpq needs -lsocket on UnixWare

(other SVR4's prolly need -lsocket -lnsl)

Something like

AC_CHECK_LIB(socket,socket)

or something like that? In fact, it complains about inet_aton and
gethostbyname.

--

contaminated fish and microchips
huge supertankers on Arabian trips
oily propaganda from the leaders' lips
all about the future
there's people over here, people over there
everybody's looking for a little more air
crossing all the borders just to take their share
planning for the future

Rainbow, Difficult to Cure

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Larry Rosenman (#1)
Re: libpq needs -lsocket on UnixWare

Larry Rosenman writes:

Is there any way to get libpq built with -lsocket on the unixware (and
probably other SVR4's) to get the network stuff required ?

Try now. OpenSSL should be working as well now.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#4Larry Rosenman
ler@lerctr.org
In reply to: Peter Eisentraut (#3)
Re: libpq needs -lsocket on UnixWare

* Peter Eisentraut <peter_e@gmx.net> [001025 11:21]:

Larry Rosenman writes:

Is there any way to get libpq built with -lsocket on the unixware (and
probably other SVR4's) to get the network stuff required ?

Try now. OpenSSL should be working as well now.

OpenSSL dies:

cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o nodeUnique.o nodeUnique.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o nodeGroup.o nodeGroup.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o spi.o spi.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o nodeSubplan.o nodeSubplan.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o nodeSubqueryscan.o nodeSubqueryscan.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o nodeTidscan.o nodeTidscan.c
/usr/bin/ld -r -o SUBSYS.o execAmi.o execFlatten.o execJunk.o execMain.o execProcnode.o execQual.o execScan.o execTuples.o execUtils.o functions.o nodeAppend.o nodeAgg.o nodeHash.o nodeHashjoin.o nodeIndexscan.o nodeMaterial.o nodeMergejoin.o nodeNestloop.o nodeResult.o nodeSeqscan.o nodeSetOp.o nodeSort.o nodeUnique.o nodeGroup.o spi.o nodeSubplan.o nodeSubqueryscan.o nodeTidscan.o
gmake[3]: Leaving directory `/home/ler/pg-dev/pgsql/src/backend/executor'
gmake -C lib all
gmake[3]: Entering directory `/home/ler/pg-dev/pgsql/src/backend/lib'
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o bit.o bit.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o hasht.o hasht.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o lispsort.o lispsort.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o stringinfo.o stringinfo.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o dllist.o dllist.c
/usr/bin/ld -r -o SUBSYS.o bit.o hasht.o lispsort.o stringinfo.o dllist.o
gmake[3]: Leaving directory `/home/ler/pg-dev/pgsql/src/backend/lib'
gmake -C libpq all
gmake[3]: Entering directory `/home/ler/pg-dev/pgsql/src/backend/libpq'
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o be-fsstubs.o be-fsstubs.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o auth.o auth.c
cc -c -I/usr/local/ssl/include -I../../../src/include -O -K inline -o crypt.o crypt.c
UX:acomp: ERROR: "/usr/include/crypt.h", line 36: identifier redeclared: des_encrypt
gmake[3]: *** [crypt.o] Error 1
gmake[3]: Leaving directory `/home/ler/pg-dev/pgsql/src/backend/libpq'
gmake[2]: *** [libpq-recursive] Error 2
gmake[2]: Leaving directory `/home/ler/pg-dev/pgsql/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/ler/pg-dev/pgsql/src'
gmake: *** [all] Error 2

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Larry Rosenman (#4)
Re: Re: libpq needs -lsocket on UnixWare

Larry Rosenman writes:

OpenSSL dies:

Yeah, I saw that too yesterday. Not sure if I want to blame your crypt.h
header or what. Don't know what to do yet, but it ought to get fixed.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/