Bug 159421

Summary: compile/linking error with --as-needed
Product: superkaramba Reporter: hanno
Component: generalAssignee: Ryan Nickell <p0z3r>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: superkaramba-4.0.1-as-needed.patch

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