Re: cvs head fails to compile on gentoo...



On Sun, 2005-10-23 at 22:00 +0200, Raphael Jacquot wrote:
> I have kernel 2.6.14-rc5 vanilla
> 
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -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=36 -DDBUS_VERSION_MICRO=2
> -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=\"/usr/bin\" -DDATADIR=\"/usr/share\"
> -DSYSCONFDIR=\"/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:4310:
> /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


This was reported earlier, I have a patch in Gentopia's overlay, that
adds #define HEADERS_KERNEL to the NetworkManagerDevice.c file, and
everything compiles and works fine here.  I also have added the patch
that fixes the killall path from Dave, so that should be fixed as well.
Is there some reason why you are choosing cvs head over the 0.5.1
release?  I can put another cvs snapshot in the overlay, but I haven't
seen anything that affects the usage so far come across.

-- steev




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