Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209274 - kde-base/superkaramba-4 fails with --as-needed
Summary: kde-base/superkaramba-4 fails with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 208762 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-02-07 17:41 UTC by Steffen Hau
Modified: 2008-10-17 10:26 UTC (History)
5 users (show)

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


Attachments
superkaramba-as-needed.patch (superkaramba-as-needed.patch,655 bytes, patch)
2008-02-07 17:51 UTC, Steffen Hau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2008-02-07 17:41:31 UTC
superkaramba-4 failes to compile with LDFLAGS --as-needed.

[snip]
Linking CXX shared library ../../lib/libsuperkaramba.so
/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 returned 1 exit status
[snip]

Reproducible: Always

Steps to Reproduce:
1.just emerge kde-base/superkaramba-4* with LDFLAGS="-Wl,--as-needed"
2.
3.




emerge --info

Portage 2.1.4.1 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.24 i686)
=================================================================
System uname: 2.6.24 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Thu, 07 Feb 2008 03:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/arcon"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility acl acpi alsa apache2 arts bash-completion berkdb bidi bitmap-fonts bluetooth bzip2 cairo cdb cddb cdparanoia cdr cli cpudetection cracklib crypt ctype cups curl dbus dedicated dga directfb dri dts dv dvd dvdr dvdread encode esd exif ffmpeg firefox flac foomaticdb fortran ftp gdbm gif glitz glut gnome gnutls gstreamer gtk gtk2 hal iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lame lcms ldap libcaca libsamplerate lirc lua mad midi mikmod mmap mmx mng mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls noseamonkey nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcmcia pcre pdf perl php png posix ppds python qt3 qt4 quicktime readline real reflection rtc ruby samba sasl sdl session sndfile snmp sockets spell spl sqlite sse sse2 ssl svg symlink tcl tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales vcd vim-syntax visualization vorbis win32codecs x264 x86 xcomposite xine xinerama xml xorg xosd xpm xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio_qv fuji kodak konica minolta mustek panasonic samsung sonydscf1 sonydscf55 toshiba" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Steffen Hau 2008-02-07 17:51:07 UTC
Created attachment 142918 [details, diff]
superkaramba-as-needed.patch
Comment 2 Steffen Hau 2008-02-07 17:53:15 UTC
Comment on attachment 142918 [details, diff]
superkaramba-as-needed.patch

This patch fixes the build for me. It's adopted from http://lists.kde.org/?l=kde-devel&m=118004378128582&w=2
I've appended the "uril" stuff, to fix the openpty and forkpty things.
Comment 3 Damien Thébault 2008-02-10 15:59:26 UTC
The patch solves the problem for me too, I'm able to install superkaramba now.
Comment 4 Roy Marples 2008-02-13 09:53:55 UTC
Looks good.
Comment 5 Ingmar Vanhassel (RETIRED) gentoo-dev 2008-02-18 14:22:51 UTC
*** Bug 208762 has been marked as a duplicate of this bug. ***
Comment 6 Ingmar Vanhassel (RETIRED) gentoo-dev 2008-02-18 17:12:24 UTC
Fixed in kde-base/superkaramba-4.0.1. Monolithic are going away soon, so didn't update kde-base/kdeutils.
Comment 7 Walter Meinl 2008-03-15 08:17:02 UTC
(In reply to comment #6)
> Fixed in kde-base/superkaramba-4.0.1. Monolithic are going away soon, so didn't
> update kde-base/kdeutils.
> 

Would you mind to apply the patch also to superkaramba-4.0.2? It fails with exactly the same error message. (couldn't reopen)
Comment 8 Hanno Böck gentoo-dev 2008-03-16 19:07:22 UTC
Walter is right, 4.0.2 needs the same patch. I've also submitted the patch upstream (so hopefuly we need no more patching in the next kde version):
https://bugs.kde.org/show_bug.cgi?id=159421
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-17 10:26:56 UTC
Hi, sorry for awaking this beast. It looks that this patch is no longer needed in 4.1 so closing as fixed (4.0.X will be removed soon :]).