Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496062 - =net-libs/gupnp-igd-0.2.1[introspection] fails due to underlinking
Summary: =net-libs/gupnp-igd-0.2.1[introspection] fails due to underlinking
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard: Backport fix and/or stabilize new ver...
Keywords: Bug, STABLE
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-12-26 11:29 UTC by Ladislav Zitka
Modified: 2014-10-02 11:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ladislav Zitka 2013-12-26 11:29:53 UTC
When installing Gnome 3.8.* onto workstation, I switched to systemd, put in place following to make.conf:
ABI_X86="64 32"
USE="${USE} -consolekit systemd" 

Following is line in package.use file related to systemd:
>=sys-apps/systemd-208-r2 gudev introspection

The issue is anyway related to dependency glib package.
First here is emerge info:
helios ~ # emerge --info '=net-libs/gupnp-igd-0.2.1::gentoo'
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.16.0, 3.10.17-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32895656 total,  29538404 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 26 Dec 2013 09: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.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.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.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.web4u.cz/ http://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j137"
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=""
USE="X a52 aac acl amd64 berkdb bzip2 cli cracklib crypt cxx dbus djvu dri dts dv dvb ffmpeg flac fortran gdbm gif gnome gsf gtk iconv ipv6 iso jpeg jpeg2k lame logrotate mmx modules mp3 mpeg mudflap multilib ncurses nls nptl ogg openmp pam pcre pdf readline session sse sse2 ssl systemd tcpd tiff unicode v4l vcd vorbis wavpack x264 xine zlib" ABI_X86="64 32" 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" 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" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


Some final fragment from build log:
gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_dispose':
gupnp-simple-igd-thread.c:174:7: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c:176:7: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'thread_data_dec':
gupnp-simple-igd-thread.c:238:5: warning: 'g_mutex_free' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:274) [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_finalize':
gupnp-simple-igd-thread.c:250:3: warning: 'g_cond_free' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:278) [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_constructed':
gupnp-simple-igd-thread.c:316:3: warning: 'g_mutex_new' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:272) [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c:320:3: warning: 'g_thread_create' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use 'g_thread_new' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'add_port_idle_func':
gupnp-simple-igd-thread.c:332:3: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c:336:3: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'remove_port_idle_func':
gupnp-simple-igd-thread.c:360:3: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c:364:3: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'free_add_remove_port_data':
gupnp-simple-igd-thread.c:383:3: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c:388:3: warning: 'g_static_mutex_get_mutex_impl' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:149): Use 'GMutex' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_add_port':
gupnp-simple-igd-thread.c:417:3: warning: 'g_static_mutex_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:145): Use 'g_mutex_init' instead [-Wdeprecated-declarations]
gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_remove_port':
gupnp-simple-igd-thread.c:447:3: warning: 'g_static_mutex_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:145): Use 'g_mutex_init' instead [-Wdeprecated-declarations]
  CC       gupnp-enum-types.lo
  CC       gupnp-simple-igd-marshal.lo
  CCLD     libgupnp-igd-1.0.la
make[3]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/libgupnp-igd'
make[2]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/libgupnp-igd'
Making all in tests
make[2]: Entering directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests'
Making all in gtest
make[3]: Entering directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests/gtest'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests/gtest'
Making all in examples
make[3]: Entering directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests/examples'
  CC       test.o
test.c: In function 'main':
test.c:66:3: warning: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
test.c:67:3: warning: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
  CCLD     test
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: test.o: undefined reference to symbol 'g_type_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'g_type_init' is defined in DSO /usr/lib64/libgobject-2.0.so.0 so try adding it to the linker command line
/usr/lib64/libgobject-2.0.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [test] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests/examples'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1'
make: *** [all] Error 2
emake failed
 * ERROR: net-libs/gupnp-igd-0.2.1::gentoo failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *            ebuild.sh, line   93:  Called src_compile
 *          environment, line 5622:  Called default
 *   phase-functions.sh, line  796:  Called __eapi2_src_compile
 *     phase-helpers.sh, line  688:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of `emerge --info '=net-libs/gupnp-igd-0.2.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/gupnp-igd-0.2.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/gupnp-igd-0.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/gupnp-igd-0.2.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1'
 * S: '/var/tmp/portage/net-libs/gupnp-igd-0.2.1/work/gupnp-igd-0.2.1'

>>> Failed to emerge net-libs/gupnp-igd-0.2.1, Log file:

>>>  '/var/tmp/portage/net-libs/gupnp-igd-0.2.1/temp/build.log'

**************************************************************
So it looks like function 'g_type_init' cannot be found within libgobject, I have followings files:
/usr/lib32/libgobject-2.0.so
/usr/lib32/libgobject-2.0.so.0
/usr/lib32/libgobject-2.0.so.0.3200.4 - main, rest is linked
/usr/lib64/libgobject-2.0.so
/usr/lib64/libgobject-2.0.so.0
/usr/lib64/libgobject-2.0.so.0.3600.4 - main, rest is linked
Comment 1 Ladislav Zitka 2013-12-26 11:40:27 UTC
I think this might be related to objective-C bindings for other languages.
Comment 2 Ladislav Zitka 2013-12-26 13:25:24 UTC
This bug is not related to Gentoo itself. 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713536

Going to close this.

Also some Gentoo forum link:
http://forums.gentoo.org/viewtopic-p-7469520.html#7469520
Comment 3 Ladislav Zitka 2013-12-26 13:37:13 UTC
Resolution:
nano /etc/portage/package.accept_keywords
#Trying to unmask because of the bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713536
=net-libs/gupnp-igd-0.2.2-r1 ~amd64

After this unmasking newest ebuild gupnp-igd-0.2.2-r1 is installed and emerging can continue.
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-05-15 12:35:10 UTC
nothing to do for qa@ here
Comment 5 Pacho Ramos gentoo-dev 2014-10-02 11:50:25 UTC
The fixed version was already stabilized