pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: flyvholm@fys.ku.dk
Cc: pgsql-ports@postgresql.org
Subject: Re: Failed install - libgen.so doesn't exist
Date: Wed, 1 Feb 2006 11:31:04 -0500 (EST)
Message-ID: <200602011631.k11GV4G20094@candle.pha.pa.us> (raw)
In-Reply-To: <1208.1138811351@sss.pgh.pa.us>

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> I'm just wondering how many of those AC_CHECK_LIB calls are needed only
> >> on platforms that no one uses anymore ...
> 
> > I didn't want to mention that, but one big problem we have is that we
> > have no way to know what platforms are still using which configure and
> > pgport functions.  It is very possible that 25% of what we have isn't
> > needed anymore, but we have no way of knowing which part.
> 
> Agreed, but pgport functions that aren't actually selected for use don't
> pose any hazards.  AC_CHECK_LIB is an ongoing hazard for exactly the
> reason the OP presents, namely that it will suck in any random library
> it can find that happens to match by name.  It's especially bad that
> almost all of the tests are coded like
> 	AC_CHECK_LIB(gen,      main)
> which means they don't even try to determine whether the library
> is actually the one intended.
> 
> Now that we have the buildfarm I think that experimentation with this
> sort of thing is a lot less risky than it used to be.  I think we should
> be working towards a project policy that AC_CHECK_LIB calls shalt not
> use "main", but must name some symbol exported by the expected library.
> If we can't find out what symbols the library is expected to provide,
> it's time to dike it out.

Agreed.  Anyone want to do the legwork?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (25+ messages)  latest in thread

Message-ID: <200602011631.k11GV4G20094@candle.pha.pa.us>
Permalink:  ../200602011631.k11GV4G20094@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200602011631.k11GV4G20094@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, flyvholm@fys.ku.dk
  Subject: Re: Failed install - libgen.so doesn't exist
  In-Reply-To: <200602011631.k11GV4G20094@candle.pha.pa.us>
  References: <1208.1138811351@sss.pgh.pa.us> <200602011631.k11GV4G20094@candle.pha.pa.us>

* 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