Package: libopenobex
Version: 1.7.1-3
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-storage-size

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> Building C object apps/obex_test/CMakeFiles/obex_test.dir/obex_test_server.c.o
> In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:22:0,
>                  from /<<PKGBUILDDIR>>/include/openobex/obex.h:48,
>                  from /<<PKGBUILDDIR>>/apps/obex_test/obex_test_cable.c:27:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and 
> _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>    ^~~~~~~
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c: In function 'get_peer_addr':
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:60:9: error: variable 'hint' has initializer 
> but incomplete type
>   struct addrinfo hint = {
>          ^~~~~~~~
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:61:3: error: unknown field 'ai_family' 
> specified in initializer
>    .ai_family = AF_UNSPEC,
>    ^
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:62:3: error: unknown field 'ai_socktype' 
> specified in initializer
>    .ai_socktype = SOCK_STREAM,
>    ^
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:63:3: error: unknown field 'ai_protocol' 
> specified in initializer
>    .ai_protocol = 0,
>    ^
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:63:18: warning: excess elements in struct 
> initializer
>    .ai_protocol = 0,
>                   ^
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:63:18: note: (near initialization for 'hint')
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:60:18: error: storage size of 'hint' isn't 
> known
>   struct addrinfo hint = {
>                   ^~~~
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:71:12: warning: implicit declaration of 
> function 'getaddrinfo' [-Wimplicit-function-declaration]
>   int err = getaddrinfo(name, NULL, &hint, &info);
>             ^~~~~~~~~~~
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:74:19: error: dereferencing pointer to 
> incomplete type 'struct addrinfo'
>   memcpy(peer, info->ai_addr, info->ai_addrlen);
>                    ^~
> 
> /<<PKGBUILDDIR>>/apps/obex_tcp.c:75:2: warning: implicit declaration of 
> function 'freeaddrinfo' [-Wimplicit-function-declaration]
>   freeaddrinfo(info);
>   ^~~~~~~~~~~~
> 
> apps/CMakeFiles/obex_tcp.dir/build.make:62: recipe for target 
> 'apps/CMakeFiles/obex_tcp.dir/obex_tcp.c.o' failed
> make[4]: *** [apps/CMakeFiles/obex_tcp.dir/obex_tcp.c.o] Error 1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to