From flyvholm@fys.ku.dk Tue Jan 24 03:33:06 2006 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 65C4B9DCB80 for ; Mon, 23 Jan 2006 23:33:06 -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 17960-05 for ; Mon, 23 Jan 2006 23:33:10 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 79E319DC93B for ; Mon, 23 Jan 2006 23:33:03 -0400 (AST) Received: from smtp.uaf.edu (smtp.uaf.edu [137.229.34.30]) by svr4.postgresql.org (Postfix) with ESMTP id EA3FA5AF863 for ; Tue, 24 Jan 2006 03:33:08 +0000 (GMT) Received: from flyvholm (FLYVHOLM.NET.gi.alaska.edu [137.229.27.218]) by smtp.uaf.edu (8.12.11/8.12.11/uaf3) with ESMTP id k0O3WrnQ484135 for ; Mon, 23 Jan 2006 18:33:01 -0900 (AKST) From: "Poul Jensen" To: Subject: Failed install - libgen.so doesn't exist Date: Mon, 23 Jan 2006 18:35:37 -0900 Message-ID: <000601c62097$43f72a20$da1be589@flyvholm> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C6204B.D40F8220" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200601/4 X-Sequence-Number: 2288 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C6204B.D40F8220 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I don't think this is platform specific, but Fedora Core 2 it is anyway. I was upgrading from v. 8.0 to 8.1.2. Ran the commands ./configure -with-perl gmake gmake check with no apparent problems. Then su root gmake install and it doesn't get far before this happens: ... gmake -C timezone install gmake[2]: Entering directory `/home/postgres/postgresql-8.1.2/src/timezone' gmake -C ../../src/port all gmake[3]: Entering directory `/home/postgres/postgresql-8.1.2/src/port' gmake[3]: Nothing to be done for `all'. gmake[3]: Leaving directory `/home/postgres/postgresql-8.1.2/src/port' ./zic -d /usr/local/pgsql/share/timezone ./data/africa ./data/antarctica ./data/asia ./data/australasia ./data/europe ./data/northamerica ./data/southamerica ./data/pacificnew ./data/etcetera ./data/factory ./data/backward ./data/systemv ./data/solar87 ./data/solar88 ./data/solar89 ./zic: error while loading shared libraries: libgen.so: cannot open shared object file: No such file or directory gmake[2]: *** [install] Error 127 gmake[2]: Leaving directory `/home/postgres/postgresql-8.1.2/src/timezone' ... No file called libgen.so exists on the server. Any suggestions? Poul Jensen ------=_NextPart_000_0007_01C6204B.D40F8220 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I don’t think this is = platform specific, but Fedora Core 2 it is anyway. I was upgrading from v. 8.0 to = 8.1.2. Ran the commands

./configure = –with-perl

gmake

gmake check

with no apparent problems. = Then

su root

gmake install

and it doesn’t get far before = this happens:

 

...

gmake -C timezone = install

gmake[2]: Entering directory `/home/postgres/postgresql-8.1.2/src/timezone'

gmake -C ../../src/port = all

gmake[3]: Entering directory `/home/postgres/postgresql-8.1.2/src/port'

gmake[3]: Nothing to be done for = `all'.

gmake[3]: Leaving directory `/home/postgres/postgresql-8.1.2/src/port'

./zic -d = /usr/local/pgsql/share/timezone ./data/africa ./data/antarctica ./data/asia ./data/australasia = ./data/europe ./data/northamerica ./data/southamerica ./data/pacificnew = ./data/etcetera ./data/factory ./data/backward ./data/systemv ./data/solar87 = ./data/solar88 ./data/solar89

./zic: error while loading shared libraries: libgen.so: cannot open shared object file: No such file or = directory

gmake[2]: *** [install] Error = 127

gmake[2]: Leaving directory `/home/postgres/postgresql-8.1.2/src/timezone'

...

 

No file called libgen.so exists on = the server. Any suggestions?

 

Poul Jensen

------=_NextPart_000_0007_01C6204B.D40F8220-- From tgl@sss.pgh.pa.us Mon Jan 30 04:00:44 2006 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 D87DE9DCA0A for ; Mon, 30 Jan 2006 00:00:44 -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 79175-07 for ; Mon, 30 Jan 2006 00:00:42 -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 750B49DCA06 for ; Mon, 30 Jan 2006 00:00:42 -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 k0U40dZ2025316; Sun, 29 Jan 2006 23:00:39 -0500 (EST) To: "Poul Jensen" cc: pgsql-ports@postgresql.org Subject: Re: Failed install - libgen.so doesn't exist In-reply-to: <000601c62097$43f72a20$da1be589@flyvholm> References: <000601c62097$43f72a20$da1be589@flyvholm> Comments: In-reply-to "Poul Jensen" message dated "Mon, 23 Jan 2006 18:35:37 -0900" Date: Sun, 29 Jan 2006 23:00:39 -0500 Message-ID: <25315.1138593639@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.101 required=5 tests=[AWL=0.101] X-Spam-Score: 0.101 X-Spam-Level: X-Archive-Number: 200601/5 X-Sequence-Number: 2289 "Poul Jensen" writes: > ./zic: error while loading shared libraries: libgen.so: cannot open shared > object file: No such file or directory Our configure script will pick up libgen if it exists, but it's a bit hard to see how the configure script's test could succeed if there's no such library anywhere on the machine. Did you look for libgen.a or libgen.so.N ? regards, tom lane From flyvholm@fys.ku.dk Mon Jan 30 04:34:22 2006 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 0C6E59DC851 for ; Mon, 30 Jan 2006 00:34:22 -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 84110-08 for ; Mon, 30 Jan 2006 00:34:20 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id B0CA19DC86E for ; Mon, 30 Jan 2006 00:34:19 -0400 (AST) Received: from dino.gi.alaska.edu (dino.gi.alaska.edu [137.229.30.28]) by svr4.postgresql.org (Postfix) with ESMTP id 44FF05AF068 for ; Mon, 30 Jan 2006 04:34:18 +0000 (GMT) Received: from [137.229.29.72] ([137.229.29.72]) by dino.gi.alaska.edu (8.13.5/8.13.5) with SMTP id k0U4YGQ6010252; Sun, 29 Jan 2006 19:34:16 -0900 Message-ID: <43DD974B.7050302@fys.ku.dk> Date: Sun, 29 Jan 2006 19:34:19 -0900 From: Poul Jensen Reply-To: flyvholm@fys.ku.dk User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-ports@postgresql.org Subject: Re: Failed install - libgen.so doesn't exist References: <000601c62097$43f72a20$da1be589@flyvholm> <25315.1138593639@sss.pgh.pa.us> In-Reply-To: <25315.1138593639@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/1256/Sun Jan 29 02:25:44 2006 on dino.gi.alaska.edu X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.169 required=5 tests=[AWL=0.169] X-Spam-Score: 0.169 X-Spam-Level: X-Archive-Number: 200602/15 X-Sequence-Number: 2305 Tom Lane wrote: >"Poul Jensen" writes: > > >>./zic: error while loading shared libraries: libgen.so: cannot open shared >>object file: No such file or directory >> >> > >Our configure script will pick up libgen if it exists, but it's a bit >hard to see how the configure script's test could succeed if there's no >such library anywhere on the machine. Did you look for libgen.a or >libgen.so.N ? > > regards, tom lane > > Thank you very much Tom. I've found that a folder containing a libgen.so file is mounted on the machine, but physically located on a different machine (which is why I didn't find it using 'locate'). The libgen.so file belongs to a software package for handling the radar data I'm working with. Other than that, there is a libgen.h file but no libgen.a or libgen.so.(anything). Would you know what I need to fix to let the installation proceed? Thanks, Poul Jensen From tgl@sss.pgh.pa.us Mon Jan 30 04:39:26 2006 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 C5A0C9DC843 for ; Mon, 30 Jan 2006 00:39:26 -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 86859-04 for ; Mon, 30 Jan 2006 00:39:25 -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 69D449DCA0F for ; Mon, 30 Jan 2006 00:39:24 -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 k0U4dMft025568; Sun, 29 Jan 2006 23:39:22 -0500 (EST) To: flyvholm@fys.ku.dk cc: pgsql-ports@postgresql.org Subject: Re: Failed install - libgen.so doesn't exist In-reply-to: <43DD974B.7050302@fys.ku.dk> References: <000601c62097$43f72a20$da1be589@flyvholm> <25315.1138593639@sss.pgh.pa.us> <43DD974B.7050302@fys.ku.dk> Comments: In-reply-to Poul Jensen message dated "Sun, 29 Jan 2006 19:34:19 -0900" Date: Sun, 29 Jan 2006 23:39:22 -0500 Message-ID: <25567.1138595962@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.101 required=5 tests=[AWL=0.101] X-Spam-Score: 0.101 X-Spam-Level: X-Archive-Number: 200601/6 X-Sequence-Number: 2290 Poul Jensen writes: > I've found that a folder containing a libgen.so file is mounted on the > machine, but physically located on a different machine (which is why I > didn't find it using 'locate'). The libgen.so file belongs to a software > package for handling the radar data I'm working with. Other than that, > there is a libgen.h file but no libgen.a or libgen.so.(anything). Hm. Maybe we should remove the libgen item from configure. I have no idea what platform it was required on (and there's no documentation in the configure script about it) ... but it's very likely obsolete. > Would you know what I need to fix to let the installation proceed? I'd suggest make clean, edit src/Makefile.global to remove -lgen from the LIBS macro, and rebuild. regards, tom lane From flyvholm@fys.ku.dk Mon Jan 30 06:12:05 2006 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 83A7D9DC80F for ; Mon, 30 Jan 2006 02:12:05 -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 04880-02 for ; Mon, 30 Jan 2006 02:12:04 -0400 (AST) X-Greylist: delayed 01:37:46.173827 by SQLgrey- Received: from dino.gi.alaska.edu (dino.gi.alaska.edu [137.229.30.28]) by postgresql.org (Postfix) with ESMTP id C312F9DCA1F for ; Mon, 30 Jan 2006 02:12:02 -0400 (AST) Received: from [137.229.29.72] ([137.229.29.72]) by dino.gi.alaska.edu (8.13.5/8.13.5) with SMTP id k0U6C2tt012762; Sun, 29 Jan 2006 21:12:02 -0900 Message-ID: <43DDAE36.9000907@fys.ku.dk> Date: Sun, 29 Jan 2006 21:12:06 -0900 From: Poul Jensen Reply-To: flyvholm@fys.ku.dk User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane CC: pgsql-ports@postgresql.org Subject: Re: Failed install - libgen.so doesn't exist References: <000601c62097$43f72a20$da1be589@flyvholm> <25315.1138593639@sss.pgh.pa.us> <43DD974B.7050302@fys.ku.dk> <25567.1138595962@sss.pgh.pa.us> In-Reply-To: <25567.1138595962@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/1256/Sun Jan 29 02:25:44 2006 on dino.gi.alaska.edu X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.141 required=5 tests=[AWL=0.141] X-Spam-Score: 0.141 X-Spam-Level: X-Archive-Number: 200602/16 X-Sequence-Number: 2306 >>Would you know what I need to fix to let the installation proceed? >> >> > >I'd suggest make clean, edit src/Makefile.global to remove -lgen from >the LIBS macro, and rebuild. > > regards, tom lane > > gmake clean + editing the makefile didn't quite do, but after deleting the whole installation folder and the /usr/local/pgsql folder (I doubt this was necessary, but went ahead since I had no data in there) I redid the normal installation procedure with the one modification you pointed me to: After running ./configure (but before gmake) I removed -lgen from the LIBS macro in src/Makefile.global. Installation completed. Thank you Tom! Poul Jensen From pgman@candle.pha.pa.us Wed Feb 1 15:46:26 2006 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 A0BAE9DC887 for ; Wed, 1 Feb 2006 11:46:26 -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 71917-04 for ; Wed, 1 Feb 2006 11:46:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id F0B469DC9AD for ; Wed, 1 Feb 2006 11:46:21 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11FkOI12687; Wed, 1 Feb 2006 10:46:24 -0500 (EST) From: Bruce Momjian Message-Id: <200602011546.k11FkOI12687@candle.pha.pa.us> Subject: Re: Failed install - libgen.so doesn't exist In-Reply-To: <25567.1138595962@sss.pgh.pa.us> To: Tom Lane Date: Wed, 1 Feb 2006 10:46:24 -0500 (EST) CC: flyvholm@fys.ku.dk, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/3 X-Sequence-Number: 2293 OK, so we should remove from configure.in? AC_CHECK_LIB(gen, main) --------------------------------------------------------------------------- Tom Lane wrote: > Poul Jensen writes: > > I've found that a folder containing a libgen.so file is mounted on the > > machine, but physically located on a different machine (which is why I > > didn't find it using 'locate'). The libgen.so file belongs to a software > > package for handling the radar data I'm working with. Other than that, > > there is a libgen.h file but no libgen.a or libgen.so.(anything). > > Hm. Maybe we should remove the libgen item from configure. I have no > idea what platform it was required on (and there's no documentation > in the configure script about it) ... but it's very likely obsolete. > > > Would you know what I need to fix to let the installation proceed? > > I'd suggest make clean, edit src/Makefile.global to remove -lgen from > the LIBS macro, and rebuild. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- 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 From tgl@sss.pgh.pa.us Wed Feb 1 16:09:12 2006 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 F25489DCA15 for ; Wed, 1 Feb 2006 12:09:12 -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 72920-10 for ; Wed, 1 Feb 2006 12:09:10 -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 20E219DC8E0 for ; Wed, 1 Feb 2006 12:09:09 -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 k11G8wle000972; Wed, 1 Feb 2006 11:08:58 -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: <200602011546.k11FkOI12687@candle.pha.pa.us> References: <200602011546.k11FkOI12687@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 01 Feb 2006 10:46:24 -0500" Date: Wed, 01 Feb 2006 11:08:58 -0500 Message-ID: <971.1138810138@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.102 required=5 tests=[AWL=0.102] X-Spam-Score: 0.102 X-Spam-Level: X-Archive-Number: 200602/4 X-Sequence-Number: 2294 Bruce Momjian writes: > OK, so we should remove from configure.in? > AC_CHECK_LIB(gen, main) I'm just wondering how many of those AC_CHECK_LIB calls are needed only on platforms that no one uses anymore ... regards, tom lane From pgman@candle.pha.pa.us Wed Feb 1 16:13:14 2006 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 4CDBA9DCA14 for ; Wed, 1 Feb 2006 12:13:14 -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 75546-06 for ; Wed, 1 Feb 2006 12:13:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 9D50B9DCA20 for ; Wed, 1 Feb 2006 12:13:11 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11GD9S16723; Wed, 1 Feb 2006 11:13:09 -0500 (EST) From: Bruce Momjian Message-Id: <200602011613.k11GD9S16723@candle.pha.pa.us> Subject: Re: Failed install - libgen.so doesn't exist In-Reply-To: <971.1138810138@sss.pgh.pa.us> To: Tom Lane Date: Wed, 1 Feb 2006 11:13:09 -0500 (EST) CC: flyvholm@fys.ku.dk, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/5 X-Sequence-Number: 2295 Tom Lane wrote: > Bruce Momjian writes: > > OK, so we should remove from configure.in? > > > AC_CHECK_LIB(gen, main) > > 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. We can start removing stuff and find out who complains in 8.2 but that seems error-prone. My guess is that we are going to have to wait for our useless percentage to reach 50% and then we comment out everything and run it through the build farm until they all work, then run a release with heavy beta testing. However, at this stage, I don't think the cost/benefit is worth it. -- 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 From tgl@sss.pgh.pa.us Wed Feb 1 16:29:17 2006 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 From pgman@candle.pha.pa.us Wed Feb 1 16:31:08 2006 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 B4D619DCA14 for ; Wed, 1 Feb 2006 12:31:08 -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 78625-07 for ; Wed, 1 Feb 2006 12:31:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 36FE59DCA36 for ; Wed, 1 Feb 2006 12:31:06 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11GV4G20094; Wed, 1 Feb 2006 11:31:04 -0500 (EST) From: Bruce Momjian Message-Id: <200602011631.k11GV4G20094@candle.pha.pa.us> Subject: Re: Failed install - libgen.so doesn't exist In-Reply-To: <1208.1138811351@sss.pgh.pa.us> To: Tom Lane Date: Wed, 1 Feb 2006 11:31:04 -0500 (EST) CC: flyvholm@fys.ku.dk, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/7 X-Sequence-Number: 2297 Tom Lane wrote: > 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. 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 From tgl@sss.pgh.pa.us Wed Feb 1 16:47:20 2006 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 55DA39DCBA8 for ; Wed, 1 Feb 2006 12:47:20 -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 82758-03 for ; Wed, 1 Feb 2006 12:47:18 -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 E3C5A9DCAE3 for ; Wed, 1 Feb 2006 12:47:17 -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 k11GlFBH001367; Wed, 1 Feb 2006 11:47:15 -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: <200602011631.k11GV4G20094@candle.pha.pa.us> References: <200602011631.k11GV4G20094@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 01 Feb 2006 11:31:04 -0500" Date: Wed, 01 Feb 2006 11:47:15 -0500 Message-ID: <1366.1138812435@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/8 X-Sequence-Number: 2298 Bruce Momjian writes: > Tom Lane wrote: >> 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? It's not possible for any one person to do the legwork, but if several people would look to see what the story is on their platforms, we would have enough info to get started. We need to know which libraries actually get sucked in and some plausible exported names to test for each one. I'll report on HPUX, Linux, and OSX later today, if no one beats me to it. regards, tom lane From pgman@candle.pha.pa.us Wed Feb 1 16:52:05 2006 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 AD8B99DCD45 for ; Wed, 1 Feb 2006 12:52:05 -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 84824-04-10 for ; Wed, 1 Feb 2006 12:52:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id DA8919DCD4E for ; Wed, 1 Feb 2006 12:52:02 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11Gq1123443; Wed, 1 Feb 2006 11:52:01 -0500 (EST) From: Bruce Momjian Message-Id: <200602011652.k11Gq1123443@candle.pha.pa.us> Subject: Re: Failed install - libgen.so doesn't exist In-Reply-To: <1366.1138812435@sss.pgh.pa.us> To: Tom Lane Date: Wed, 1 Feb 2006 11:52:01 -0500 (EST) CC: flyvholm@fys.ku.dk, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/9 X-Sequence-Number: 2299 Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> 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? > > It's not possible for any one person to do the legwork, but if several > people would look to see what the story is on their platforms, we would > have enough info to get started. We need to know which libraries > actually get sucked in and some plausible exported names to test for > each one. > > I'll report on HPUX, Linux, and OSX later today, if no one beats me to > it. You want the Makefile.global LIBS line? On BSD/OS it is: LIBS = -lintl -lssl -lcrypto -lz -lreadline -ltermcap -lgetopt \ -lcompat -lipc -ldl -lm -lutil -- 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 From pgman@candle.pha.pa.us Wed Feb 1 16:54:50 2006 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 3A1249DCBE3 for ; Wed, 1 Feb 2006 12:54:50 -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 87250-02 for ; Wed, 1 Feb 2006 12:54:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id AA9819DCA37 for ; Wed, 1 Feb 2006 12:54:47 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11Gsi023838; Wed, 1 Feb 2006 11:54:44 -0500 (EST) From: Bruce Momjian Message-Id: <200602011654.k11Gsi023838@candle.pha.pa.us> Subject: Re: Failed install - libgen.so doesn't exist In-Reply-To: <200602011652.k11Gq1123443@candle.pha.pa.us> To: Bruce Momjian Date: Wed, 1 Feb 2006 11:54:44 -0500 (EST) CC: Tom Lane , flyvholm@fys.ku.dk, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/10 X-Sequence-Number: 2300 Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > Tom Lane wrote: > > >> 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? > > > > It's not possible for any one person to do the legwork, but if several > > people would look to see what the story is on their platforms, we would > > have enough info to get started. We need to know which libraries > > actually get sucked in and some plausible exported names to test for > > each one. > > > > I'll report on HPUX, Linux, and OSX later today, if no one beats me to > > it. > > You want the Makefile.global LIBS line? On BSD/OS it is: > > LIBS = -lintl -lssl -lcrypto -lz -lreadline -ltermcap -lgetopt \ > -lcompat -lipc -ldl -lm -lutil Uh, can't we pull this line from all the buildfarm members and just aggregate all the used libraries? -- 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 From lrosenman@pervasive.com Wed Feb 1 16:56:51 2006 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 94B399DC809 for ; Wed, 1 Feb 2006 12:56:51 -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 85045-10 for ; Wed, 1 Feb 2006 12:56:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ausimss.pervasive.com (ausimss.pervasive.com [66.45.103.246]) by postgresql.org (Postfix) with ESMTP id 07DAC9DCB9E for ; Wed, 1 Feb 2006 12:56:46 -0400 (AST) Received: from ausbayes2.aus.pervasive.com ([172.16.8.6]) by ausimss.pervasive.com with InterScan Messaging Security Suite; Wed, 01 Feb 2006 10:56:46 -0600 Received: from ausmailowa.aus.pervasive.com ([172.16.4.8]) by ausbayes2.aus.pervasive.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 1 Feb 2006 10:56:45 -0600 Received: from ausmail2k4.aus.pervasive.com ([172.16.4.17]) by ausmailowa.aus.pervasive.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Feb 2006 10:56:45 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Failed install - libgen.so doesn't exist Date: Wed, 1 Feb 2006 10:56:44 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PORTS] Failed install - libgen.so doesn't exist Thread-Index: AcYnUD9ULuYt5jfCReG2FUbmiMUAzwAAAt8g From: "Larry Rosenman" To: "Bruce Momjian" Cc: "Tom Lane" , , X-OriginalArrivalTime: 01 Feb 2006 16:56:45.0039 (UTC) FILETIME=[7B8DB7F0:01C62750] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.135 required=5 tests=[AWL=0.135] X-Spam-Score: 0.135 X-Spam-Level: X-Archive-Number: 200602/11 X-Sequence-Number: 2301 Bruce Momjian wrote: > Bruce Momjian wrote: >> Tom Lane wrote: >>> Bruce Momjian writes: >>>> Tom Lane wrote: >>>>> 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.=20 >>>=20 >>>> Agreed. Anyone want to do the legwork? >>>=20 >>> It's not possible for any one person to do the legwork, but if >>> several people would look to see what the story is on their >>> platforms, we would have enough info to get started. We need to >>> know which libraries actually get sucked in and some plausible >>> exported names to test for each one.=20 >>>=20 >>> I'll report on HPUX, Linux, and OSX later today, if no one beats me >>> to it. >>=20 >> You want the Makefile.global LIBS line? On BSD/OS it is: >>=20 >> LIBS =3D -lintl -lssl -lcrypto -lz -lreadline -ltermcap -lgetopt \ >> -lcompat -lipc -ldl -lm -lutil >=20 > Uh, can't we pull this line from all the buildfarm members and just > aggregate all the used libraries? the issue is whether they actually export symbols that are NEEDED. If someone can give me what to look for, I can cover the UnixWare case (or give me a script to run on 'firefly'). LER --=20 Larry Rosenman =09 Database Support Engineer PERVASIVE SOFTWARE. INC. 12365B RIATA TRACE PKWY 3015 AUSTIN TX 78727-6531=20 Tel: 512.231.6173 Fax: 512.231.6597 Email: Larry.Rosenman@pervasive.com Web: www.pervasive.com=20 From pgman@candle.pha.pa.us Wed Feb 1 17:05:03 2006 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 5C8799DCDD9 for ; Wed, 1 Feb 2006 13:05:03 -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 90245-01 for ; Wed, 1 Feb 2006 13:05:01 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id E14089DCDCE for ; Wed, 1 Feb 2006 13:04:59 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k11H41t25436; Wed, 1 Feb 2006 12:04:01 -0500 (EST) From: Bruce Momjian Message-Id: <200602011704.k11H41t25436@candle.pha.pa.us> Subject: Re: Failed install - libgen.so doesn't exist In-Reply-To: To: Larry Rosenman Date: Wed, 1 Feb 2006 12:04:01 -0500 (EST) CC: Tom Lane , flyvholm@fys.ku.dk, pgsql-ports@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200602/12 X-Sequence-Number: 2302 Larry Rosenman wrote: > >>>> Agreed. Anyone want to do the legwork? > >>> > >>> It's not possible for any one person to do the legwork, but if > >>> several people would look to see what the story is on their > >>> platforms, we would have enough info to get started. We need to > >>> know which libraries actually get sucked in and some plausible > >>> exported names to test for each one. > >>> > >>> I'll report on HPUX, Linux, and OSX later today, if no one beats me > >>> to it. > >> > >> You want the Makefile.global LIBS line? On BSD/OS it is: > >> > >> LIBS = -lintl -lssl -lcrypto -lz -lreadline -ltermcap -lgetopt \ > >> -lcompat -lipc -ldl -lm -lutil > > > > Uh, can't we pull this line from all the buildfarm members and just > > aggregate all the used libraries? > > the issue is whether they actually export symbols that are NEEDED. Yea, ouch. This is going to be a pain. -- 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 From tgl@sss.pgh.pa.us Wed Feb 1 17:14:49 2006 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 941AA9DC869 for ; Wed, 1 Feb 2006 13:14:49 -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 88942-05 for ; Wed, 1 Feb 2006 13:14:48 -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 709D39DC809 for ; Wed, 1 Feb 2006 13:14:47 -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 k11HAmPk001620; Wed, 1 Feb 2006 12:10:48 -0500 (EST) To: Bruce Momjian cc: Larry Rosenman , flyvholm@fys.ku.dk, pgsql-ports@postgresql.org Subject: Re: Failed install - libgen.so doesn't exist In-reply-to: <200602011704.k11H41t25436@candle.pha.pa.us> References: <200602011704.k11H41t25436@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 01 Feb 2006 12:04:01 -0500" Date: Wed, 01 Feb 2006 12:10:47 -0500 Message-ID: <1619.1138813847@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/13 X-Sequence-Number: 2303 Bruce Momjian writes: > Larry Rosenman wrote: >> the issue is whether they actually export symbols that are NEEDED. > Yea, ouch. This is going to be a pain. What I had in mind was to run "nm --ext --def" or local equivalent on each library, and then pick out a few symbols that look plausible to test for (or just send 'em all to the list if you are lazy). We want to pick a symbol for each library that (a) is actually referenced by Postgres and (b) exists in that library on all our platforms that need that library. regards, tom lane From RoccoA@Routescape.com Thu Feb 2 17:47:51 2006 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 D882A9DC81E for ; Thu, 2 Feb 2006 13:47:51 -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 24021-07 for ; Thu, 2 Feb 2006 13:47:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.routescape.com (ip-65-111-69-19.customer.accelacom.net [65.111.69.19]) by postgresql.org (Postfix) with ESMTP id 31BD19DC85E for ; Thu, 2 Feb 2006 13:47:48 -0400 (AST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Re: Failed install - libgen.so doesn't exist Date: Thu, 2 Feb 2006 12:47:47 -0500 Message-ID: <6E0907A94904D94B99D7F387E08C4F57C62741@FALCON.INSIGHT> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PORTS] Failed install - libgen.so doesn't exist Thread-Index: AcYnUwWrb9eFaKamT7qD/o1HpmiRHQAATLZg From: "Rocco Altier" To: "Tom Lane" , "Bruce Momjian" Cc: "Larry Rosenman" , , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.17 required=5 tests=[AWL=0.170] X-Spam-Score: 0.17 X-Spam-Level: X-Archive-Number: 200602/14 X-Sequence-Number: 2304 Is there an easy way to tell what symbols are being used by Postgres? For example, I was looking into libPW, and I want to see which symbols might be used, but I don't see any being pulled into postgres binary or the other commands. BTW, from what I am reading is not thread-safe, so I wonder if we should be including it even when we find it. Or what possible calls we might be using from it. -rocco > -----Original Message----- > From: pgsql-ports-owner@postgresql.org=20 > [mailto:pgsql-ports-owner@postgresql.org] On Behalf Of Tom Lane > Sent: Wednesday, February 01, 2006 12:11 PM > To: Bruce Momjian > Cc: Larry Rosenman; flyvholm@fys.ku.dk; pgsql-ports@postgresql.org > Subject: Re: [PORTS] Failed install - libgen.so doesn't exist=20 >=20 >=20 > Bruce Momjian writes: > > Larry Rosenman wrote: > >> the issue is whether they actually export symbols that are NEEDED. >=20 > > Yea, ouch. This is going to be a pain. >=20 > What I had in mind was to run "nm --ext --def" or local equivalent > on each library, and then pick out a few symbols that look plausible > to test for (or just send 'em all to the list if you are lazy). We > want to pick a symbol for each library that (a) is actually referenced > by Postgres and (b) exists in that library on all our platforms that > need that library. >=20 > regards, tom lane >=20 > ---------------------------(end of=20 > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >=20 From peter_e@gmx.net Sat Feb 4 00:54:54 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0DFD69DCBF3 for ; Fri, 3 Feb 2006 20:54:54 -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 61240-04 for ; Fri, 3 Feb 2006 20:54:56 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by postgresql.org (Postfix) with SMTP id A4AAD9DC898 for ; Fri, 3 Feb 2006 20:54:50 -0400 (AST) Received: (qmail invoked by alias); 04 Feb 2006 00:54:53 -0000 Received: from dslb-084-063-030-013.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.30.13] by mail.gmx.net (mp029) with SMTP; 04 Feb 2006 01:54:53 +0100 X-Authenticated: #495269 From: Peter Eisentraut To: pgsql-hackers@postgresql.org Subject: Re: [PORTS] Failed install - libgen.so doesn't exist Date: Sat, 4 Feb 2006 01:54:52 +0100 User-Agent: KMail/1.8.3 References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> In-Reply-To: <1208.1138811351@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602040154.52340.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.13 required=5 tests=[AWL=0.130] X-Spam-Score: 0.13 X-Spam-Level: X-Archive-Number: 200602/118 X-Sequence-Number: 79256 Tom Lane wrote: > 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. I took a first swing at this and rearranged some of these calls. A couple of other findings: nsl -- This might contain socket functions on some older platforms. ipc, IPC, lc -- unknown ld -- On AIX at least this seems to be some magic library but doesn't have an obvious testable symbol. compat -- could be anything, obviously 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). gen -- "generic" or "general", so this could be a lot, but it might contain syslog on some platforms at least. PW -- might be a compatibility library but none of the functions I found are used by PostgreSQL. resolv -- I don't think we need that. -- Peter Eisentraut http://developer.postgresql.org/~petere/ From kleptog@svana.org Sat Feb 4 10:59:34 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E65339DC99B for ; Sat, 4 Feb 2006 06:59:34 -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 16144-08 for ; Sat, 4 Feb 2006 06:59:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svana.org (svana.org [125.62.94.225]) by postgresql.org (Postfix) with ESMTP id 172699DC9A3 for ; Sat, 4 Feb 2006 06:59:32 -0400 (AST) Received: from kleptog by svana.org with local (Exim 4.50) id 1F5L8T-0004TZ-PA; Sat, 04 Feb 2006 21:59:21 +1100 Date: Sat, 4 Feb 2006 11:59:21 +0100 From: Martijn van Oosterhout To: Peter Eisentraut Cc: pgsql-hackers@postgresql.org Subject: Re: [PORTS] Failed install - libgen.so doesn't exist Message-ID: <20060204105921.GA17045@svana.org> Reply-To: Martijn van Oosterhout References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <200602040154.52340.peter_e@gmx.net> X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: X-Warning: Normally my messages are signed, but not on the ozTiVo list due to legacy application support User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.138 required=5 tests=[AWL=0.138] X-Spam-Score: 0.138 X-Spam-Level: X-Archive-Number: 200602/121 X-Sequence-Number: 79259 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > 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=20 > 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= =20 > Solaris to switch to BSD semantics on certain functions, but I don't=20 > 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=20 > 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= =20 > 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, --=20 Martijn van Oosterhout 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. --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD5IkJIB7bNG8LQkwRAtqEAJ42HHydloGEg0dZ7mYcMF4X4mjBswCfUhXz FVxSOmbPl7Nv8Iex7LedXQg= =g48g -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK-- From pgman@candle.pha.pa.us Sat Feb 4 14:49:05 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 123539DCA24 for ; Sat, 4 Feb 2006 10:49:05 -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 80203-08 for ; Sat, 4 Feb 2006 10:49:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 4D99E9DC9AE for ; Sat, 4 Feb 2006 10:49:02 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k14EmnQ10166; Sat, 4 Feb 2006 09:48:49 -0500 (EST) From: Bruce Momjian Message-Id: <200602041448.k14EmnQ10166@candle.pha.pa.us> Subject: Re: [PORTS] Failed install - libgen.so doesn't exist In-Reply-To: <20060204105921.GA17045@svana.org> To: Martijn van Oosterhout Date: Sat, 4 Feb 2006 09:48:49 -0500 (EST) CC: Peter Eisentraut , pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.128 required=5 tests=[AWL=0.128] X-Spam-Score: 0.128 X-Spam-Level: X-Archive-Number: 200602/122 X-Sequence-Number: 79260 Martijn van Oosterhout wrote: > > compat -- could be anything, obviously > > I have it listed as only needed for PRE_BSDI_2_1. I don't really know > though. We can drop support for pre-2.1 BSDI. -- 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 From cbbrowne@acm.org Mon Feb 6 22:07:39 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 15BA39DCA4B for ; Mon, 6 Feb 2006 18:07:39 -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 58815-03 for ; Mon, 6 Feb 2006 18:07:41 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id 049B89DCA42 for ; Mon, 6 Feb 2006 18:07:38 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id k16M7ZDO035741 for ; Mon, 6 Feb 2006 22:07:35 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id k16M3wIw035296 for pgsql-hackers@postgresql.org; Mon, 6 Feb 2006 18:03:58 -0400 (AST) (envelope-from news) From: Chris Browne X-Newsgroups: pgsql.hackers Subject: Re: [PORTS] Failed install - libgen.so doesn't exist Date: Mon, 06 Feb 2006 16:45:11 -0500 Organization: cbbrowne Computing Inc Lines: 40 Message-ID: <60r76gi2l4.fsf@dba2.int.libertyrms.com> References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> <20060204105921.GA17045@svana.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (linux) Cancel-Lock: sha1:qzW0CjePd5euwRQZZpeMJ1MMtkA= To: pgsql-hackers@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-1.279 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.161] X-Spam-Score: -1.279 X-Spam-Level: X-Archive-Number: 200602/175 X-Sequence-Number: 79313 kleptog@svana.org (Martijn van Oosterhout) writes: > 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. > >> 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. Further, it appears to be AIX pre-4.3 only, when using it for dlopen() replacement... It would be an attractive idea to have configure detect not whether it's open, but rather whether it is needed, and leave it out for AIX 4.3 and "better"... > 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. Seneca didn't notice it being picked up; it may be that it is only detected and used on old versions of AIX... >> 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. Apparently this is for compatibility with the AT&T Programmers Workbench toolkit; probably not too relevant to anyone these days... On AIX, it gets detected, but functions are never used. I'll bet the same is true on some other platforms (Solaris, HP/UX, and such). -- "cbbrowne","@","acm.org" http://cbbrowne.com/info/nonrdbms.html Smith's Test for Artificial Life: When animal-rights activists and right-to-life protesters are marching outside your laboratory, then you know you've definitely made progress in your artificial life research. -- Donald A. Smith From kleptog@svana.org Tue Feb 7 05:28:22 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 6711A9DC83C for ; Tue, 7 Feb 2006 01:28:22 -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 49874-05 for ; Tue, 7 Feb 2006 01:28:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svana.org (svana.org [125.62.94.225]) by postgresql.org (Postfix) with ESMTP id 0514B9DC803 for ; Tue, 7 Feb 2006 01:28:19 -0400 (AST) Received: from kleptog by svana.org with local (Exim 4.50) id 1F6LOg-00053B-MW; Tue, 07 Feb 2006 16:28:14 +1100 Date: Tue, 7 Feb 2006 06:28:14 +0100 From: Martijn van Oosterhout To: Chris Browne Cc: pgsql-hackers@postgresql.org Subject: Re: [PORTS] Failed install - libgen.so doesn't exist Message-ID: <20060207052814.GA19240@svana.org> Reply-To: Martijn van Oosterhout References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> <20060204105921.GA17045@svana.org> <60r76gi2l4.fsf@dba2.int.libertyrms.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <60r76gi2l4.fsf@dba2.int.libertyrms.com> X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.136 required=5 tests=[AWL=0.136] X-Spam-Score: 0.136 X-Spam-Level: X-Archive-Number: 200602/187 X-Sequence-Number: 79325 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 06, 2006 at 04:45:11PM -0500, Chris Browne wrote: > Further, it appears to be AIX pre-4.3 only, when using it for dlopen() > replacement... >=20 > It would be an attractive idea to have configure detect not whether > it's open, but rather whether it is needed, and leave it out for AIX > 4.3 and "better"... That's kinda the point of these discussions, to answer the question: what is in those libraries we need? Which symbol did we want? Rather than trying to detect versions, is there some change in the library (added or removed symbol) that we can base our decision on? Does that library (ld) actually provide dlopen() or something else? Thanks for the info. --=20 Martijn van Oosterhout 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. --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD6C/uIB7bNG8LQkwRAjfxAJ93JCuDkxbAz8a81XjxBR9csIa5hQCeOy/G dBS7WsRXGfhBViLxMacPfx4= =dS+A -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY-- From scunning@ca.afilias.info Tue Feb 7 15:04:06 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BEAC29DC9D2 for ; Tue, 7 Feb 2006 11:04:06 -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 77607-03 for ; Tue, 7 Feb 2006 11:04:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.libertyrms.com (vgateway.libertyrms.info [207.219.45.62]) by postgresql.org (Postfix) with ESMTP id 636339DC81D for ; Tue, 7 Feb 2006 11:04:04 -0400 (AST) Received: from dev5.int.libertyrms.com ([10.1.3.42]) by mail.libertyrms.com with esmtp (Exim 4.22) id 1F6UNk-0007TW-3P; Tue, 07 Feb 2006 10:03:52 -0500 Message-ID: <43E8B706.4060008@ca.afilias.info> Date: Tue, 07 Feb 2006 10:04:38 -0500 From: Seneca Cunningham User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martijn van Oosterhout CC: Chris Browne , pgsql-hackers@postgresql.org Subject: Re: [PORTS] Failed install - libgen.so doesn't exist References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> <20060204105921.GA17045@svana.org> <60r76gi2l4.fsf@dba2.int.libertyrms.com> <20060207052814.GA19240@svana.org> In-Reply-To: <20060207052814.GA19240@svana.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Mail-From: scunning@ca.afilias.info X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.968 required=5 tests=[AWL=0.155, INFO_TLD=0.813] X-Spam-Score: 0.968 X-Spam-Level: X-Archive-Number: 200602/195 X-Sequence-Number: 79333 Martijn van Oosterhout wrote: > On Mon, Feb 06, 2006 at 04:45:11PM -0500, Chris Browne wrote: > >>Further, it appears to be AIX pre-4.3 only, when using it for dlopen() >>replacement... >> >>It would be an attractive idea to have configure detect not whether >>it's open, but rather whether it is needed, and leave it out for AIX >>4.3 and "better"... > > > That's kinda the point of these discussions, to answer the question: > what is in those libraries we need? Which symbol did we want? Rather > than trying to detect versions, is there some change in the library > (added or removed symbol) that we can base our decision on? > > Does that library (ld) actually provide dlopen() or something else? libld.a does not provide dlopen(), libdl.a does. libld.a provides functions like ldopen() needed by src/backend/port/dynloader/aix.c for the dl*() substitutes built on AIX versions that lack dlopen and libdl.a, which appears to be versions prior to 4.3. -- Seneca Cunningham scunning@ca.afilias.info From kleptog@svana.org Tue Feb 7 17:07:35 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 92FA99DC9CD for ; Tue, 7 Feb 2006 13:07:35 -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 99455-09 for ; Tue, 7 Feb 2006 13:07:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svana.org (svana.org [125.62.94.225]) by postgresql.org (Postfix) with ESMTP id 2400E9DC9B7 for ; Tue, 7 Feb 2006 13:07:33 -0400 (AST) Received: from kleptog by svana.org with local (Exim 4.50) id 1F6WJG-0006e8-SV; Wed, 08 Feb 2006 04:07:22 +1100 Date: Tue, 7 Feb 2006 18:07:22 +0100 From: Martijn van Oosterhout To: Seneca Cunningham Cc: Chris Browne , pgsql-hackers@postgresql.org Subject: Re: [PORTS] Failed install - libgen.so doesn't exist Message-ID: <20060207170722.GD19240@svana.org> Reply-To: Martijn van Oosterhout References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> <20060204105921.GA17045@svana.org> <60r76gi2l4.fsf@dba2.int.libertyrms.com> <20060207052814.GA19240@svana.org> <43E8B706.4060008@ca.afilias.info> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bajzpZikUji1w+G9" Content-Disposition: inline In-Reply-To: <43E8B706.4060008@ca.afilias.info> X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.134 required=5 tests=[AWL=0.134] X-Spam-Score: 0.134 X-Spam-Level: X-Archive-Number: 200602/206 X-Sequence-Number: 79344 --bajzpZikUji1w+G9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 07, 2006 at 10:04:38AM -0500, Seneca Cunningham wrote: > libld.a does not provide dlopen(), libdl.a does. libld.a provides > functions like ldopen() needed by src/backend/port/dynloader/aix.c for > the dl*() substitutes built on AIX versions that lack dlopen and > libdl.a, which appears to be versions prior to 4.3. Right, so the configure test should be (sample): if ! HAVE_DLOPEN then AC_CHECK_LIB(ld, load) fi So it only tries to look for -lld if it can't find dlopen elsewhere... Have a nice day, --=20 Martijn van Oosterhout 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. --bajzpZikUji1w+G9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD6NPKIB7bNG8LQkwRAlXpAKCEa/dxBM2F/O6VEvDyOgZpPtfSHACggedI L7G6ppw/RgM7g1v9QBlJh2M= =RlF2 -----END PGP SIGNATURE----- --bajzpZikUji1w+G9-- From tgl@sss.pgh.pa.us Tue Feb 7 17:34:56 2006 X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1D4769DC81D for ; Tue, 7 Feb 2006 13:34:56 -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 06741-03 for ; Tue, 7 Feb 2006 13:34:55 -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 9E0699DC803 for ; Tue, 7 Feb 2006 13:34:52 -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 k17HYRl0026976; Tue, 7 Feb 2006 12:34:27 -0500 (EST) To: Peter Eisentraut cc: Martijn van Oosterhout , Seneca Cunningham , Chris Browne , pgsql-hackers@postgresql.org Subject: Re: [PORTS] Failed install - libgen.so doesn't exist In-reply-to: <43E8B706.4060008@ca.afilias.info> References: <200602011613.k11GD9S16723@candle.pha.pa.us> <1208.1138811351@sss.pgh.pa.us> <200602040154.52340.peter_e@gmx.net> <20060204105921.GA17045@svana.org> <60r76gi2l4.fsf@dba2.int.libertyrms.com> <20060207052814.GA19240@svana.org> <43E8B706.4060008@ca.afilias.info> Comments: In-reply-to Seneca Cunningham message dated "Tue, 07 Feb 2006 10:04:38 -0500" Date: Tue, 07 Feb 2006 12:34:27 -0500 Message-ID: <26975.1139333667@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.108 required=5 tests=[AWL=0.108] X-Spam-Score: 0.108 X-Spam-Level: X-Archive-Number: 200602/210 X-Sequence-Number: 79348 > Martijn van Oosterhout wrote: >> That's kinda the point of these discussions, to answer the question: >> what is in those libraries we need? Which symbol did we want? Rather >> than trying to detect versions, is there some change in the library >> (added or removed symbol) that we can base our decision on? I finally got around to investigating this on HPUX, which has three of the libraries we are wondering about: libPW, libBSD, libld. libPW includes nothing we need. It contains alloca(), which I think we once used, but not anymore. libBSD includes a 4.2BSD-compatible version of signal(), which we aren't invoking anymore because we HAVE_POSIX_SIGNALS on this platform. The HPUX man page deprecates the use of this library altogether. libld includes a bunch of functions that have no man pages, but look like they are intended to manipulate .a-style libraries: ldopen, ldnextofile, etc. The only references I can find to them in our source code are in backend/port/dynloader/aix.c. I recommend we remove libPW and libBSD from configure's list, and modify the libld entry to probe for "ldopen". I've confirmed we build and pass regression on HPUX without these. Also, since libgen is the thing that started this thread, why don't we remove that too and see what happens? regards, tom lane