Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2013 19:15:14 -0400 (EDT)
From:      AN <andy@neu.net>
To:        Danilo Egea <daniloegea@yahoo.com.br>
Cc:        ports@freebsd.org, gnome@freebsd.org
Subject:   Re: make[4]: stopped in /usr/ports/devel/libgtop
Message-ID:  <alpine.BSF.2.00.1310181910410.64550@mail.neu.net>
In-Reply-To: <5261A27B.6030202@yahoo.com.br>
References:  <alpine.BSF.2.00.1310181530370.64523@mail.neu.net> <5261A27B.6030202@yahoo.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 18 Oct 2013, Danilo Egea wrote:

> On 10/18/13 16:36, AN wrote:
>> FreeBSD FBSD11 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r256636: Wed Oct
>> 16 17:43:34 UTC 2013
>> root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>>
>> Trying to build Gnome2 fails with:
>>
>> Making all in common
>> gmake[8]: Entering directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps/common'
>> gmake[8]: Nothing to be done for `all'.
>> gmake[8]: Leaving directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps/common'
>> Making all in freebsd
>> gmake[8]: Entering directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps/freebsd'
>> /bin/sh /usr/ports/devel/libgtop/work/gnome-libtool --tag=CC
>> --mode=compile 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  -Winline   -Wall   -std=gnu89
>> -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes
>> -Wnested-externs -Wpointer-arith      -Wcast-align -Wsign-compare
>> -O2 -pipe -fno-strict-aliasing -MT netload.lo -MD -MP -MF
>> .deps/netload.Tpo -c -o netload.lo netload.c
>> gnome-libtool: compile:  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 -Winline
>> -Wall -std=gnu89 -Wchar-subscripts -Wmissing-declarations
>> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
>> -Wsign-compare -O2 -pipe -fno-strict-aliasing -MT netload.lo -MD -MP
>> -MF .deps/netload.Tpo -c netload.c  -fPIC -DPIC -o .libs/netload.o
>> netload.c:100:31: error: field has incomplete type 'struct ifaddr'
>>                 struct ifaddr ifa;
>>                               ^
>> /usr/include/net/if_var.h:99:24: note: forward declaration of 'struct
>> ifaddr'
>> TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the
>> list */
>>                        ^
>> /usr/include/sys/queue.h:493:9: note: expanded from macro 'TAILQ_HEAD'
>>         struct type *tqh_first; /* first element */                     \
>>                ^
>> netload.c:101:34: error: field has incomplete type 'struct in_ifaddr'
>>                 struct in_ifaddr in;
>>                                  ^
>> netload.c:101:24: note: forward declaration of 'struct in_ifaddr'
>>                 struct in_ifaddr in;
>>                        ^
>> netload.c:210: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:216: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:224: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 2 errors generated.
>> gmake[8]: *** [netload.lo] Error 1
>> gmake[8]: Leaving directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps/freebsd'
>> gmake[7]: *** [all-recursive] Error 1
>> gmake[7]: Leaving directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4/sysdeps'
>> gmake[6]: *** [all-recursive] Error 1
>> gmake[6]: Leaving directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4'
>> gmake[5]: *** [all] Error 2
>> gmake[5]: Leaving directory
>> `/usr/ports/devel/libgtop/work/libgtop-2.28.4'
>> ===> Compilation failed unexpectedly.
>>

> Please, try this: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/183083
>
> I didn't test this yet.


Hi Danilo:

I confirm this fixed the problem for me.  Thank you for the quick 
response.

Andy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1310181910410.64550>