public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jonas de Buhr <jonas.de.buhr@gmx.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Networkmanager-9999 won't compile
Date: Thu, 20 Oct 2011 11:18:06 +0200	[thread overview]
Message-ID: <20111020111806.06338828@toxic.dbnet> (raw)
In-Reply-To: <4E9E98AF.5000401@nileshgr.com>

Am Wed, 19 Oct 2011 15:00:23 +0530
schrieb Nilesh Govindarajan <contact@nileshgr.com>:

> This is what I get when I try to install networkmanager-9999 which is
> required by gnome-3.2.0
> [SNIP]
> -pthread -pthread
> -Wl,--as-needed ../marshallers/.libs/libmarshallers.a ./logging/.libs/libnm-logging.a ./dns-manager/.libs/libdns-manager.a ./vpn-manager/.libs/libvpn-manager.a ./dhcp-manager/.libs/libdhcp-manager.a
> ./ip6-manager/.libs/libip6-manager.a
> ./supplicant-manager/.libs/libsupplicant-manager.a
> ./dnsmasq-manager/.libs/libdnsmasq-manager.a
> ./ppp-manager/.libs/libppp-manager.a
> ./modem-manager/.libs/libmodem-manager.a
> ./bluez-manager/.libs/libbluez-manager.a ./settings/.libs/libsettings.a
> /media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-9999/work/networkmanager-9999/libnm-util/.libs/libnm-util.so
> ./backends/.libs/libnmbackend.a ../libnm-util/.libs/libnm-util.so
> -luuid -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4
> -ldbus-glib-1 -ldbus-1 -lpthread /usr/lib64/libgudev-1.0.so
> -L/usr/lib64 /usr/lib64/libudev.so -lgthread-2.0 -lnl
> -lpolkit-gobject-1 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lrt
> -lglib-2.0 -lm -ldl -pthread NetworkManager-main.o: In function
> `main': main.c:(.text+0xa63): undefined reference to
> `g_thread_supported' collect2: ld returned 1 exit status
> make[4]: *** [NetworkManager] Error 1
> make[4]: Leaving directory
> `/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-9999/work/networkmanager-9999/src'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-9999/work/networkmanager-9999/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-9999/work/networkmanager-9999/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/media/500GB/gentoo_portage/tmp/portage/net-misc/networkmanager-9999/work/networkmanager-9999'
> make: *** [all] Error 2
> 
> 
> The error is g_thread_supported is an undefined reference. This seems
> to be related to glib. 

what is your version of glib? in the version i have installed
(dev-libs/glib-2.28.8) it is a macro in gthread:

# grep g_thread_supported /usr/include/glib-2.0/glib/gthread.h
 * g_thread_supported macro but provided for language bindings.
    (g_thread_supported () ? G_THREAD_UF (op, arg) : (fail))
    (g_thread_supported () ?
						\ (g_thread_supported
() ? ((void(*)(GCond*, GMutex*, gulong, gchar*))\ (g_thread_supported
() ?						\ #define
g_thread_supported()     1 #define g_thread_supported()
(g_threads_got_initialized)

an a macro is not a function you can link to compiled into the library:

# nm /usr/lib64/libgthread-2.0.a | grep g_thread_supported

that would explain why linking against it doesn't work.

maybe that changed in newer versions of glib?

> Anybody has a solution? I tried masking
> networkmanager, but emerge won't allow me to do that when I try to
> install gnome-base/gnome-3.2.0 (layman overlay)
> 



      parent reply	other threads:[~2011-10-20  9:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19  9:30 [gentoo-user] Networkmanager-9999 won't compile Nilesh Govindarajan
2011-10-19 20:11 ` Canek Peláez Valdés
2011-10-19 20:52   ` Albert W. Hopkins
2011-10-20  0:00     ` Canek Peláez Valdés
2011-10-20  1:00       ` Nilesh Govindarajan
2011-10-20  1:27         ` Canek Peláez Valdés
2011-10-20  2:07           ` Nilesh Govindarajan
2011-10-20  2:52             ` Canek Peláez Valdés
2011-10-20  3:15             ` Albert W. Hopkins
2011-10-20  1:53   ` Nilesh Govindarajan
2011-10-20  9:04     ` Neil Bothwick
2011-10-20  9:18 ` Jonas de Buhr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111020111806.06338828@toxic.dbnet \
    --to=jonas.de.buhr@gmx.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox