Re: can't compile NetworkManager



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

joker wrote:
> Hi guys, I need your help. I'm trying to compile NetworkManager on Gentoo. I'm 
> running configure script with parameters:
> 
> LIBNL_CFLAGS="/usr/include/netlink/" 
> LIBNL_LIBS="/usr/lib/" ./configure --without-gnome --prefix=/usr/local
> 
> and it works ok, but after make I have: 
> 
> .....
> make[3]: Leaving directory `/usr/local/src/NetworkManager-0.6.4/src/backends'
> make[3]: Entering directory `/usr/local/src/NetworkManager-0.6.4/src'
> if 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../src/named-manager -I../src/vpn-manager -I../src/dhcp-manager -I../utils -I../libnm-util -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_VERSION_MAJOR=0 -DDBUS_VERSION_MINOR=62 -DDBUS_VERSION_MICRO=0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include    /usr/include/netlink/ -DWPA_SUPPLICANT_BIN=\"/sbin/wpa_supplicant\" -DDBUS_API_SUBJECT_TO_CHANGE -DG_DISABLE_DEPRECATED -DBINDIR=\"/usr/local/bin\" -DSBINDIR=\"/usr/local/sbin\" -DLIBEXECDIR=\"/usr/local/libexec\" -DDATADIR=\"/usr/local/share\" -DSYSCONFDIR=\"/usr/local/etc\" -DLOCALSTATEDIR=\"/usr/local/var\" -DNM_RUN_DIR=\"/usr/local/var/run/NetworkManager\" -DGNOMELOCALEDIR=\"/usr/local/share/locale\" -DARP_DEBUG   -g -O2 -MT 
> NetworkManager-nm-device.o -MD -MP -MF ".deps/NetworkManager-nm-device.Tpo" -c -o 
> NetworkManager-nm-device.o `test -f 'nm-device.c' || echo './'`nm-device.c; \
>         then 
> mv -f ".deps/NetworkManager-nm-device.Tpo" ".deps/NetworkManager-nm-device.Po"; 
> else rm -f ".deps/NetworkManager-nm-device.Tpo"; exit 1; fi
> gcc: /usr/include/netlink/: linker input file unused because linking not done
> if 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../src/named-manager -I../src/vpn-manager -I../src/dhcp-manager -I../utils -I../libnm-util -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_VERSION_MAJOR=0 -DDBUS_VERSION_MINOR=62 -DDBUS_VERSION_MICRO=0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include    /usr/include/netlink/ -DWPA_SUPPLICANT_BIN=\"/sbin/wpa_supplicant\" -DDBUS_API_SUBJECT_TO_CHANGE -DG_DISABLE_DEPRECATED -DBINDIR=\"/usr/local/bin\" -DSBINDIR=\"/usr/local/sbin\" -DLIBEXECDIR=\"/usr/local/libexec\" -DDATADIR=\"/usr/local/share\" -DSYSCONFDIR=\"/usr/local/etc\" -DLOCALSTATEDIR=\"/usr/local/var\" -DNM_RUN_DIR=\"/usr/local/var/run/NetworkManager\" -DGNOMELOCALEDIR=\"/usr/local/share/locale\" -DARP_DEBUG   -g -O2 -MT 
> NetworkManager-nm-device-802-3-ethernet.o -MD -MP -MF ".deps/NetworkManager-nm-device-802-3-ethernet.Tpo" -c -o 
> NetworkManager-nm-device-802-3-ethernet.o 
> `test -f 'nm-device-802-3-ethernet.c' || 
> echo './'`nm-device-802-3-ethernet.c; \
>         then 
> mv -f ".deps/NetworkManager-nm-device-802-3-ethernet.Tpo" ".deps/NetworkManager-nm-device-802-3-ethernet.Po"; 
> else rm -f ".deps/NetworkManager-nm-device-802-3-ethernet.Tpo"; exit 1; fi
> In file included from /usr/include/linux/mii.h:12,
>                  from nm-device-802-3-ethernet.c:379:
> /usr/include/linux/if.h:118: error: redefinition of 'struct ifmap'
> /usr/include/linux/if.h:154: error: redefinition of 'struct ifreq'
> /usr/include/linux/if.h:204: error: redefinition of 'struct ifconf'
> make[3]: *** [NetworkManager-nm-device-802-3-ethernet.o] Error 1
> make[3]: Leaving directory `/usr/local/src/NetworkManager-0.6.4/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/NetworkManager-0.6.4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/NetworkManager-0.6.4'
> make: *** [all] Error 2
> 
> 
> any ideas? if yes, let me now on my email or on 
> http://gnomesupport.org/forums/viewtopic.php?t=11794
> 
> regards,
> bartek
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
> 
Take a look at the ebuild for this in the Gentopia overlay
(http://overlays.gentoo.org) and there is a patch that fixes the issue.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFNShS1c+EtXTHkJcRAgA2AJ9r/JmH6PCHX6WQd1M0sX1aFIGVsgCeKAYS
74w6eD+URkayjMuy/j7rPjE=
=xhPQ
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]