gupnp-tools 0.8 does not compile with gcc 4.5 Reproducible: Always Steps to Reproduce: 1. emerge "=gcc-4.5*" 2. emerge "=gupnp-tools-0.8" Actual Results: Fails to compile with the following error: libtool: link: x86_64-pc-linux-gnu-gcc -pthread -I/usr/include/gupnp-1.0 -I/usr/include/gssdp-1.0 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gupnp-av-1.0 -I/usr/include/gupnp-1.0 -I/usr/include/gssdp-1.0 -I/usr/include/libxml2 -I/usr/include/libsoup-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../.. -DDATA_DIR=\"/usr/share/gupnp-tools\" -I../../src/common -O2 -pipe -march=core2 -ggdb -Wall -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -o gupnp-av-cp main.o gui.o playlist-treeview.o renderer-combo.o renderer-controls.o -pthread -pthread -pthread -pthread -Wl,--export-dynamic -lgupnp-av-1.0 -lgupnp-1.0 -lgssdp-1.0 -lxml2 -lsoup-2.4 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 ../common/libicons.a -pthread /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libgupnp-1.0.so: undefined reference to symbol 'soup_session_cancel_message' /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'soup_session_cancel_message' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libsoup-2.4.so so try adding it to the linker command line /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libsoup-2.4.so: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[3]: *** [gupnp-av-cp] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-misc/gupnp-tools-0.8/work/gupnp-tools-0.8/src/av-cp' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-misc/gupnp-tools-0.8/work/gupnp-tools-0.8/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-misc/gupnp-tools-0.8/work/gupnp-tools-0.8' make: *** [all] Error 2 emake failed Expected Results: Builds fine I found the same bug in Ubuntu launchpad: https://bugs.launchpad.net/ubuntu/+source/gupnp-tools/+bug/749179 Upgrading to 0.8.1 works (however the ebuild needs to be updated for the new source URL) % emerge --info Portage 2.1.10.44 (default/linux/amd64/10.0/developer, gcc-4.5.3, glibc-2.14.1-r1, 3.0.6 x86_64) ================================================================= System uname: Linux-3.0.6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7350_@_2.00GHz-with-gentoo-2.1 Timestamp of tree: Sat, 21 Jan 2012 17:15:01 +0000 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.2-r1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r1 Repositories: gentoo mozilla stuff mine ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1 Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=core2 -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/" INSTALL_MASK="*.la" LANG="en_US.UTF-8" LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j 3 -l 3" 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/mozilla /var/lib/layman/stuff /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apng avahi bazaar berkdb bluetooth bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dhcpcd dirac dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac fortran gdbm gdu gif gimp git gnome gnome-keyring gpm gstreamer gtk iconv inotify intel ipv6 jpeg kqemu lcms libnotify mad mercurial mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses network networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio python qt3support readline samba sdl session smp snmp spell sse sse2 ssl startup-notification subversion svg sysfs system-sqlite tcpd theora threads tiff truetype udev unicode upnp usb vdpau vorbis x264 xcb xinerama xml xorg xrandr xulrunner xv xvid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="x86_64 arm" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 299491 [details, diff] Update URI in gupnp-tools ebuild The URI for tarballs specified in the ebuild is not correct anymore, this patch updates it.
1) Please attach the entire build log to this bug report. 2) Please post the output of `emerge -vpq net-libs/gupnp' in a comment.
3) Shouldn't it also perhaps require a newer version of net-libs/gupnp?
4) Also, there is an 0.8.3 version out there[1], and Debian even has an 0.8.4[2]. [1] http://gupnp.org/downloads/gupnp-tools-0.8.3 [2] http://packages.qa.debian.org/g/gupnp-tools.html
Created attachment 299755 [details] Complete build log
% emerge -vpq net-libs/gupnp [ebuild R ] net-libs/gupnp-0.18.1 USE="introspection networkmanager" % emerge -pqv "=net-misc/gupnp-tools-0.8" [ebuild UD] net-misc/gupnp-tools-0.8 [0.8.1] (Now that I successfully installed 0.8.1)
Created attachment 299759 [details] Ebuild environment file
I just commited 0.8.4 which adds a dependency on libsoup. It is not checked at configure but reading the code, some utility appears to use it directly, not just via a function of another lib. Does it fix the problem for you ?
Yes, works with the 0.8.4 ebuild (even though libsoup is not installed nor updated with it, maybe it has been fixed upstream) Thanks !
Ok, don't hesitate to open a new bug if it fails again.