pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Failed install - libgen.so doesn't exist
25+ messages / 9 participants
[nested] [flat]

* Failed install - libgen.so doesn't exist
@ 2006-01-24 03:35 Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Poul Jensen @ 2006-01-24 03:35 UTC (permalink / raw)
  To: pgsql-ports

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

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
@ 2006-01-30 04:00 ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  0 siblings, 1 reply; 25+ messages in thread

From: Tom Lane @ 2006-01-30 04:00 UTC (permalink / raw)
  To: Poul Jensen <flyvholm@fys.ku.dk>; +Cc: pgsql-ports

"Poul Jensen" <flyvholm@fys.ku.dk> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-01-30 04:34   ` Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Poul Jensen @ 2006-01-30 04:34 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-ports

Tom Lane wrote:

>"Poul Jensen" <flyvholm@fys.ku.dk> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
@ 2006-01-30 04:39     ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 06:12       ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 2 replies; 25+ messages in thread

From: Tom Lane @ 2006-01-30 04:39 UTC (permalink / raw)
  To: flyvholm@fys.ku.dk; +Cc: pgsql-ports

Poul Jensen <flyvholm@fys.ku.dk> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-01-30 06:12       ` Poul Jensen <flyvholm@fys.ku.dk>
  1 sibling, 0 replies; 25+ messages in thread

From: Poul Jensen @ 2006-01-30 06:12 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-ports


>>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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-02-01 15:46       ` Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 25+ messages in thread

From: Bruce Momjian @ 2006-02-01 15:46 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports


OK, so we should remove from configure.in?

	AC_CHECK_LIB(gen,      main)

---------------------------------------------------------------------------

Tom Lane wrote:
> Poul Jensen <flyvholm@fys.ku.dk> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
@ 2006-02-01 16:08         ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Tom Lane @ 2006-02-01 16:08 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports

Bruce Momjian <pgman@candle.pha.pa.us> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-02-01 16:13           ` Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Bruce Momjian @ 2006-02-01 16:13 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
@ 2006-02-01 16:29             ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:31               ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 2 replies; 25+ messages in thread

From: Tom Lane @ 2006-02-01 16:29 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports

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.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-02-01 16:31               ` Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:47                 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 25+ messages in thread

From: Bruce Momjian @ 2006-02-01 16:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports

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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:31               ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
@ 2006-02-01 16:47                 ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:52                   ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Tom Lane @ 2006-02-01 16:47 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports

Bruce Momjian <pgman@candle.pha.pa.us> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:31               ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:47                 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-02-01 16:52                   ` Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:54                     ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Bruce Momjian @ 2006-02-01 16:52 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: flyvholm@fys.ku.dk; pgsql-ports

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:31               ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:47                 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:52                   ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
@ 2006-02-01 16:54                     ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 25+ messages in thread

From: Bruce Momjian @ 2006-02-01 16:54 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; flyvholm@fys.ku.dk; pgsql-ports

Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman@candle.pha.pa.us> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-02-04 00:54               ` Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  1 sibling, 1 reply; 25+ messages in thread

From: Peter Eisentraut @ 2006-02-04 00:54 UTC (permalink / raw)
  To: pgsql-hackers@postgresql.org

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/



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
@ 2006-02-04 10:59                 ` Martijn van Oosterhout <kleptog@svana.org>
  2006-02-04 14:48                   ` Re: [PORTS] Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-06 21:45                   ` Re: [PORTS] Failed install - libgen.so doesn't exist Chris Browne <cbbrowne@acm.org>
  0 siblings, 2 replies; 25+ messages in thread

From: Martijn van Oosterhout @ 2006-02-04 10:59 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-hackers@postgresql.org

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

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
@ 2006-02-04 14:48                   ` Bruce Momjian <pgman@candle.pha.pa.us>
  1 sibling, 0 replies; 25+ messages in thread

From: Bruce Momjian @ 2006-02-04 14:48 UTC (permalink / raw)
  To: Martijn van Oosterhout <kleptog@svana.org>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-hackers@postgresql.org

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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
@ 2006-02-06 21:45                   ` Chris Browne <cbbrowne@acm.org>
  2006-02-07 05:28                     ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  1 sibling, 1 reply; 25+ messages in thread

From: Chris Browne @ 2006-02-06 21:45 UTC (permalink / raw)
  To: pgsql-hackers@postgresql.org

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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-06 21:45                   ` Re: [PORTS] Failed install - libgen.so doesn't exist Chris Browne <cbbrowne@acm.org>
@ 2006-02-07 05:28                     ` Martijn van Oosterhout <kleptog@svana.org>
  2006-02-07 15:04                       ` Re: [PORTS] Failed install - libgen.so doesn't exist Seneca Cunningham <scunning@ca.afilias.info>
  0 siblings, 1 reply; 25+ messages in thread

From: Martijn van Oosterhout @ 2006-02-07 05:28 UTC (permalink / raw)
  To: Chris Browne <cbbrowne@acm.org>; +Cc: pgsql-hackers@postgresql.org

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?

Thanks for the info.
-- 
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

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-06 21:45                   ` Re: [PORTS] Failed install - libgen.so doesn't exist Chris Browne <cbbrowne@acm.org>
  2006-02-07 05:28                     ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
@ 2006-02-07 15:04                       ` Seneca Cunningham <scunning@ca.afilias.info>
  2006-02-07 17:07                         ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-07 17:34                         ` Re: [PORTS] Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 25+ messages in thread

From: Seneca Cunningham @ 2006-02-07 15:04 UTC (permalink / raw)
  To: Martijn van Oosterhout <kleptog@svana.org>; +Cc: Chris Browne <cbbrowne@acm.org>; pgsql-hackers@postgresql.org

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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-06 21:45                   ` Re: [PORTS] Failed install - libgen.so doesn't exist Chris Browne <cbbrowne@acm.org>
  2006-02-07 05:28                     ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-07 15:04                       ` Re: [PORTS] Failed install - libgen.so doesn't exist Seneca Cunningham <scunning@ca.afilias.info>
@ 2006-02-07 17:07                         ` Martijn van Oosterhout <kleptog@svana.org>
  1 sibling, 0 replies; 25+ messages in thread

From: Martijn van Oosterhout @ 2006-02-07 17:07 UTC (permalink / raw)
  To: Seneca Cunningham <scunning@ca.afilias.info>; +Cc: Chris Browne <cbbrowne@acm.org>; pgsql-hackers@postgresql.org

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,
-- 
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

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: [PORTS] Failed install - libgen.so doesn't exist
  2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:00 ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-30 04:34   ` Re: Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
  2006-01-30 04:39     ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 15:46       ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:08         ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-01 16:13           ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 16:29             ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-04 00:54               ` Re: [PORTS] Failed install - libgen.so doesn't exist Peter Eisentraut <peter_e@gmx.net>
  2006-02-04 10:59                 ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-06 21:45                   ` Re: [PORTS] Failed install - libgen.so doesn't exist Chris Browne <cbbrowne@acm.org>
  2006-02-07 05:28                     ` Re: [PORTS] Failed install - libgen.so doesn't exist Martijn van Oosterhout <kleptog@svana.org>
  2006-02-07 15:04                       ` Re: [PORTS] Failed install - libgen.so doesn't exist Seneca Cunningham <scunning@ca.afilias.info>
@ 2006-02-07 17:34                         ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 25+ messages in thread

From: Tom Lane @ 2006-02-07 17:34 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Martijn van Oosterhout <kleptog@svana.org>; Seneca Cunningham <scunning@ca.afilias.info>; Chris Browne <cbbrowne@acm.org>; pgsql-hackers@postgresql.org

> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
@ 2006-02-01 16:56 Larry Rosenman <lrosenman@pervasive.com>
  2006-02-01 17:04 ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Larry Rosenman @ 2006-02-01 16:56 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; flyvholm@fys.ku.dk; pgsql-ports

Bruce Momjian wrote:
> Bruce Momjian wrote:
>> Tom Lane wrote:
>>> Bruce Momjian <pgman@candle.pha.pa.us> 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?

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


-- 
Larry Rosenman		
Database Support Engineer

PERVASIVE SOFTWARE. INC.
12365B RIATA TRACE PKWY
3015
AUSTIN TX  78727-6531 

Tel: 512.231.6173
Fax: 512.231.6597
Email: Larry.Rosenman@pervasive.com
Web: www.pervasive.com 



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-02-01 16:56 Re: Failed install - libgen.so doesn't exist Larry Rosenman <lrosenman@pervasive.com>
@ 2006-02-01 17:04 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2006-02-01 17:10   ` Re: Failed install - libgen.so doesn't exist Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 25+ messages in thread

From: Bruce Momjian @ 2006-02-01 17:04 UTC (permalink / raw)
  To: Larry Rosenman <lrosenman@pervasive.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; flyvholm@fys.ku.dk; pgsql-ports

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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
  2006-02-01 16:56 Re: Failed install - libgen.so doesn't exist Larry Rosenman <lrosenman@pervasive.com>
  2006-02-01 17:04 ` Re: Failed install - libgen.so doesn't exist Bruce Momjian <pgman@candle.pha.pa.us>
@ 2006-02-01 17:10   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 25+ messages in thread

From: Tom Lane @ 2006-02-01 17:10 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Larry Rosenman <lrosenman@pervasive.com>; flyvholm@fys.ku.dk; pgsql-ports

Bruce Momjian <pgman@candle.pha.pa.us> 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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Failed install - libgen.so doesn't exist
@ 2006-02-02 17:47 Rocco Altier <RoccoA@Routescape.com>
  0 siblings, 0 replies; 25+ messages in thread

From: Rocco Altier @ 2006-02-02 17:47 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Larry Rosenman <lrosenman@pervasive.com>; flyvholm@fys.ku.dk; pgsql-ports

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 
> [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 
> 
> 
> Bruce Momjian <pgman@candle.pha.pa.us> 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
> 
> ---------------------------(end of 
> 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
> 



^ permalink  raw  reply  [nested|flat] 25+ messages in thread


end of thread, other threads:[~2006-02-07 17:34 UTC | newest]

Thread overview: 25+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-24 03:35 Failed install - libgen.so doesn't exist Poul Jensen <flyvholm@fys.ku.dk>
2006-01-30 04:00 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-01-30 04:34   ` Poul Jensen <flyvholm@fys.ku.dk>
2006-01-30 04:39     ` Tom Lane <tgl@sss.pgh.pa.us>
2006-01-30 06:12       ` Poul Jensen <flyvholm@fys.ku.dk>
2006-02-01 15:46       ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-01 16:08         ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-01 16:13           ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-01 16:29             ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-01 16:31               ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-01 16:47                 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-01 16:52                   ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-01 16:54                     ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-04 00:54               ` Peter Eisentraut <peter_e@gmx.net>
2006-02-04 10:59                 ` Martijn van Oosterhout <kleptog@svana.org>
2006-02-04 14:48                   ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-06 21:45                   ` Chris Browne <cbbrowne@acm.org>
2006-02-07 05:28                     ` Martijn van Oosterhout <kleptog@svana.org>
2006-02-07 15:04                       ` Seneca Cunningham <scunning@ca.afilias.info>
2006-02-07 17:07                         ` Martijn van Oosterhout <kleptog@svana.org>
2006-02-07 17:34                         ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-01 16:56 Re: Failed install - libgen.so doesn't exist Larry Rosenman <lrosenman@pervasive.com>
2006-02-01 17:04 ` Bruce Momjian <pgman@candle.pha.pa.us>
2006-02-01 17:10   ` Tom Lane <tgl@sss.pgh.pa.us>
2006-02-02 17:47 Re: Failed install - libgen.so doesn't exist Rocco Altier <RoccoA@Routescape.com>

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