Thread: Re: Reduce dependancies of postmaster (without --as-needed)
On Nov 28 2005, Tom Lane wrote: > Larry Rosenman <ler@lerctr.org> writes: > >> -lnsl is needed on SVR4 derivatives, like Solaris and UnixWare. it is > >> the network services library. > > > libsocket requires libnsl: > > > [1] NEEDED /usr/lib/libnsl.so.1 > > Hmmm ... but given that, is it needed to mention libnsl in the link > command at all, or can the linker pick it up implicitly? I'm not 100% sure if the linker does the right thing or not :( It would be a good thing to test. I can make a shell account available (Tom, you actually have one on the box that output is from). LER > > regards, tom lane > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 3535 Gaspar Drive, Dallas, TX 75220-3611
On Mon, Nov 28, 2005 at 04:47:38PM -0600, Larry Rosenman wrote: > >Hmmm ... but given that, is it needed to mention libnsl in the link > >command at all, or can the linker pick it up implicitly? > > I'm not 100% sure if the linker does the right thing or not :( > > It would be a good thing to test. > > I can make a shell account available (Tom, you actually have one on > the box that output is from). If you have a compiled source tree you can go to the backend directory and run the commands I posted. After deleting the postgres executable try: make LIBS="-lsocket -lm" postgres and see what kind of errors you get. In theory only dynamic loading related symbols should be missing. I've gone through the CVS repository to work out which platforms needed which lib before the use of autoconf started. With some indication of what symbols are actually in the libs in question we can refine the autoconf setup. Thanks in advance, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them.