NetworkManager Build Failure



Howdy all,

NetworkManager seems to fail due to a type redefinition in if.h on Linux
kernel 2.6.15-rc5. The error is reproduced below. I am building with
gcc-3.4.4 on a gentoo linux machine (although not using the gentoo
portage system) using both NetworkManager and libnl from CVS/SVN. I
noticed that libnl includes an if.h, is this the header that is
referenced here? (which doesn't make too much sense considering it is
included from mii.h which is included in the linux sources) Thanks for
your time,

- Ben Gamari


make[3]: Leaving directory
`/opt/networkmanager/src/NetworkManager/src/backends'
make[3]: Entering directory `/opt/networkmanager/src/NetworkManager/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/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=60 -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     -DDBUS_API_SUBJECT_TO_CHANGE
-DG_DISABLE_DEPRECATED -DBINDIR=\"/opt/networkmanager/bin\" -DDATADIR=
\"/opt/networkmanager/share\" -DSYSCONFDIR=\"/opt/networkmanager/etc\"
-DARP_DEBUG    -Wall -Werror -std=gnu89 -g -O2 -Wno-unused
-Wno-sign-compare -Wdeclaration-after-statement -Wmissing-prototypes
-Wmissing-declarations -Wno-strict-aliasing -MT
NetworkManager-NetworkManagerDevice.o -MD -MP -MF
".deps/NetworkManager-NetworkManagerDevice.Tpo" \
  -c -o NetworkManager-NetworkManagerDevice.o `test -f
'NetworkManagerDevice.c' || echo './'`NetworkManagerDevice.c; \
then mv -f ".deps/NetworkManager-NetworkManagerDevice.Tpo"
".deps/NetworkManager-NetworkManagerDevice.Po"; \
else rm -f ".deps/NetworkManager-NetworkManagerDevice.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/mii.h:12,
                 from NetworkManagerDevice.c:4339:
/usr/include/linux/if.h:95: error: redefinition of `struct ifmap'
/usr/include/linux/if.h:131: error: redefinition of `struct ifreq'
/usr/include/linux/if.h:181: error: redefinition of `struct ifconf'
make[3]: *** [NetworkManager-NetworkManagerDevice.o] Error 1
make[3]: Leaving directory `/opt/networkmanager/src/NetworkManager/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/networkmanager/src/NetworkManager/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/networkmanager/src/NetworkManager'
make: *** [all] Error 2





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