Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109673 - networkmanager-0.4.1_pre20051011 compile failure: error: redefinition of `struct ifmap'
Summary: networkmanager-0.4.1_pre20051011 compile failure: error: redefinition of `str...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Project Gentopia
URL: http://mail.gnome.org/archives/networ...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 00:04 UTC by Ed Catmur
Modified: 2005-10-30 16:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2005-10-18 00:04:40 UTC
if i686-pc-linux-gnu-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    -O1 -O2 -O3 -pipe
-march=athlon-xp -mmmx -msse -m3dnow -mfpmath=387 -MT
NetworkManager-NetworkManager.o -MD -MP -MF
".deps/NetworkManager-NetworkManager.Tpo" \
  -c -o NetworkManager-NetworkManager.o `test -f 'NetworkManager.c' || echo
'./'`NetworkManager.c; \
then mv -f ".deps/NetworkManager-NetworkManager.Tpo"
".deps/NetworkManager-NetworkManager.Po"; \
else rm -f ".deps/NetworkManager-NetworkManager.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/mii.h:12,
                 from NetworkManagerDevice.c:4409:
/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]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/networkmanager-0.4.1_pre20051011/work/NetworkManager-0.4.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/networkmanager-0.4.1_pre20051011/work/NetworkManager-0.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/networkmanager-0.4.1_pre20051011/work/NetworkManager-0.4.1'
make: *** [all] Error 2

URL is discussion on gnome.org networkmanager-list. They don't have the fix yet,
which is to define HEADERS_KERNEL (e.g. in CFLAGS).

This is what I will post to the list:

****

> On Mon, 2005-10-17 at 15:56 -0400, Robert Love wrote:
> It seems that <linux/*.h> and <net/*.h> are defining the same if*
> structures, and somehow wireless-tools 28pre10 are pulling in both.  I
> just noticed it and have not dived in deep, yet.
> 
Yes. <iwlib.h> (at the top) is pulling in <net/if.h>, while <linux/mii.h> (near
the bottom, for MII capability detection) is pulling in <linux/if.h>.

Possible fix is to define HEADERS_KERNEL when including iwlib.h (it works, but
is it right?). That or split out MII capability detection into its own
compilation unit.

****
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2005-10-30 16:19:33 UTC
This was added to the networkmanager 0.5.0 ebuild, as well as 0.5.1 - Upstream
never responded to this, will ask again later this week.