kdesvn failes to compile with LDFLAGS --as-needed. [snip] CMakeFiles/svnqt.dir/datetime.o: In function `svn::DateTime::SetRFC822Date(char const*)': datetime.cpp:(.text+0x3c1): undefined reference to `apr_date_parse_rfc' collect2: ld returned 1 exit status make[2]: *** [lib/libsvnqt.so.3.1.2] Error 1 make[1]: *** [src/svnqt/CMakeFiles/svnqt.dir/all] Error 2 [snip] Reproducible: Always Steps to Reproduce: 1. just emerge kdesvn-0.12.1 with LDFLAGS="-Wl,--as-needed" emerge --info Portage 2.1.3_rc9 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6-r0, 2.6.22.1 i686) ================================================================= System uname: 2.6.22.1 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 31 Jul 2007 15:30:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 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 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" 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/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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" 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 --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib accessibility acl acpi alsa apache2 arts bash-completion berkdb bidi bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cpudetection cracklib crypt ctype cups curl dbus dedicated dga directfb dri dts dvd dvdr dvdread encode esd exif ffmpeg firefox flac foomaticdb fortran ftp gcj gdbm gif glitz glut gnutls gtk gtk2 hal iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lcms ldap libcaca libg++ libsamplerate lirc mad midi mikmod mmap mmx mng mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls nnptl noseamonkey nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pcmcia pcre pdf perl php png posix ppds python qt3 qt4 quicktime readline real reflection rtc samba sasl sdl session sndfile snmp sockets spell spl splugin sqlite sse sse2 ssl svg symlink tcl tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales vcd 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" CAMERAS="canon casio 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: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
No trouble here on amd64. Judging by the output posted, this comes from having the apache2 USE flag enabled: "undefined reference to `apr_date_parse_rfc'" emerge --info anyway: Portage 2.1.3.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6-r0, 2.6.21-gentoo-r4 x86_64) ================================================================= System uname: 2.6.21-gentoo-r4 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 11 Aug 2007 22:30:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.18 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -msse3 -ftracer -fweb -frename-registers" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/service" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -msse3 -ftracer -fweb -frename-registers" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="ccache distlocks multilib-strict parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.tera-byte.com/ http://www.gtlib.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=30 --progress --partial --verbose" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apm arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr cracklib crypt cscope ctype cups curl dbus directfb doc dri dv dvd dvdr dvdread encode evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm ggi gif gnutls gphoto2 gpm gtk hal iconv idn imagemagick imlib ipv6 jack java javascript joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos lcms lesstif libsamplerate lm_sensors lzo mad matroska midi mikmod mmap mmx mng mp3 mp4 mpeg mplayer mudflap musepack ncurses nfs nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pcre pdf perl plotutils png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl session shorten sndfile source sox spell sqlite sse sse2 ssl svg symlink szip tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 verbose vim-syntax vorbis wavpack wmf xcb xine xml xorg xosd 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" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard linuxinput mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="i810" Unset: CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
I can confirm that the compilation fails: Linking CXX shared library ../../lib/libsvnqt.so CMakeFiles/svnqt.dir/datetime.o: In function `svn::DateTime::SetRFC822Date(char const*)': datetime.cpp:(.text+0x3b1): undefined reference to `apr_date_parse_rfc' # emerge --info Portage 2.1.3.5 (default-linux/x86/2006.1, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r1 i686) ================================================================= System uname: 2.6.22-gentoo-r1 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Gentoo Base System release 1.12.10 Timestamp of tree: Mon, 13 Aug 2007 16:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -mfpmath=sse -pipe" 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/share/X11/xkb /usr/share/config /var/www/localhost/htdocs" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=prescott -mfpmath=sse -pipe" DISTDIR="/mnt/D/distfiles" FEATURES="distlocks sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/lila-theme /usr/portage/local/layman/zugaina /usr/portage/local/layman/sunrise /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/xwing /usr/portage/local/layman/vmware /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acpi alsa arts bash-completion berkdb bitmap-fonts branding bzip2 cairo cdinstall cdparanoia cdr cli cracklib crypt cups d dbus doc dri dts dv dvd dvdr dvdread encode exif expat fbcon ffmpeg fuse gdbm gif glut gmp gphoto2 gpm hal iconv idn imagemagick ipv6 isdnlog java jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lm_sensors mad matroska midi mmx mng mp3 mudflap musepack mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl pertty png ppds pppd python qt3 qt4 rdesktop readline reflection samba sasl scanner sdl session slang source spl sqlite sqlite3 sse sse2 ssl svga tcpd theora threads tiff truetype truetype-fonts type1-fonts usb vcd vim-syntax vorbis win32codecs x86 xine xml xorg xprint xv xvid xvmc zlib" ALSA_CARDS="emu10k1 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="v4l nvidia nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Anything new here? The ebuild still fails.
Works for me :) (with ~ system)
Also fails with kdesvn-0.13.0, same error as in my first post.
Also fails with kdesvn-0.14.1. Compiled fine previously, but started failing after running emerge --depclean, which removed apr-0.9.12 and apr-utils-0.9.12-r1. Error message is the same as in previous cases. # emerge --info Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-tuxonice-r5 x86_64) ================================================================= System uname: 2.6.23-tuxonice-r5 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz Timestamp of tree: Fri, 28 Dec 2007 10:46:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Os -pipe -march=nocona -fno-ident" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /lib/initng/scripts /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -pipe -march=nocona -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://src.gentoo.pl http://gentoo.po.opole.pl" LANG="pl_PL" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,--hash-style=both -Wl,-O1" LINGUAS="pl" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/initng /usr/portage/local/layman/hanno-xgl /usr/portage/local/layman/arcon-portage /usr/portage/local/layman/xeffects /usr/portage/local/layman/custom-kernels /usr/local/portage /usr/portage/local/minefield" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 amr apache2 arts bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdr cli crypt css cups dbus divx dri dts dvb dvd dvdr dvdread eds emacs emboss emerald encode esd evo exif fam fbcon fbsplash ffmpeg firefox flac fortran gif gimp glitz gmedia gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kdehiddenvisibility kipi lzo mad matroska midi mikmod mmap mmx mmxext mp3 mpeg mudflap musepack mysql ncurses newspr nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline realmedia reflection rtc samba sdl session skey slang smp spell spl splash sse sse2 ssl ssse3 subversion svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vorbis webdav wifi wma wmf wmp x264 xcomposite xforms xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel usb-audio" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel debug_commands fmon fstat initctl interactive last limit logfile lockfile netdev netprobe idleprobe ngc4 nge pause provide reload renice simple_launcher stcmd stdout suid syncron syslog sysreq unneeded iparser envparser rlparser splash" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 139669 [details, diff] kdesvn-0.14.1-as-needed.patch This patch fixes the build for me. Patch reported upstream (http://kdesvn.alwins-world.de/ticket/246)
I can confirm this. With the attachted patch the build works fine for me. So is it possible to integrate this patch into portage? Greets, Steffen
I only now realised this is not kde herd's package. Sorry, George!
Hm, I could not reproduce the bug here, even with both apr and apr-util recompiled with --as-needed. Nonetheless I applied the patch to the current version (0.14.1), enjoy! Actually, this is the 2nd --as-needed issue with this package. Looking at the timescale of this bug it is possible that the original issue concerned that first failure. Anyway, should be fine (again) now. Krzysztof: thanks for the suggested fix. Just one note. With that prewious issue I also opened an issue on kdesvn website, but it was lagging in there for a few month and only was processed when I sent an email to the kdesvn mailing list. Just keep in mind, if the issue is not resolved in a while ;). Closing the bug now. George
Um, actually closing the bug this time.