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

Re: Reduce dependancies of postmaster (without --as-needed)

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Date: 2005-11-28 22:18:01
Message-ID: E1EgrJx-0001Xc-Av@lerami.lerctr.org (view raw or flat)
Thread:
Lists: pgsql-patches
On Nov 28 2005, Tom Lane wrote:

> Larry Rosenman <ler(at)lerctr(dot)org> writes:
> > -lnsl is needed on SVR4 derivatives, like Solaris and UnixWare. it is 
> > the network services library.
> 
> > You'll needed it for ANY socket based code on these platforms.
> 
> Is there any specific function symbol we can test for in that library?
> If it exports something like socket() or connect() on SVR4, we can make
> configure probe for that instead of blindly including the library.

libsocket requires libnsl:

$ dump -Lv /usr/lib/libsocket.so|more

/usr/lib/libsocket.so:

                ****  DYNAMIC SECTION INFORMATION ****
[INDEX]   Tag         Value

.dynamic:
[1]       NEEDED      /usr/lib/libnsl.so.1
[2]       INIT        0xba30
[3]       SONAME      /usr/lib/libsocket.so.2
[4]       HASH        0xa0
[5]       STRTAB      0x22bc
[6]       SYMTAB      0x95c
[7]       STRSZ       0x1229
[8]       SYMENT      0x10
[9]       PLTGOT      0xec2c
[10]      PLTSZ       0x4b8
[11]      PLTREL      0x11
[12]      JMPREL      0x36d0
[13]      REL         0x34e8
[14]      RELSZ       0x1e8
.....

So, Is there a configure check for stuff like that?  

LER

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler(at)lerctr(dot)org
US Mail: 3535 Gaspar Drive, Dallas, TX 75220-3611


Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2005-11-28 22:31:55
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Previous:From: Tom LaneDate: 2005-11-28 22:07:41
Subject: Re: Reduce dependancies of postmaster (without --as-needed)

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