Page MenuHome GnuPG

Configure script fails on size detection with '--enable-minimal'
Closed, ResolvedPublic

Description

Hi,
this is probably related to T810 (https://bugs.g10code.com/gnupg/
issue810), but i didn't know how to reopen it.
I'm trying to compile small version gnupg-1.4.9 using --enable-minimal
configure option. Script exit with:
checking for u16 typedef... no
checking for u32 typedef... no
checking for unsigned short... yes
checking size of unsigned short... configure: error: cannot compute sizeof
(unsigned short)
See `config.log' for more details.

I'm attaching config.log

System is Archlinux, kernel 2.6.28, glibc 2.9

Details

Version
1.4.9

Event Timeline

notch added a subscriber: notch.

Right, it was fixed in 1.4.8. The regression is due to the update to a newer
gettext version which still suffers from the same problem David worked around in
1.4.8. I don't have a simple workaround unless you can use the autotools to
create a new configure script.

I have autoconf installed, so please let me know of possible ways to work
around it.

In configure.ac you will find

AC_ARG_ENABLE(minimal,

AC_HELP_STRING([--enable-minimal],[build the smallest gpg binary possible]),
try_gettext=no
try_dns=no

Delete the line try_gettext=no or set it to yes. Then to disable gettext
pass --disable-nls to configure as well.

(To build configure you may just call ./autogen.sh.)

Thanks a lot. It did the trick. I consider it fixed.

werner claimed this task.