Bug 430472 - libpq.so badly built
Summary: libpq.so badly built
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: postgresql
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Tom Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-28 11:18 UTC by Bastien Nocera
Modified: 2013-07-03 03:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-28 18:08:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bastien Nocera 2008-01-28 11:18:20 UTC
postgresql-devel-8.2.5-1.fc8

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

Comment 1 Tom Lane 2008-01-28 16:53:47 UTC
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 ...

Comment 2 Bastien Nocera 2008-01-28 18:08:15 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.