Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340543 - wxGTK 2.8 undefined symbol PIC relocation build failure
Summary: wxGTK 2.8 undefined symbol PIC relocation build failure
Status: RESOLVED DUPLICATE of bug 305163
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-11 15:17 UTC by Radoslaw Szkodzinski
Modified: 2010-10-11 18:58 UTC (History)
1 user (show)

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


Attachments
build log, long (build.log,851.52 KB, text/plain)
2010-10-11 16:04 UTC, Radoslaw Szkodzinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2010-10-11 15:17:28 UTC
x11-libs/wxGTK-2.8.11.0 fails to build on hardened with the following error.
Likely someone forgot to include one of the object files.

<snip>
x86_64-pc-linux-gnu-g++ -shared -fPIC -o /var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/lib/libwx_gtk2u_adv-2.8.so.0.7.0  advdll_animatecmn.o advdll_datavcmn.o advdll_aboutdlgg.o advdll_animateg.o advdll_bmpcboxg.o advdll_calctrl.o advdll_datavgen.o advdll_datectlg.o advdll_grid.o advdll_gridctrl.o advdll_gridsel.o advdll_helpext.o advdll_hyperlink.o advdll_laywin.o advdll_odcombo.o advdll_propdlg.o advdll_sashwin.o advdll_splash.o advdll_tipdlg.o advdll_wizard.o advdll_taskbarcmn.o advdll_unix_joystick.o advdll_unix_sound.o advdll_taskbarx11.o advdll_gtk_aboutdlg.o advdll_animate.o advdll_dataview.o advdll_gtk_taskbar.o advdll_gtk_eggtrayicon.o  advdll_sound_sdl.o -L/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/lib -L/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/lib    -L/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/lib   -Wl,-soname,libwx_gtk2u_adv-2.8.so.0  -pthread -Wl,-O1 -Wl,--as-needed -Wl,-O1,--as-needed,--hash-style=gnu  -L/usr/X11R6/lib64       -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lXinerama -lXxf86vm -lSM -lpng -lz -ljpeg -ltiff   -lwxregexu-2.8  -pthread -Wl,-O1 -Wl,--as-needed -Wl,-O1,--as-needed,--hash-style=gnu  -L/usr/X11R6/lib64  -Wl,--version-script,/var/tmp/portage/x11-libs/wxGTK-2.8.11.0/work/wxPython-src-2.8.11.0/wxgtk_build/version-script -lz -ldl -lm  -lwx_gtk2u_core-2.8 -lwx_baseu-2.8 -lSDL -lpthread -lz -ldl -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: advdll_calctrl.o: relocation R_X86_64_PC32 against undefined symbol `wxColour::IsOk() const' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

emerge --info wxGTK:
Portage 2.2_rc92_p2 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.36-rc7-ck1+ x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-rc7-ck1+-x86_64-AMD_Turion-tm-_X2_Ultra_Dual-Core_Mobile_ZM-82-with-gentoo-2.0.1
Timestamp of tree: Sat, 09 Oct 2010 10:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo sabayon mozilla gechi xen foo-overlay x11 multimedia sunrise zugaina proaudio gnome ladi user_defined
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=x86-64 -mtune=generic -fprefetch-loop-arrays -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config/kdm /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=x86-64 -mtune=generic -fprefetch-loop-arrays -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --backtrack 10 --complete-graph"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://212.219.56.139/sites/www.ibiblio.org/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--as-needed,--hash-style=gnu"
LINGUAS="pl en en_GB en_US de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/sabayon /var/lib/layman/mozilla /var/lib/layman/gechi /var/lib/layman/xen /var/lib/layman/foo-overlay /var/lib/layman/x11 /var/lib/layman/multimedia /var/lib/layman/sunrise /var/lib/layman/zugaina /var/lib/layman/pro-audio /var/lib/layman/gnome /var/lib/layman/ladi /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X X509 a52 aac aacs accessibility acl acpi activefilter additions adns adplug aiglx aio alsa amd64 amr ao apm archive ares aspell ass asyncns audacious audiofile audit avahi bash-completion bazaar beagle berkdb bidi binary-drivers bittorrent bluetooth bluray boundschecking branding bs2b bsf bzip2 bzr cairo caps cdaudio cdda cddb cdparanoia cdr chm cjk clamav cli common-lisp compiz connection-sharing consolekit contrib coverage cpudetection cracklib cron crypt cscope ctypes-python cue cups curl custom-cflags custom-cpuopts custom-optimization cvs cxx dbus device-mapper dga dhclient dhcp disk-partition djbfft djvu dmraid dmx dns dri dts dv dvd dvdnav dvi eap-tls emerald enca entropy excel exceptions exif expat extensions extra-tools extras faac fam fame fat fbcon fbcondecor fdt ffmpeg fftw firefox firewire fits flac flash fluidsynth fontconfig fontforge foomatic-db fortran fpx freetds freetype ftp fuse gadu gcj gconf gd gdbm gdm geoip gif gimp gimpprint git glade gmp gnome gnome-keyring gnome-vfs gnomecanvas gnutls gpg gphoto2 gpm graphviz gs gsm gstreamer gtk guile h323 hal hardened hddtemp hdri hfs hvm icecast iconv icu id3tag idn ieee1394 ifp imagemagick imap imlib inotify ioemu iphone ipod iproute2 ipv6 irc irda isag ithreads jabber jack java java5 java6 javamail javascript jbig jce jfs jingle jms jmx jpeg jpeg2k justify kate kdrive kerberos krb4 kvm ladspa lame lapack laptop lcd lcdfilter lcms ldap libass libedit libffi libkms libnl libnotify libproxy libsamplerate libssh2 libtiger libv4l libv4l2 lirc live llvm llvm-gcc lm_sensors loop-aes lua lzma lzo mad mail matroska md5sum mdadm mercurial midi mikmod mjpeg mmx mmxext mng modemmanager modplug modules mono mp2 mp3 mp3rtp mp4 mpeg mpi mpi-threads mplayer mtp mudflap multilib musepack ncurses network networking networkmanager nls nptl nptlonly nsplugin nss ntfs ntlm ntp oav obex objc objc++ objc-gc odbc ogg openal openexr opengl openmp openssl openvz otp pae pam pango passwd passwdqc pcap pcmcia pcre pcsc-lite pda pdf perl physfs pic pkinit plotutils plugins pm-utils png pnm policykit pop portaudio postproc ppds pppd pth pulseaudio python quota radius rar rdesktop rdesktop-vrdp readline realmedia realtime reflection regex reiserfs resolvconf rfc3779 rle romio rss rsync rtc rtmp ruby samba sasl scanner schroedinger scsi sdl secure-delete servletapi session shout sid silc skey skype slang slp smp smtp sndfile snmp soap socks5 sourceview speex spell sqlite sqlite3 srp sse sse2 ssl startup-notification static-libs stream subtitles subversion svg swig sysfs syslog systemtap t1lib taglib tcpd tdb tga theora threads thumbnail thunar thunar-vfs tiff timezone timidity tools tpm truetype udev udis86 unicode unsupported upnp urandom usb utils v4l v4l2 vaapi vala vcdx vde vhosts video vim-pager vim-syntax visualisation vorbis vpx vserver wav wavpack webdav wifi winbind wmf wps wxwidgets x264 xattr xcb xcomposite xen xfce xfs xft xinerama xinetd xml xorg xpm xprint xrandr xulrunner xv xvid xvmc zeroconf zip zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 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" APACHE2_MPMS="prefork" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="evdev keyboard mouse void synaptics virtualbox vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en en_GB en_US de" LIRC_DEVICES="audio audio_alsa serial alsa_usb userspace xboxusb udp" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm" QEMU_USER_TARGETS="i386 x86_64 arm" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon fglrx catalyst r600 vmware virtualbox" XFCE_PLUGINS="brightness menu" 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" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

x11-libs/wxGTK-2.8.11.0 was built with the following:
USE="X gnome (multilib) opengl sdl tiff -debug -doc -gstreamer -odbc (-pch)"
CFLAGS="-O2 -march=x86-64 -pipe -fno-strict-aliasing"
CXXFLAGS="-O2 -march=x86-64 -pipe -fno-strict-aliasing"
LDFLAGS="-Wl,-O1,--as-needed"
Comment 1 Magnus Granberg gentoo-dev 2010-10-11 15:47:49 UTC
Some thing is wrong in the build system on wxGTK.
Comment 2 Radoslaw Szkodzinski 2010-10-11 16:04:17 UTC
Created attachment 250235 [details]
build log, long
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-10-11 18:58:21 UTC
This has nothing to do with hardened.  Stop using -fvisibility-inlines-hidden.

*** This bug has been marked as a duplicate of bug 305163 ***