[Bug 859953] New: postgresql-devel broken for development & linking
https://bugzilla.novell.com/show_bug.cgi?id=859953 https://bugzilla.novell.com/show_bug.cgi?id=859953#c0 Summary: postgresql-devel broken for development & linking Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: erik@lotspeich.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36 The postgresql-devel package pulls in postgersql92-devel which brings ecpg, pg_config, and some header files. That's fine. But it doesn't bring in libecpg.a and libpgtypes.a. The corresponding shared libraries (libecpg.so, libpgtypes.so) are stripped. So, in essence, the postgresql-devel package is useless and broken since there's no way to build an application that links against libecpg/libpgtypes. Reproducible: Always Steps to Reproduce: 1. Link a PostgreSQL client application with -lecpg 2. Observe failure Actual Results: Attempt to build a PostgreSQL client application by linking with -lecpg. The failure is: /usr/lib64/libpgtypes.so.3: could not read symbols: Invalid operation Expected Results: Success would be a successful link. Ideally, the shared libraries would not be stripped. If that's not possible, the static library must be included. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859953 https://bugzilla.novell.com/show_bug.cgi?id=859953#c Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com AssignedTo|bnc-team-screening@forge.pr |max@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859953 https://bugzilla.novell.com/show_bug.cgi?id=859953#c1 Reinhard Max <max@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |erik@lotspeich.org --- Comment #1 from Reinhard Max <max@suse.com> 2014-02-10 14:34:13 CET --- Dynamic libraries always contain the dynamic symbol table, even when stripped, so linking against them should be possible. Please tell me what program you are trying to link if it is publically available. If not, please try to create a minimal example that reproduces the problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859953 https://bugzilla.novell.com/show_bug.cgi?id=859953#c2 --- Comment #2 from Erik Lotspeich <erik@lotspeich.org> 2014-02-12 06:51:31 UTC --- When building an application on CentOS, '-lecpg' was enough. On OpenSUSE, I need to add '-lpgtypes'. I realize I was wrong about the libraries being stripped. Attached is an example; you can reproduce the error if you remove '-lpgtypes'. Maybe this is normal, so I apologize if I caused unnecessary noise. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859953 https://bugzilla.novell.com/show_bug.cgi?id=859953#c3 --- Comment #3 from Erik Lotspeich <erik@lotspeich.org> 2014-02-12 06:52:01 UTC --- Created an attachment (id=578201) --> (http://bugzilla.novell.com/attachment.cgi?id=578201) ecpg example to reproduce the issue -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=859953 https://bugzilla.novell.com/show_bug.cgi?id=859953#c4 Reinhard Max <max@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|erik@lotspeich.org | Resolution| |INVALID --- Comment #4 from Reinhard Max <max@suse.com> 2014-02-12 10:43:18 CET --- I just checked with one of our toolchain (gcc, binutils) maintainers. Your code explicitly uses a function from libgtypes and relies on libecpg to bring that in (which is in turn linked against libpgtypes). This works on CentOS, because they allow transitive linking, but openSUSE has disabled this intentionally, so you need to specify all libraries that are directly used by your program when linking it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com