Discussion:
conflicting definitions: SVN r333283 et al
(too old to reply)
Michael Butler
2018-05-07 13:18:54 UTC
Permalink
Recent netdump changes appear to introduced/highlighted conflicting
definitions ..

Building /usr/obj/usr/src/i386.i386/lib/libsysdecode/ioctl.c
In file included from <stdin>:70:
In file included from
/usr/obj/usr/src/i386.i386/tmp/usr/include/netinet/netdump/netdump.h:37:
In file included from
/usr/obj/usr/src/i386.i386/tmp/usr/include/net/if.h:48:
/usr/obj/usr/src/i386.i386/tmp/usr/include/sys/socket.h:251:9: warning:
'AF_INET6' macro redefined [-Wmacro-redefined]
#define AF_INET6 28 /* IPv6 */
^
/usr/obj/usr/src/i386.i386/tmp/usr/include/netinet/ip_compat.h:1467:10:
note: previous definition is here
# define AF_INET6 26
^
In file included from <stdin>:70:
In file included from
/usr/obj/usr/src/i386.i386/tmp/usr/include/netinet/netdump/netdump.h:37:
/usr/obj/usr/src/i386.i386/tmp/usr/include/net/if.h:58:10: warning:
'IFNAMSIZ' macro redefined [-Wmacro-redefined]
#define IFNAMSIZ IF_NAMESIZE
^
/usr/obj/usr/src/i386.i386/tmp/usr/include/netinet/ip_compat.h:1415:9:
note: previous definition is here
#define IFNAMSIZ 16
^
2 warnings generated.

imb
Mark Johnston
2018-05-07 14:16:36 UTC
Permalink
Post by Michael Butler
Recent netdump changes appear to introduced/highlighted conflicting
definitions ..
The conflicting definitions in ip_compat.h already existed, and I'm not
sure why the netdump import brought them to light. I didn't see this
failure when doing build testing, and the CI jobs aren't reporting
anything. Is this happening during a buildworld?
Post by Michael Butler
Building /usr/obj/usr/src/i386.i386/lib/libsysdecode/ioctl.c
In file included from
In file included from
'AF_INET6' macro redefined [-Wmacro-redefined]
#define AF_INET6 28 /* IPv6 */
^
note: previous definition is here
# define AF_INET6 26
^
In file included from
'IFNAMSIZ' macro redefined [-Wmacro-redefined]
#define IFNAMSIZ IF_NAMESIZE
^
note: previous definition is here
#define IFNAMSIZ 16
^
2 warnings generated.
imb
Michael Butler
2018-05-07 16:53:28 UTC
Permalink
Entirely possible - I haven’t focused on ‘make buildworld’ logs for a while - just concerned how many applications rely on the afnet6 definition ..

Sent from my iPhone
Post by Mark Johnston
Post by Michael Butler
Recent netdump changes appear to introduced/highlighted conflicting
definitions ..
The conflicting definitions in ip_compat.h already existed, and I'm not
sure why the netdump import brought them to light. I didn't see this
failure when doing build testing, and the CI jobs aren't reporting
anything. Is this happening during a buildworld?
Post by Michael Butler
Building /usr/obj/usr/src/i386.i386/lib/libsysdecode/ioctl.c
In file included from
In file included from
'AF_INET6' macro redefined [-Wmacro-redefined]
#define AF_INET6 28 /* IPv6 */
^
note: previous definition is here
# define AF_INET6 26
^
In file included from
'IFNAMSIZ' macro redefined [-Wmacro-redefined]
#define IFNAMSIZ IF_NAMESIZE
^
note: previous definition is here
#define IFNAMSIZ 16
^
2 warnings generated.
imb
Loading...