Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416059 - dev-libs/ucommon-5.2.2 installs libcommoncpp.so with undefined symbol
Summary: dev-libs/ucommon-5.2.2 installs libcommoncpp.so with undefined symbol
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreis Vinogradovs ( slepnoga )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 10:40 UTC by Andrew Savchenko
Modified: 2012-06-14 16:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,8.20 KB, text/plain)
2012-05-15 10:40 UTC, Andrew Savchenko
Details
ucommon-5.2.2.ebuild.patch (ucommon-5.2.2.ebuild.patch,263 bytes, patch)
2012-05-15 10:43 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2012-05-15 10:40:13 UTC
Hello,

ucommon-5.2.2 installs /usr/lib/libcommoncpp.so with undefined symbol _posix_clocking:

$ objdump -T /usr/lib/libcommoncpp.so | grep _posix_clocking
00000000      D  *UND*  00000000              _posix_clocking

This triggers build failure for any package linking with libcommoncpp.so, e.g. ccrtp-2.0.3 (not in tree yet, I'm working on ebuild now):

/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../lib/libcommoncpp.so: undefined reference to `_posix_clocking'

symlookup show there are no dynamic or static libraries providing that symbol on my system (so this is not a missing -l option) and in ucommon code _posix_clocking is only defined as extern.

As a workaround I removed --enable-posix-timers from the ebuild.
This option is disabled by default, perhaps for a reason.
Comment 1 Andrew Savchenko gentoo-dev 2012-05-15 10:40:59 UTC
Created attachment 311849 [details]
emerge --info
Comment 2 Andrew Savchenko gentoo-dev 2012-05-15 10:43:11 UTC
Created attachment 311851 [details, diff]
ucommon-5.2.2.ebuild.patch

A temporary workaround.
Comment 3 Rafał Mużyło 2012-05-15 14:03:25 UTC
The build system of this thing is a mess, at least on autotools side - somebody should give it a major overhaul.
Anyway, it would seems that this is an -as-needed failure, caused by passing libs via _LDFLAGS, instead of _LIBS/_LDADD in Makefile.am...
In this particular instance, it seems to be a matter of libcommoncpp.so needing to link with libucommon.so.
However, given the way the build system got written, a seemingly trivial fix has a good chance of breaking other stuff.
Comment 4 Maxim Koltsov (RETIRED) gentoo-dev 2012-06-14 16:45:06 UTC
Fixed in -r1.