Page MenuHome GnuPG

gpgme 1.7.0 fails to build swig bindings on 32-bit platforms
Closed, ResolvedPublic

Description

All 32-bit debian platforms failed to build gpgme 1.7.0 when we try to build the
python bindings:

   https://buildd.debian.org/status/logs.php?pkg=gpgme1.0&ver=1.7.0-3

all the 64-bit platforms built fine.

An example build failure on a 32-bit platform is:

building 'pyme._gpgme' extension
swigging gpgme.i to gpgme_wrap.c
swig -python -py3 -builtin -threads -outdir pyme -DIN_TREE_BUILD=1
-DHAVE_DATA_H=1 -o gpgme_wrap.c gpgme.i
gpgme.h:104: Error: CPP #error "GPGME was compiled with _FILE_OFFSET_BITS = 64,
please see the section "Largefile support (LFS)" in the GPGME manual.". Use the
-cpperraswarn option to continue swig processing.
error: command 'swig' failed with exit status 1
Building pyme3 using ../../src/gpgme.h and
/usr/include/arm-linux-gnueabi/gpg-error.h.
running build
running build_ext
building 'pyme._gpgme' extension
swigging gpgme.i to gpgme_wrap.c
swig -python -py3 -builtin -threads -outdir pyme -DIN_TREE_BUILD=1
-DHAVE_DATA_H=1 -o gpgme_wrap.c gpgme.i
gpgme.h:104: Error: CPP #error "GPGME was compiled with _FILE_OFFSET_BITS = 64,
please see the section "Largefile support (LFS)" in the GPGME manual.". Use the
-cpperraswarn option to continue swig processing.
error: command 'swig' failed with exit status 1

I've read the section of the GPGME manual, but it didn't enlighten me as to any
problems with swig. I suppose that swig needs to be informed about
AC_SYS_LARGEFILE or something, but i'm not enough of an autoconf or swig guru to
know how to fix that specifically.

Details

Version
1.7.0

Event Timeline

dkg set Version to 1.7.0.
dkg added a subscriber: dkg.

This is fixed in 3703a4723899d7563937b4b99f5bbe4dd8d3dfed. We will release a
minor update really soon now.

justus added a subscriber: justus.