Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481764 - =dev-cpp/libxsd-frontend-1.18.0-r1 - ld: .../work/libxsd-frontend-1.18.0/tests/dump/driver.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
Summary: =dev-cpp/libxsd-frontend-1.18.0-r1 - ld: .../work/libxsd-frontend-1.18.0/test...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking 496784
  Show dependency tree
 
Reported: 2013-08-20 15:44 UTC by Sander Sweers
Modified: 2014-01-20 13:05 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,121.58 KB, text/plain)
2013-08-20 15:44 UTC, Sander Sweers
Details
requested libboost details (libboost_libdetails.txt,18.97 KB, text/plain)
2013-09-05 10:25 UTC, Sander Sweers
Details
readelf dump from my system (readelf.txt,28.74 KB, text/plain)
2013-09-07 19:17 UTC, Robert Marmorstein
Details
Configure libxsd-frontend to force linking of the boost system library (libxsd-frontend-boostfix.patch,411 bytes, patch)
2013-09-07 19:57 UTC, Robert Marmorstein
Details | Diff
Patch to xsd ebuild (xsd-libboostfix.patch,373 bytes, patch)
2013-09-07 19:58 UTC, Robert Marmorstein
Details | Diff
dev-cpp/xsd-3.3.0-r1 build.log (build.log,76.77 KB, text/x-log)
2013-12-03 18:52 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sander Sweers 2013-08-20 15:44:47 UTC
Created attachment 356504 [details]
build.log

/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-cpp/libxsd-frontend-1.18.0-r1/work/libxsd-frontend-1.18.0/tests/dump/driver.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: '_ZN5boost6system15system_categoryEv' is defined in DSO /usr/lib64/libboost_system.so.1.53.0 so try adding it to the linker command line
/usr/lib64/libboost_system.so.1.53.0: could not read symbols: Invalid operation
collect2: fout: ld gaf exit-status 1 terug
make: *** [/var/tmp/portage/dev-cpp/libxsd-frontend-1.18.0-r1/work/libxsd-frontend-1.18.0/tests/dump/driver] Fout 1


Portage 2.2.0 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.5-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.5-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    14810364 total,   2005588 free
KiB Swap:    8388604 total,   7601704 free
Timestamp of tree: Tue, 20 Aug 2013 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.11.1
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.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
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 sunrise x11 bitcoin emery betagarden mate-overlay infirit
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
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 parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/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/sunrise /var/lib/layman/x11 /var/lib/layman/bitcoin /var/lib/layman/emery /var/lib/layman/betagarden /home/sander/repos/mate-overlay /home/sander/repos/infirit"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth bluray branding bzip2 cairo caja canberra cdda cddb cdr cjk cli cracklib crypt cue cups curl cxx dbus dconf device-mapper dri dts dv dvd dvdr egl emboss encode exif faac faad fam ffmpeg firefox flac fontconfig fontforge fortran gdbm gif gles gles2 gmp gnome-keyring gpm gstreamer gtk gtk3 hires-icons iconv icu idn introspection ipv6 jpeg kerberos lame lcms ldap libnotify libsecret lm_sensors lzma lzo mad mate mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses networkmanager nls nptl nsplugin offensive ogg openal opengl openldap openmp opus osmesa pam pango pch pcre pdf png policykit ppds ppp pulseaudio python qt3support qt4 readline rle samba sasl scanner schroedinger sdl session sndfile speex spell sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg systemd tcpd telepathy theora threads tiff truetype udev udisks unicode upower usb usbredir v4l vaapi vdpau vorbis vpx wavpack wayland webp wmf wxwidgets x264 xcb xml xmp xpm xscreensaver xv xvid xvmc zeroconf 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 auth_digest dav_fs authn_file dav authz_groupfile" 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" ELIBC="glibc" ENLIGHTENMENT_MODULES="backlight battery clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers connman cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager quickaccess start syscon systray tasks temperature tiling winlist wizard xkbswitch access shot mate-keyring" 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" GRUB_PLATFORMS="efi-64 efi-32 pc" 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 nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel radeon fbdev 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.1 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2013-08-23 19:25:07 UTC
same problem here.
Comment 2 Robert Marmorstein 2013-09-05 03:24:36 UTC
This bug breaks compilation of libkolab and libkolabxml, too, since they depend on libxsd-frontend.
Comment 3 Robert Marmorstein 2013-09-05 03:24:57 UTC
Filtering out --as-needed doesn't seem to help.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2013-09-05 05:04:09 UTC
Can you please attach the output of the following commands:

* `emerge -pv dev-libs/boost`
* `file /usr/lib64/libboost_system.so.1.53.0`
* `readelf -a /usr/lib64/libboost_system.so.1.53.0`

Thanks!
Comment 5 Sander Sweers 2013-09-05 10:25:01 UTC
Created attachment 357906 [details]
requested libboost details

The requested details. Le me know if you need more info. Thx
Comment 6 Robert Marmorstein 2013-09-07 19:17:21 UTC
Created attachment 358202 [details]
readelf dump from my system

This one may be slightly more useful than Sander's because I enabled wide output.
Comment 7 Robert Marmorstein 2013-09-07 19:28:01 UTC
emerge -pv dev-libs/boost

gives this:

Calculating dependencies... done!
[ebuild   R    ] dev-libs/boost-1.53.0:0/1.53  USE="icu threads -debug -doc -mpi -nls -python -static-libs -tools" PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2 (-python2_5%) (-python3_1%)" 0 kB


file /usr/lib64/libboost_system.so.1.53.0 

gives:

/usr/lib64/libboost_system.so.1.53.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
Comment 8 Robert Marmorstein 2013-09-07 19:57:54 UTC
Created attachment 358206 [details, diff]
Configure libxsd-frontend to force linking of the boost system library

I was able to get libxsd-frontend to build and install correctly by making this slight change to the ebuild.  This change is actually suggested in the configure script for libxsd-frontend.  The interactive prompt says "this may be needed with newer linkers".  

You need to also make this change in the ebuild for dev-cpp/xsd (for which I will also attach a patch) to get it to compile.  Interestingly, this option was explicitly disabled in the xsd ebuild.  There doesn't seem to be a good reason for that, but maybe I'm missing something.  

I have successfully compiled, installed, and tested libxsd-frontend and xsd with the patches and it seems to fix the problem with no unpleasant side effects.
Comment 9 Robert Marmorstein 2013-09-07 19:58:17 UTC
Created attachment 358208 [details, diff]
Patch to xsd ebuild
Comment 10 Dennis Schridde 2013-12-03 18:52:35 UTC
Created attachment 364552 [details]
dev-cpp/xsd-3.3.0-r1 build.log

I have the same issue for dev-cpp/xsd-3.3.0-r1 shall I open a new bug?
Comment 11 Dennis Schridde 2014-01-18 11:02:25 UTC
Any news on this?
Comment 12 Dennis Schridde 2014-01-18 11:37:37 UTC
attachment #358206 [details, diff] and attachment #358208 [details, diff] from comment #8 and comment #9 work for me.
Comment 13 Sergey Popov gentoo-dev 2014-01-20 12:03:14 UTC
+  20 Jan 2014; Sergey Popov <pinkbyte@gentoo.org>
+  +libxsd-frontend-1.18.0-r2.ebuild:
+  Revision bump: EAPI 5, fix underlinking wrt bug #481764. Thanks to Sander
+  Sweers <Sander.Sweers AT gmail.com> for discovering this issue and Robert
+  Marmorstein <rmmarm AT sdf.lonestar.org> for suggested patch

Still need to fix dev-cpp/xsd, cause reason of failure is just the same.
Comment 14 Sergey Popov gentoo-dev 2014-01-20 13:05:50 UTC
+  20 Jan 2014; Sergey Popov <pinkbyte@gentoo.org> +xsd-3.3.0-r2.ebuild:
+  Revision bump: EAPI 5, add test USE-flag in IUSE explicitly to prevent
+  failure in src_compile, fix underlinking wrt bug #481764