Thread: libpq needs -lsocket on UnixWare

libpq needs -lsocket on UnixWare

From
Larry Rosenman
Date:
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

Re: libpq needs -lsocket on UnixWare

From
KuroiNeko
Date:
> (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 tripsoily propaganda from the leaders' lips all about the
futurethere'speople over here, people over there everybody's looking for a little more aircrossing all the borders just
totake their share planning for the future
 
Rainbow, Difficult to Cure


Re: libpq needs -lsocket on UnixWare

From
Peter Eisentraut
Date:
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/



Re: libpq needs -lsocket on UnixWare

From
Larry Rosenman
Date:
* 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.oexecUtils.o functions.o nodeAppend.o nodeAgg.o nodeHash.o nodeHashjoin.o nodeIndexscan.o nodeMaterial.o
nodeMergejoin.onodeNestloop.o nodeResult.o nodeSeqscan.o nodeSetOp.o nodeSort.o nodeUnique.o nodeGroup.o spi.o
nodeSubplan.onodeSubqueryscan.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


Re: Re: libpq needs -lsocket on UnixWare

From
Peter Eisentraut
Date:
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/