Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries ) - Mailing list pgsql-hackers

From Rocco Altier
Subject Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries )
Date
Msg-id 6E0907A94904D94B99D7F387E08C4F57016D1D33@FALCON.INSIGHT
Whole thread Raw
List pgsql-hackers
> I suspect that up to now the buildfarm had a static build of
> PostgreSQL. What is the output of 'ldd initdb' when it builds
> and runs correctly?
>
> Is libpq.so in a non-standard directory? If yes, one either
> has to export LIBPATH in the environment or link with
> -L/location/of/libpq for the executable to find it
> (similar to RPATH in Linux).
>
Here is the working one:
initdb needs:        /usr/lib/libc.a(shr.o)        /unix        /usr/lib/libcrypt.a(shr.o)

Here is the broken one:
initdb needs:        ../../../src/interfaces/libpq/libpq.so        /usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)       /unix        /usr/lib/libcrypt.a(shr.o) 

When run it shows:
exec(): 0509-036 Cannot load program initdb because of the following
errors:       0509-150   Dependent module libpq.so could not be loaded.       0509-022 Cannot load module libpq.so.
 0509-026 System error: A file or directory in the path name does 
not exist.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Release notes
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] plpgsql, return can contains any expression