Wireshark mailing list archives

compiler error "redefinition of ‘struct ifmap" somewhere in between -r 46809:46827


From: Toralf Förster <toralf.foerster () gmx de>
Date: Fri, 28 Dec 2012 18:09:39 +0100

Probably this :

tfoerste@n22 ~/devel/wireshark $ svn log -r 46809:46827 iface_monitor.c
------------------------------------------------------------------------
r46825 | alagoutte | 2012-12-28 15:38:10 +0100 (Fri, 28 Dec 2012) | 1 line

Fix [ 77%] Building C object CMakeFiles/qtshark.dir/iface_monitor.c.o iface_monitor.c: In function 
‘iface_mon_handler2’: iface_monitor.c:101:19: error: ‘IFF_UP’ undeclared (first use in this function) 
iface_monitor.c:101:19: note: each undeclared identifier is reported only once for each function it appears in make[2]: 
*** [CMakeFiles/qtshark.dir/iface_monitor.c.o] Erreur 1
------------------------------------------------------------------------



breaks compilation here at an almost stable Gentoo x86 Linux system with :

  CC     capinfos-capinfos.o
In file included from /usr/include/libnl3/netlink/route/link.h:18:0,
                 from iface_monitor.c:46:
/usr/include/linux/if.h:142:8: error: redefinition of ‘struct ifmap’
/usr/include/net/if.h:112:8: note: originally defined here
/usr/include/linux/if.h:176:8: error: redefinition of ‘struct ifreq’
/usr/include/net/if.h:127:8: note: originally defined here
/usr/include/linux/if.h:225:8: error: redefinition of ‘struct ifconf’
/usr/include/net/if.h:177:8: note: originally defined here
make[2]: *** [wireshark-iface_monitor.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC     editcap-editcap.o
make[2]: Leaving directory `/home/tfoerste/devel/wireshark'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tfoerste/devel/wireshark'
make: *** [all] Error 2


-- 
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: