Date: Mon, 06 Oct 2014 13:56:53 +0000 From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 194187] New: [arm] devel/libgtop using the wrong definitions for struct ifnet Message-ID: <bug-194187-6497@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194187 Bug ID: 194187 Summary: [arm] devel/libgtop using the wrong definitions for struct ifnet Product: Ports Tree Version: Latest Hardware: arm URL: http://chips.ysv.freebsd.org/data/11armv6-default/2014 -10-05_21h42m23s/logs/errors/libgtop-2.28.4_2.log OS: Any Status: Needs Triage Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: sbruno@FreeBSD.org Assignee: gnome@FreeBSD.org Flags: maintainer-feedback?(gnome@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 --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer gnome@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194187-6497>