pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martijn van Oosterhout <kleptog@svana.org>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PORTS] Failed install - libgen.so doesn't exist
Date: Sat, 4 Feb 2006 11:59:21 +0100
Message-ID: <20060204105921.GA17045@svana.org> (raw)
In-Reply-To: <200602040154.52340.peter_e@gmx.net>
References: <200602011613.k11GD9S16723@candle.pha.pa.us>
	<1208.1138811351@sss.pgh.pa.us>
	<200602040154.52340.peter_e@gmx.net>

On Sat, Feb 04, 2006 at 01:54:52AM +0100, Peter Eisentraut wrote:
> I took a first swing at this and rearranged some of these calls.

Cool. I actually went through a while ago trying to work out which
libraries were needed for which platforms. Comments below.

> A couple of other findings:
> 
> nsl -- This might contain socket functions on some older platforms.

This appears to always be paired with -lsocket on solaris and svr4. In
theory -lsocket should pull in -lnsl automatically but maybe there are
linker issues.

> ipc, IPC, lc -- unknown

-lipc was apparently for bsdi, nextstep. Don't know about the others.

> ld -- On AIX at least this seems to be some magic library but doesn't 
> have an obvious testable symbol.

Indeed, appears to be AIX only.

> compat -- could be anything, obviously

I have it listed as only needed for PRE_BSDI_2_1. I don't really know
though.

> bsd, BSD -- I seem to recall that these and possibly compat are used by 
> Solaris to switch to BSD semantics on certain functions, but I don't 
> think we rely on that (anymore).

Apparently -lbsd is used on AIX but it contains pow() which is the
wrong one (the comment wasn't clear). -lBSD was for hpux. Linux used to
use it but not anymore.

> gen -- "generic" or "general", so this could be a lot, but it might 
> contain syslog on some platforms at least.

No info on this one.

> PW -- might be a compatibility library but none of the functions I found 
> are used by PostgreSQL.

Listed for old SCO. No idea what for though.

> resolv -- I don't think we need that.

Probably included because some other library required it but didn't
include it in its link line, requiring every user of the library to do
it. The same way -ltermcap is required on a default -lreadline install.

Have a nice day,
-- 
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.

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (25+ messages)  latest in thread

Message-ID: <20060204105921.GA17045@svana.org>
Permalink:  ../20060204105921.GA17045@svana.org/
Also on:    postgresql.org/message-id/20060204105921.GA17045@svana.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: kleptog@svana.org, peter_e@gmx.net, pgsql-hackers@postgresql.org
  Subject: Re: [PORTS] Failed install - libgen.so doesn't exist
  In-Reply-To: <20060204105921.GA17045@svana.org>
  References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> <20060204105921.GA17045@svana.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox