X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0F1D89DC803 for ; Wed, 1 Feb 2006 12:29:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80245-01 for ; Wed, 1 Feb 2006 12:29:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 56BCA9DC809 for ; Wed, 1 Feb 2006 12:29:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k11GTChq001209; Wed, 1 Feb 2006 11:29:12 -0500 (EST) To: Bruce Momjian cc: flyvholm@fys.ku.dk, pgsql-ports@postgresql.org Subject: Re: Failed install - libgen.so doesn't exist In-reply-to: <200602011613.k11GD9S16723@candle.pha.pa.us> References: <200602011613.k11GD9S16723@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 01 Feb 2006 11:13:09 -0500" Date: Wed, 01 Feb 2006 11:29:11 -0500 Message-ID: <1208.1138811351@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.103 required=5 tests=[AWL=0.103] X-Spam-Score: 0.103 X-Spam-Level: X-Archive-Number: 200602/6 X-Sequence-Number: 2296 Bruce Momjian 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. regards, tom lane