Summary: | nm-connection-editor connection list empty | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Schrangl Lukas <schrangl> |
Component: | Current packages | Assignee: | The Gentoo Linux Hardened Team <hardened> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | alunduil, dagger, jens, nirbheek, ronald645, steev, tommy |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Schrangl Lukas
2010-02-02 20:00:07 UTC
I forgot to say, networkmanager and nm-applet's versions are 0.7.2 for both. The problem seems to in src/connection-editor/nm-connection-list.c, function static GtkTreeView * get_treeview_for_type (NMConnectionList *list, GType ctype) 153: if (candidate_type == ctype) seems to always fail for some reason; once I change the line to if ((unsigned int)candidate_type == (unsigned int)ctype) it works as expected (I am not familiar with glib and stuff, so this is probably not the right way to do it; interesting enough is, that if ((void*)candidate_type == (void*)ctype) also fails... How come comparing pointers doesn't work?) Is this stopping networkmanager from connecting to ethernet or nm-applet connecting to networkmanager? If so could you attach /etc/dbus-1/system.d/NetworkManager.conf to this bug? If the connection works we'll have to look at the gtk+ version possibly not being correct for networkmanager. NetworkManger works fine, even the nm-applet itself (the thing in the notification area) does its job, shows all my VPNs and stuff. The only thing that doesn't work is the connection editor (nm-connection-editor) and the problem seems to be the code line I pointed out in comment #1. Maybe that's related to PIC (this is a hardened profile). Still strange, google didn't show one other person with the same problem. Does nm-connection editor come up correctly if you say right click nm-applet and click "edit connections?" Otherwise can you let me know what version your x11-libs/gtk+ is. The dialog appears fine, either with right click on the icon and then edit or left click and then the edit button in the VPN submenu. I can even add a connection, which will appear in the list of the applet, but it won't appear in the nm-connection-editor's list. Anyways, here is what i have installed: x11-libs/gtk+-2.16.6 USE="cups jpeg tiff vim-syntax -debug -doc -jpeg2k -test -xinerama" dev-libs/glib-2.20.5-r1 USE="fam hardened -debug -doc (-selinux) -xattr" Just out of curiosity does a newer version of gtk+ fix the problem as well as the patch you posted? I upgraded to dev-libs/glib-2.22.4 USE="fam hardened -debug -doc (-selinux) -xattr" x11-libs/gtk+-2.18.6 USE="cups jpeg tiff vim-syntax (-aqua) -debug -doc -jpeg2k -test -xinerama" and (to be sure) rebooted, but no change. BTW I wouldn't consider what I did a solution, unless it is specified somewhere that an unsigned int has to be at least the size of a pointer. Could you tell me, where you got that ebuild from? I dont see it in main portage tree. That ebuild is in the main portage tree as shown here: eix -I networkmanager [I] net-misc/networkmanager Available versions: 0.6.6 (~)0.7.1-r3 0.7.1-r6 (~)0.7.1_p20090824 0.7.2 (~)0.8 {avahi bluetooth connection-sharing crypt debug dhclient dhcpcd doc gnome gnutls nss resolvconf} Installed versions: 0.8(05:09:28 PM 02/26/2010)(bluetooth dhcpcd doc gnutls nss -avahi -connection-sharing -dhclient -resolvconf) Homepage: http://www.gnome.org/projects/NetworkManager/ Description: Network configuration and management in an easy way. Desktop environment independent. It's in the main tree, latest stable version (it is also in what you pasted here, right between (~)0.7.1_p20090824 and (~)0.8). Just did an emerge -e world a couple of days ago (hardened profile). I can confirm this bug is hardened specific. When compiled with PIE, nm-connection-editor does not list any network connections (altough they are available and working). This is fixed by switching to the nopie gcc configuration under hardened. (In reply to comment #11) > Just did an emerge -e world a couple of days ago (hardened profile). I can > confirm this bug is hardened specific. When compiled with PIE, > nm-connection-editor does not list any network connections (altough they are > available and working). > > This is fixed by switching to the nopie gcc configuration under hardened. > Thanks for the follow-up, reassigning to hardened... Is this bug still valid? I cannot remember ever having this problem. That said, I am not using nm-connection-editor THAT often. Do this still heppen if you use newer compiler like 4.5.3? I assume with these versions of networkmanager and nm-applet no longer in the tree that this bug is invalid. If I don't hear anything by Sept 13, I'll go ahead and close this bug as invalid. |