Bug 159421 - compile/linking error with --as-needed
Summary: compile/linking error with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: superkaramba
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Ryan Nickell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-16 20:05 UTC by hanno
Modified: 2009-04-07 21:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
superkaramba-4.0.1-as-needed.patch (781 bytes, patch)
2008-03-16 20:06 UTC, hanno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanno 2008-03-16 20:05:55 UTC
Version:            (using KDE 4.0.2)
Installed from:    Gentoo Packages
Compiler:          gcc 4.2.3 
OS:                Linux

superkaramba fails in the linking stage if LDFLAGS="-Wl,--as-neede" is passed.

/usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In function `_PyImport_GetDynLoadFunc':
(.text+0x126): undefined reference to `dlsym'
/usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In function `_PyImport_GetDynLoadFunc':
(.text+0x1a0): undefined reference to `dlopen'
/usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In function `_PyImport_GetDynLoadFunc':
(.text+0x1d0): undefined reference to `dlsym'
/usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In function `_PyImport_GetDynLoadFunc':
(.text+0x24d): undefined reference to `dlerror'
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function `posix_forkpty':
(.text+0x3843): undefined reference to `forkpty'
/usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function `posix_openpty':
(.text+0x38c1): undefined reference to `openpty'
collect2: ld gab 1 als Ende-Status zurück

There's a patch by Steffen Hau  in gentoo portage which I'll attach.
Comment 1 hanno 2008-03-16 20:06:53 UTC
Created attachment 23924 [details]
superkaramba-4.0.1-as-needed.patch

Patch by Steffen Hau to fix linking with --as-needed
Comment 2 Andrew Coles 2009-04-07 21:40:02 UTC
SVN commit 950778 by coles:

Applied patch by Steffen Hau to fix linking with --as-needed.

BUG: 159421



 M  +11 -0     CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=950778