ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] compile error related to nl ?

From: Toralf Förster <toralf.foerster@xxxxxx>
Date: Fri, 29 Jun 2012 21:43:12 +0200
The current svn tree produces here at a Gentoo Linux a compilation error :

gcc -DHAVE_CONFIG_H -I.  -I. -I./wiretap     -DINET6 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -D_FORTIFY_SOURCE=2 -D_U_="__attribute__((unused))"  -I/usr/local/include -I/usr/include '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.9.0"' -Werror -DPYTHON_DIR= -O2 -march=native -pipe -I/usr/include/libnl3   -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security -Wold-style-definition -fexcess-precision=fast -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm   -MT wireshark-iface_monitor.o -MD -MP -MF .deps/wireshark-iface_monitor.Tpo -c -o wireshark-iface_monitor.o `test 
-f 'iface_monitor.c' || echo './'`iface_monitor.c
In file included from /usr/include/libnl3/netlink/route/link.h:18:0,
                 from iface_monitor.c:44:
/usr/include/linux/if.h:136:8: error: redefinition of �struct ifmap�
/usr/include/net/if.h:112:8: note: originally defined here
/usr/include/linux/if.h:170:8: error: redefinition of �struct ifreq�
/usr/include/net/if.h:127:8: note: originally defined here
/usr/include/linux/if.h:219: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....
Version configuration file version.conf not found.  Using defaults.
svnversion.h unchanged.
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