guile testsuite failure (gnutls 3.0.1 and later) and armel and mipsel

Andreas Metzler ametzler at downhill.at.eu.org
Sat Nov 12 17:16:54 CET 2011


On 2011-11-06 Ludovic Courtès <ludo at gnu.org> wrote:
[...]
> The problem is that Guile 1.8 uses off_t fields in its scm_t_port
> structure, which is public [0].  On armv5tel-unknown-linux-gnueabi, that
> structure is 96-byte long when _FILE_OFFSET_BITS == 32, and 120-bit long
> otherwise.

> By default, Guile 1.8 is compiled with _FILE_OFFSET_BITS == 32, whereas
> GnuTLS 3.0 gets compiled with _FILE_OFFSET_BITS == 64 (probably as a
> result of a Gnulib change.)  Hence the problem.

> A simple workaround is to build Guile 1.8 with
> CPPFLAGS=-D_FILE_OFFSET_BITS=64, or to #define _FILE_OFFSET_BITS 32 just
> before any #include <libguile.h> in GnuTLS (or, better yet, to use Guile
> 2.0 ;-)).

FYI as a hotfix I am now building gnutls with --disable-largefile on
armel armhf mipsel.

> Ideally, though, GnuTLS would have a configure check to determine what
> _FILE_OFFSET_BITS value Guile is expecting, but I can’t think of any
> reliable way to do that.  Ideas?
[...]

Could you build a simple program that returns sizeof(scm_t_port)?

cu andreas




More information about the Gnutls-devel mailing list