maintainer-feedback requested: [Bug 194187] [arm] devel/libgtop using the wrong definitions for struct ifnet
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Oct 6 13:56:53 UTC 2014
Sean Bruno <sbruno at FreeBSD.org> has asked gnome at FreeBSD.org for
maintainer-feedback:
Bug 194187: [arm] devel/libgtop using the wrong definitions for struct ifnet
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194187
------- Additional Comments from Sean Bruno <sbruno at FreeBSD.org>
somehow, when compiling for ARMv6, libgtop is assuming that struct ifnet has
elements that are not defined on FreeBSD. Probably these are linux definitions
that are being brought in when assuming that ARM==linux?
libtool: compile: /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../..
-I../.. -I../../sysdeps/freebsd -I../../include -I/usr/local/include/glib-2.0
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-DHAVE_NET_IF_VAR_H -D_WANT_IFADDR -Winline -Wall -std=gnu89 -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wsign-compare -O -pipe -MT procmap.lo -MD -MP -MF
.deps/procmap.Tpo -c procmap.c -o procmap.o >/dev/null 2>&1
mv -f .deps/procmap.Tpo .deps/procmap.Plo
/bin/sh ../../libtool --tag=CC --mode=compile /nxb-bin/usr/bin/cc
-DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../sysdeps/freebsd
-I../../include -I/usr/local/include/glib-2.0 -I/usr/local/include
-I/usr/local/include -I/usr/local/include -DHAVE_NET_IF_VAR_H -D_WANT_IFADDR
-Winline -Wall -std=gnu89 -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -O -pipe -MT netload.lo -MD -MP -MF .deps/netload.Tpo -c -o
netload.lo netload.c
libtool: compile: /nxb-bin/usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../..
-I../.. -I../../sysdeps/freebsd -I../../include -I/usr/local/include/glib-2.0
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-DHAVE_NET_IF_VAR_H -D_WANT_IFADDR -Winline -Wall -std=gnu89 -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Wsign-compare -O -pipe -MT netload.lo -MD -MP -MF
.deps/netload.Tpo -c netload.c -fPIC -DPIC -o .libs/netload.o
netload.c:182:41: error: no member named 'if_ipackets' in 'struct ifnet'
buf->packets_in = ifnet.if_ipackets;
~~~~~ ^
netload.c:183:42: error: no member named 'if_opackets' in 'struct ifnet'
buf->packets_out = ifnet.if_opackets;
~~~~~ ^
netload.c:186:39: error: no member named 'if_ibytes' in 'struct ifnet'
buf->bytes_in = ifnet.if_ibytes;
~~~~~ ^
netload.c:187:40: error: no member named 'if_obytes' in 'struct ifnet'
buf->bytes_out = ifnet.if_obytes;
~~~~~ ^
netload.c:190:40: error: no member named 'if_ierrors' in 'struct ifnet'
buf->errors_in = ifnet.if_ierrors;
~~~~~ ^
netload.c:191:41: error: no member named 'if_oerrors' in 'struct ifnet'
buf->errors_out = ifnet.if_oerrors;
~~~~~ ^
netload.c:194:41: error: no member named 'if_collisions' in 'struct ifnet'
buf->collisions = ifnet.if_collisions;
~~~~~ ^
netload.c:211:58: warning: cast from 'struct sockaddr *' to 'struct sockaddr_dl
*' increases required alignment from 1 to 2 [-Wcast-align]
struct sockaddr_dl *dl = (struct sockaddr_dl *)
sa;
^~~~~~~~~~~~~~~~~~~~~~~~~
netload.c:217:39: warning: cast from 'struct sockaddr *' to 'struct sockaddr_in
*' increases required alignment from 1 to 4 [-Wcast-align]
sin = (struct sockaddr_in *)sa;
^~~~~~~~~~~~~~~~~~~~~~~~
netload.c:225:61: warning: cast from 'struct sockaddr *' to 'struct
sockaddr_in6 *' increases required alignment from 1 to 4 [-Wcast-align]
struct sockaddr_in6 *sin6 = (struct
sockaddr_in6 *) sa;
^~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 7 errors generated.
gmake[4]: *** [netload.lo] Error 1
gmake[4]: Leaving directory
`/wrkdirs/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps/freebsd'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/wrkdirs/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/wrkdirs/usr/ports/devel/libgtop/work/libgtop-2.28.4'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/wrkdirs/usr/ports/devel/libgtop/work/libgtop-2.28.4'
*** Error code 1
More information about the freebsd-gnome
mailing list