Red Hat Bugzilla – Bug 430472
libpq.so badly built
Last modified: 2013-07-02 23:17:31 EDT
The CVS HEAD version of gnokii doesn't build because libpq.so is built as a
loadable module, and not a shared-library.
*** Warning: Linking the shared library libsmsd_pq.la against the loadable module
*** libpq.so is not portable!
gcc -shared .libs/pq.o .libs/utils.o -Wl,--rpath
-Wl,/home/hadess/Projects/Cvs/gnokii/smsd/.libs -Wl,--rpath -Wl,/usr/lib64//smsd
-L/usr/lib64 /home/hadess/Projects/Cvs/gnokii/smsd/.libs/libpq.so -m64
-mtune=generic -pthread -Wl,-soname -Wl,libsmsd_pq.so -o .libs/libsmsd_pq.so
Judging from the given command, gnokii has (mis) built its own copy of libpq.so instead of using the
system one. Surely you should be filing this bug against gnokii instead of postgresql?
Another thing that looks pretty bogus there is the rpath that's being embedded into the library ...
I already corrected this, but the autofools didn't take it into consideration
(as can be seen from the target: libsmsd_pq.la). So already fixed in CVS. Thanks.