guile-1.8 (1.8.7+1-3) FTBFS
Hi all,
how do I handle *this*? Is this a bug in the software (from reading
specs I would expect that guile is correct) or the headers (but how
does one specify padding if not so) or the compiler (GCC usually is
at fault, but guile wants -Werror and I think it’s not GCC’s)?
/bin/bash ../libtool --tag=CC --mode=compile m68k-linux-gnu-gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -O2 -g -Wall -Wmissing-prototypes -Werror -MT socket.lo -MD -MP -MF .deps/socket.Tpo -c -o socket.lo socket.c
libtool: compile: m68k-linux-gnu-gcc -DHAVE_CONFIG_H -I.. -I.. -I.. -O2 -g -Wall -Wmissing-prototypes -Werror -MT socket.lo -MD -MP -MF .deps/socket.Tpo -c socket.c -fPIC -DPIC -o .libs/socket.o
cc1: warnings being treated as errors
socket.c: In function 'scm_to_sockaddr':
socket.c:1154: error: 'c_inet.sin_zero[7u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[6u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[5u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[4u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[3u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[2u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[1u]' may be used uninitialized in this function
socket.c:1154: error: 'c_inet.sin_zero[0u]' may be used uninitialized in this function
make[4]: *** [socket.lo] Error 1
make[4]: Leaving directory `/tmp/buildd/guile-1.8-1.8.7+1/libguile'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/buildd/guile-1.8-1.8.7+1/libguile'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/guile-1.8-1.8.7+1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/guile-1.8-1.8.7+1'
make: *** [debian/stamp/build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
/* Structure describing an Internet socket address. */
struct sockaddr_in
{
__SOCKADDR_COMMON (sin_);
in_port_t sin_port; /* Port number. */
struct in_addr sin_addr; /* Internet address. */
/* Pad to size of `struct sockaddr'. */
unsigned char sin_zero[sizeof (struct sockaddr) -
__SOCKADDR_COMMON_SIZE -
sizeof (in_port_t) -
sizeof (struct in_addr)];
};
Maybe this only appears on m68k due to the unique aligning?
Anyway, I’m open for a suggestion how to proceed. Rob, I did
not file this in the BTS because I think some discussion about
what to file against ;-) may be needed first – if you want, we
can discuss that in the BTS too…
Quick workaround is _probably_ to disable -Werror for guile.
(FWIW, guile-1.8 is a build dependency of gnutls26 which is
why I’m building it.)
bye,
//mirabilos
--
22:20⎜<asarch> The crazy that persists in his craziness becomes a master
22:21⎜<asarch> And the distance between the craziness and geniality is
only measured by the success 22:21⎜<mksh> it’s a
very thin line anyway… with some, you don’t know which side they’re on
Reply to: