2010-11-11 14:02:54     GnuPG, automake, libintl

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-11-11 14:02:54     GnuPG, automake, libintl

Matt Gilg (UNITED STATES)

Message: 95781   

 

I'm attempting to integrate GnuPG, and running into an issue with libintl & gettext.  I believe the solution is to get automake to pass the --with-included-gettext option to ./configure, but I'm not sure how to do that from the outside makefile. (user/gnupg/Makefile).

 

I get the following error at compile-time:

 

----------------------------------------------------------------------------

 

Making all in intl

make[2]: Entering directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11/intl'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11/intl'

Making all in zlib

make[2]: Entering directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11/zlib'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11/zlib'

Making all in util

make[2]: Entering directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11/util'

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../gnupg-1.4.11/util -I.. -I.. -I../../gnupg-1.4.11/include -I../../gnupg-1.4.11/intl  -DEMBED -D__uClinux__ -I/home/gilgm/Blackfin/uClinux  -mcpu=bf537-0.3  -pipe -Wall -g -O2      -mcpu=bf537-0.3 -Wall -Wno-pointer-sign -c ../../gnupg-1.4.11/util/logger.c

In file included from ../../gnupg-1.4.11/util/logger.c:28:

../../gnupg-1.4.11/include/i18n.h:37:21: error: libintl.h: No such file or directory

../../gnupg-1.4.11/util/logger.c: In function âg10_log_warningâ:

../../gnupg-1.4.11/util/logger.c:183: warning: implicit declaration of function âgettextâ

../../gnupg-1.4.11/util/logger.c:183: warning: incompatible implicit declaration of built-in function âgettextâ

../../gnupg-1.4.11/util/logger.c:186: warning: incompatible implicit declaration of built-in function âgettextâ

../../gnupg-1.4.11/util/logger.c: In function âg10_log_bug0â:

../../gnupg-1.4.11/util/logger.c:249: warning: incompatible implicit declaration of built-in function âgettextâ

make[2]: *** [logger.o] Error 1

make[2]: Leaving directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11/util'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/gilgm/Blackfin/uClinux/user/gnupg/build-gnupg-1.4.11'

make: *** [all] Error 2

 

----------------------------------------------------------------------------

 

Looks like we can't find libintl.h, include directories appear to be incorrect.  libintl.h is present in build-gnupg-1.4.11/intl, but not in gnupg-1.4.11/intl.

Above, you can see that automake is including ../../gnupg-1.4.11/intl, but not ../../build-gnupg-1.4.11/intl -- so the error makes sense.  Either libintl.h is in the wrong place, or automake is setting the wrong include directories.

 

OR, I'm just new to automake, and missing something stupid.

 

-Matt

 

 

QuoteReplyEditDelete

 

 

2010-11-11 14:05:22     Re: GnuPG, automake, libintl

Mike Frysinger (UNITED STATES)

Message: 95782   

 

it isnt too uncommon for packages to break when builddir != srcdir.  it seems like you've hit just such a case.

 

try editing util/Makefile.in and add -I$(top_builddir)/intl to the INCLUDES line.

Attachments

    Outcomes