Page MenuHome GnuPG

libiconv problems
Closed, ResolvedPublic

Description

New OpenBSD 4.2 i386 snapshot 10/2/2007 install. Current GNU libiconv, gettext,
make installed. No autoconf, automake, libtool.

Compile errors unless #define ICONV_CONST is added to config.h after
configuring. This is an old problem, reported on gnupg-users list in July 2007
re. version 2.0.5, but still present even though gettext is installed.

Also, configure does not propagate the location of libiconv to subsidiary
Makefiles, even when --with-libiconv-prefix=... is specified.

Adding -L/usr/local/lib -liconv to LDFLAGS in several Makefiles (jnlib, common,
kbx, g10, keyserver, sm, agent, scd, tools) by hand allows build to finish and
the executables function fine.

Same bug was reported in Oct. 2006 on gnupg-users list with gnupg-1.9.x on
Linux, but I don't see follow-ups or a resolution.

configure seems to be ignoring --disable-nls, or at least setting this does
nothing to alleviate the problems above; and I found no other way to disable
internationalization (which I personally couldn't care less about).

Finally, please provide normal gzip tarballs for gnupg and the numerous
dependencies. GnuPG is useful for checking downloads while setting up new
systems; many new systems don't have bunzip2, but almost certainly have a
working gunzip.

Details

Version
2.0.7

Event Timeline

orsini set Version to 2.0.7.
orsini added a subscriber: orsini.

Regarding the last point: We will continue to provide .gz tarballs for gnupg 1.x

  • however for 2.x it does not make much sense as there are already many

dependencies a new system will be missing.

I'll check the other problems in the next days.

werner set Due Date to Nov 20 2007, 1:00 AM.Nov 15 2007, 3:59 PM

Please check whether 2.0.8rc1 (2.0.8 to be released on Thursday) solves the
problem. I doubt that because the last changes were done for 2.0.7. Anyway we
need the config.log from your build.

werner changed Due Date from Nov 20 2007, 1:00 AM to Dec 31 2007, 1:00 AM.Dec 18 2007, 10:14 AM

On Tue, Dec 18, 2007 at 09:13:50AM -0000, Werner Koch via BTS wrote:

Werner Koch <wk@gnupg.org> added the comment:

Please check whether 2.0.8rc1 (2.0.8 to be released on Thursday) solves the
problem. I doubt that because the last changes were done for 2.0.7. Anyway we
need the config.log from your build.


g10 Code's BTS <gnupg@bugs.g10code.com>
<T838>


No, 2.0.8 behaves exactly the same in this regard. Again, newest
libiconv, uname -a = OpenBSD clinch.math.niu.edu 4.2 GENERIC#409 i386

First, make chokes on

Making all in jnlib
make[2]: Entering directory `/home/soft/work/gnupg-2.0.8/jnlib'
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I/usr/local/include -I/usr/local/include -I/usr/local/include -g -O2 -Wall -Wpointer-arith -MT utf8conv.o -MD -MP -MF .deps/utf8conv.Tpo -c -o utf8conv.o utf8conv.c
utf8conv.c: In function `native_to_utf8':
utf8conv.c:386: error: `ICONV_CONST' undeclared (first use in this function)
utf8conv.c:386: error: (Each undeclared identifier is reported only once
utf8conv.c:386: error: for each function it appears in.)
utf8conv.c:386: error: syntax error before "char"
utf8conv.c: In function `do_utf8_to_native':
utf8conv.c:652: error: `ICONV_CONST' undeclared (first use in this function)
utf8conv.c:652: error: syntax error before "char"
utf8conv.c: In function `jnlib_iconv':
utf8conv.c:727: warning: passing arg 2 of `libiconv' from incompatible pointer type
make[2]: *** [utf8conv.o] Error 1

After adding #define ICONV_CONST to config.h, it goes a bit further but
then fails to link with libiconv in several subdirectories. I'm attaching
config.log and make errors. Thanks.

I am not sure about the problem but I updated getext which also updates the
iconv test macro. Can you please test this again:

ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-2.0.9-svn4694.tar.bz2
ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-2.0.9-svn4694.tar.bz2.sig

If this all does not help I guess I need to install an OpenBSD on my test box.

werner added a project: Restricted Project.

On Fri, Feb 15, 2008 at 10:01:15AM -0000, Werner Koch via BTS wrote:

Werner Koch <wk@gnupg.org> added the comment:

I am not sure about the problem but I updated getext which also updates the
iconv test macro. Can you please test this again:

ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-2.0.9-svn4694.tar.bz2
ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/gnupg-2.0.9-svn4694.tar.bz2.sig

If this all does not help I guess I need to install an OpenBSD on my test box.

This one configured and compiled without a hitch. I can send you the
config.log if it will be of any help. Thanks a lot.

werner claimed this task.
werner removed a project: Restricted Project.