Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514658 - app-emulation/virtualbox-4.3.12 - error: Missing # define g_kLdrRdrFileOps RT_MANGLER(g_kLdrRdrFileOps)
Summary: app-emulation/virtualbox-4.3.12 - error: Missing # define g_kLdrRdrFileOps ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://www.virtualbox.org/ticket/13199
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-23 10:12 UTC by aleiphoenix
Modified: 2014-08-14 12:48 UTC (History)
4 users (show)

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


Attachments
build.log.gz (build.log.gz,160.27 KB, application/gzip)
2014-06-23 15:32 UTC, aleiphoenix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aleiphoenix 2014-06-23 10:12:56 UTC
I couldn't build app-emulation/virtualbox-4.3.12 with hardened gcc 4.7.3-r1 on a hardened 3.14.5 kernel amd64 box.

I could build it with x86_64-pc-linux-gnu-4.7.3-vanilla though...

kmk_builtin_mkdir -p /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xp
com/include /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/idl
/var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/obj/xpidl/xpidl -m header -I /var/tmp/po
rtage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/base/ -I /var/tmp/portage/app-emulation/virtualbox
-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/ds/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/s
rc/libs/xpcom18a4/xpcom/components/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/
io/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/threads/ -I /var/tmp/portage/app
-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/ -e /var/tmp/portage/app-emulation/v
irtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsIStringStream.h /var/tmp/portage/app-em
ulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/io/nsIStringStream.idl
/var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/obj/xpidl/xpidl -m typelib -I /var/tmp/p
ortage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/base/ -I /var/tmp/portage/app-emulation/virtualbo
x-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/ds/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/
src/libs/xpcom18a4/xpcom/components/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom
/io/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/threads/ -I /var/tmp/portage/ap
p-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/ -e /var/tmp/portage/app-emulation/
virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/obj/VBox-xpcom-xpt-files/nsIStringStream.xpt /var/tmp/portage/app-emula
tion/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/io/nsIStringStream.idl
error: Missing # define g_kLdrRdrFileOps   RT_MANGLER(g_kLdrRdrFileOps)
kmk_builtin_cp /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/io/nsIStringStream.idl /
var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/idl
  xpidl XPCOM - {C}/src/libs/xpcom18a4/xpcom/io/nsIStreamBufferAccess.idl
kmk_builtin_mkdir -p /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xp
com/include /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/idl
/var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/obj/xpidl/xpidl -m header -I /var/tmp/po
rtage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/base/ -I /var/tmp/portage/app-emulation/virtualbox
-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/ds/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/s
rc/libs/xpcom18a4/xpcom/components/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/
io/ -I /var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/threads/ -I /var/tmp/portage/app
-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/reflect/xptinfo/public/ -e /var/tmp/portage/app-emulation/v
irtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsIStreamBufferAccess.h /var/tmp/portage/
app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/src/libs/xpcom18a4/xpcom/io/nsIStreamBufferAccess.idl
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/obj/Runtime/mangling.run] Erro
r 1
The failing command:
@nm $^  | $(SED) -n \
                -e 's/^[0-9a-f][0-9a-f]* //' \
                -e '/^[TUDB] /!d' \
                -e 's/^. //' \
                \
                -e '/^g_cchrt/d'\
                -e '/^g_frt/d'\
                -e '/^g_offrt/d'\
                -e '/^g_pfnrt/d'\
                -e '/^g_rt/d'\
                -e '/^g_szrt/d'\
                -e '/^g_ProcessSelf/d'\
                -e '/^g_u64ProgramStart/d'\
                -e '/^g_enmProcessPriority/d'\
                -e '/^g_hDbgModStrCache/d'\
                \
                -e '/^RTDBusLoadLib/d' \
                \
                -e '/^RT/p' \
                -e '/^g_/p' \
        | $(SED) -nf "$@"
kmk: *** Deleting file `/var/tmp/portage/app-emulation/virtualbox-4.3.12/work/VirtualBox-4.3.12/out/linux.amd64/release/obj/Runtime/mang
ling.run'
kmk: *** Waiting for unfinished jobs....


My gcc config

# gcc-config -l
 [1] armv6j-hardfloat-linux-gnueabi-4.7.3 *
 [2] armv6j-hardfloat-linux-gnueabi-4.7.3-hardenednopie
 [3] armv6j-hardfloat-linux-gnueabi-4.7.3-hardenednopiessp
 [4] armv6j-hardfloat-linux-gnueabi-4.7.3-hardenednossp
 [5] armv6j-hardfloat-linux-gnueabi-4.7.3-vanilla

 [6] avr-4.8.2 *
 [7] avr-4.8.2-vanilla

 [8] x86_64-pc-linux-gnu-4.7.3 *
 [9] x86_64-pc-linux-gnu-4.7.3-hardenednopie
 [10] x86_64-pc-linux-gnu-4.7.3-hardenednopiessp
 [11] x86_64-pc-linux-gnu-4.7.3-hardenednossp
 [12] x86_64-pc-linux-gnu-4.7.3-vanilla
 [13] x86_64-pc-linux-gnu-4.8.2
 [14] x86_64-pc-linux-gnu-4.8.2-hardenednopie
 [15] x86_64-pc-linux-gnu-4.8.2-hardenednopiessp
 [16] x86_64-pc-linux-gnu-4.8.2-hardenednossp
 [17] x86_64-pc-linux-gnu-4.8.2-vanilla

Reproducible: Always
Comment 1 aleiphoenix 2014-06-23 10:14:01 UTC
# emerge --info =virtualbox-4.3.12
Portage 2.2.8-r1 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.14.5-momoka-r2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.14.5-momoka-r2-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8129312 total,   1465144 free
KiB Swap:   16777208 total,  16776612 free
Timestamp of tree: Sun, 22 Jun 2014 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo rust java cirno
Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf"
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="/var/www/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.leichen-sh.d.corp.anjuke.com http://ftp.jaist.ac.jp/pub/Linux/Gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/www/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/var/lib/layman/rust /var/lib/layman/java /var/lib/layman/cirno"
SYNC="rsync://10.100.0.1/gentoo-portage"
USE="X acl amd64 avx bash-completion berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gif hardened iconv ipv6 jpeg jpeg2k justify mmx modules multilib ncurses nls nptl openmp pam pax_kernel pcre png readline session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 systemd tcpd tiff unicode urandom xinerama xtpax zlib" ABI_X86="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" DRACUT_MODULES="btrfs dash lvm mdraid syslog systemd" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients stub_status ssi upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel radeon r600 i915 vesa" 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.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-emulation/virtualbox-4.3.12 was built with the following:
USE="additions alsa extensions opengl pam qt4 sdk -doc -headless -java -pulseaudio -python -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-23 12:45:25 UTC
Please attach the entire build log to this bug report.
Comment 3 aleiphoenix 2014-06-23 15:32:30 UTC
Created attachment 379498 [details]
build.log.gz

I've attached the build.log file.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2014-07-17 14:12:22 UTC
~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.7.3
 [2] x86_64-pc-linux-gnu-4.8.3 *
 [3] x86_64-pc-linux-gnu-4.8.3-hardenednopie
 [4] x86_64-pc-linux-gnu-4.8.3-hardenednopiessp
 [5] x86_64-pc-linux-gnu-4.8.3-hardenednossp
 [6] x86_64-pc-linux-gnu-4.8.3-vanilla

but also on hardened amd64 (without hardened kernel)
Comment 5 Graham Murray 2014-07-21 08:46:36 UTC
I am seeing the same problem with virtualbox-4.3.14. I tried with MAKEOPTS="-j1" to see if it was a parallel build issue, but had the same failure.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-06 08:29:40 UTC
@hardened team: can you please look into this?
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2014-08-06 13:02:50 UTC
It's most likely not hardened related, the PLD-Linux people had the same problem.
Fortunately they already found a solution: http://git.pld-linux.org/gitweb.cgi/packages/VirtualBox.git/commitdiff/11e7bb5983b2f97db972da9f188a946f4ee22f9e
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-08 15:47:07 UTC
Okay, it's great that there seems to be a patch at hand but I still cannot reproduce the problem on my non-hardened systems.
Anybody got an idea how I can reproduce the problem and thus can verify the aforementioned patch fixes the problem?
Comment 9 Tiziano Müller (RETIRED) gentoo-dev 2014-08-08 16:02:02 UTC
No idea how to reproduce it, sorry.
But the patch fixes the issue for me.
Comment 10 Alex D-Bug 2014-08-11 13:13:07 UTC
Patch works for me too. Virtualbox-4.3.14 compiled successfully =) Kernel 3.15.5-hardened, gcc-4.7.4, glibc-2.19-r1, amd64 box. Thanks!
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-14 12:48:46 UTC
+  14 Aug 2014; Lars Wendler <polynomial-c@gentoo.org> virtualbox-4.3.14.ebuild:
+  Fixed compile error through missing define (bug #514658).
+
Sorry for the long delay.