Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548332 - net-analyzer/bmon-3.6 - In file included from in_netlink.c:40:0: /usr/include/linux/if.h:71:2: error: redeclaration of enumerator ‘IFF_UP’
Summary: net-analyzer/bmon-3.6 - In file included from in_netlink.c:40:0: /usr/include...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 557446 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-01 13:38 UTC by INODE64 Sistemas
Modified: 2016-07-25 06:02 UTC (History)
1 user (show)

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 INODE64 Sistemas 2015-05-01 13:38:21 UTC
The patch net_if.h.patch is only for BSD see the fix from githut

https://github.com/tgraf/bmon/commit/4645116a57c41daa6a6349d61771b3993995305e

Error with actual patch in Linux:
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include/bmon    -I../include -I../include -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -Wall   -I/usr/include/libnl3  -I/usr/include/libnl3  -O2 -march=k8-sse3 -pipe -msahf -mcx16 -c -o bmon-out_curses.o `test -f 'out_curses.c' || echo './'`out_curses.c
In file included from /usr/include/libnl3/netlink/route/link.h:18:0,
                 from in_netlink.c:44:
/usr/include/linux/if.h:71:2: error: redeclaration of enumerator ‘IFF_UP’
  IFF_UP    = 1<<0,  /* sysfs */
  ^
In file included from in_netlink.c:26:0:
/usr/include/net/if.h:44:5: note: previous definition of ‘IFF_UP’ was here
     IFF_UP = 0x1,  /* Interface is up.  */
     ^
In file included from /usr/include/libnl3/netlink/route/link.h:18:0,
                 from in_netlink.c:44:
/usr/include/linux/if.h:72:2: error: redeclaration of enumerator ‘IFF_BROADCAST’
  IFF_BROADCAST   = 1<<1,  /* __volatile__ */
  ^
In file included from in_netlink.c:26:0:
/usr/include/net/if.h:46:5: note: previous definition of ‘IFF_BROADCAST’ was here
     IFF_BROADCAST = 0x2, /* Broadcast address valid.  */
     ^
In file included from /usr/include/libnl3/netlink/route/link.h:18:0,
                 from in_netlink.c:44:
/usr/include/linux/if.h:73:2: error: redeclaration of enumerator ‘IFF_DEBUG’
  IFF_DEBUG   = 1<<2,  /* sysfs */
  ^
In file included from in_netlink.c:26:0:
/usr/include/net/if.h:48:5: note: previous definition of ‘IFF_DEBUG’ was here
     IFF_DEBUG = 0x4,  /* Turn on debugging.  */
     ^
In file included from /usr/include/libnl3/netlink/route/link.h:18:0,
                 from in_netlink.c:44:
/usr/include/linux/if.h:74:2: error: redeclaration of enumerator ‘IFF_LOOPBACK’
  IFF_LOOPBACK   = 1<<3,  /* __volatile__ */


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-03 07:56:07 UTC
1) Please post your `emerge --info net-analyzer/bmon' output in a comment.
2) Please attach the entire build log to this bug report.
3) Reopen this bug report.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-06 16:45:02 UTC
Additionally, post your `emerge -vpq dev-libs/libnl' output.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-08-18 05:43:47 UTC
*** Bug 557446 has been marked as a duplicate of this bug. ***
Comment 4 F. Fischer 2015-08-25 19:14:58 UTC
Got the same error while dev-libs/libnl-3.2.25 was emerged
After emerging dev-libs/libnl-3.2.26 it compiled fine