Created attachment 357386 [details] emerge --info '=app-emulation/virtualbox-4.2.16' When USE flag "vboxwebsrv" is enabled, VirtualBox fails to build. I believe this is an upstream bug, and that the reason for the failure is the change in DSO linking, because when I added the link to zlib, it compiled fine. Relevant error message: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): undefined reference to symbol 'deflate' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'deflate' is defined in DSO /lib64/libz.so.1 so try adding it to the linker command line /lib64/libz.so.1: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.2.16/work/VirtualBox-4.2.16/out/linux.amd64/release/obj/webtest/webtest] Error 1
Created attachment 357388 [details] emerge -pqv '=app-emulation/virtualbox-4.2.16'
Created attachment 357390 [details] build.log
Created attachment 357392 [details] environment
Created attachment 357394 [details, diff] Patch (more like kludge) that allows configure to produce working AutoConfig.kmk
Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.9-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.10.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 7944908 total, 5792584 free KiB Swap: 16777212 total, 16777212 free Timestamp of tree: Fri, 30 Aug 2013 06:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r2, 3.2.5-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.12.6 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.10 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE skype-4.0.0.7-copyright AdobeFlash-11.x PUEL Nero-EULA-US" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=corei7-avx -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="acl amd64 apache apache2 berkdb bzip2 cli cracklib crypt curl cxx dbus dconf device-mapper downloads-monitor dri extensions fat fortran gd gdbm headless http iconv icu introspection ipv6 java kerberos kernel keymap kvm logrotate lzma minizip mmx mmxext modules mudflap multilib mysql mysqli ncurses nls nptl ntfs openmp openssl opus pam pcre perl php pstricks python python3 qemu rar readline samba server session smp soap sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4a sse5 ssl ssse3 subversion tcpd threads threadsafe tls unicode upcall vboxwebsrv virt-network virtualbox vnc vpx winbind xslt xz zip zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.2" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= USE="additions extensions headless java opengl pam python sdk vboxwebsrv vnc -alsa -doc -pulseaudio -qt4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" app-emulation/virtualbox-4.2.16 was built with the following:
*** Bug 488280 has been marked as a duplicate of this bug. ***
This issue appears on all current versions of virtualbox in portage {4.1.26, 4.2.18, 4.3.0} and I can reproduce it always. I can confirm that the patch purposed here successfully builds all these versions with USE=vboxwebsrv so I guess it could be safe to apply? Unless there's some major issue with it(?)
+ 18 Oct 2013; Lars Wendler <polynomial-c@gentoo.org> virtualbox-4.2.18.ebuild, + virtualbox-4.3.0.ebuild: + Fixed compilation with vboxwebsrv USE flag being enabled. Thanks to Nenad + Peric for providing a fix in bug #482986. Restricted gsoap dependency version + (bug #456354). Adjusted dependencies a bit. + I didn't fix this in virtualbox-4.1.26 as I want to have 4.2.18 stable soon (bug #480044) and 4.1* will be removed.