Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries )
От | Albe Laurenz |
---|---|
Тема | Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries ) |
Дата | |
Msg-id | 52EF20B2E3209443BC37736D00C3C1380A626B48@EXADV1.host.magwien.gv.at обсуждение исходный текст |
Ответы |
Re: [PATCHES] Linking on AIX (Was: Fix linking of OpenLDAP libraries )
|
Список | pgsql-hackers |
Rocco Altier wrote: > 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. Yup, that's as expected :^) Up to now you have built against the static libpq.a I didn't add the right -blibpath to this patch that failed for you - the broken initdb is dynamically linked but does not know where to look for its shared library. The patch I just submitted to pgsql-patches should take care of that. It makes the executables look in --libdir. Yours, Laurenz Albe
В списке pgsql-hackers по дате отправления: