[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error after adding #includes to config.h
From: |
Bruno Haible |
Subject: |
Re: error after adding #includes to config.h |
Date: |
Fri, 19 Feb 2010 01:40:18 +0100 |
User-agent: |
KMail/1.9.9 |
Bruce Korb wrote:
> "make distcheck" is failing. The compile statement needs a "-I../../lib"
> for this to be successful. Since I do not even have a Makefile.am in
> the "intl" directory, it is unclear what I ought to be doing.
>
> > make[1]: Entering directory
> > `/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_build'
> > make all-recursive
> > make[2]: Entering directory
> > `/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_build'
> > Making all in intl
> > make[3]: Entering directory
> > `/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_build/intl'
> > sed -e '/IN_LIBGLOCALE/d' \
> > -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
> > -e 's,@''HAVE_ASPRINTF''@,1,g' \
> > -e 's,@''HAVE_SNPRINTF''@,1,g' \
> > -e 's,@''HAVE_WPRINTF''@,0,g' \
> > < ../../intl/libgnuintl.h.in \
> > | if test 'no' = yes; then \
> > sed -e 's/extern \([^()]*\);/extern __declspec (dllimport)
> > \1;/'; \
> > else \
> > cat; \
> > fi \
> > | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
> > -e "/#define _LIBINTL_H/r ../../intl/export.h" \
> > | sed -e 's,@''HAVE_VISIBILITY''@,1,g' \
> > > libgnuintl.h
> > gcc -c
> > -DLOCALEDIR=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/share/locale\"
> > \
> > -DLOCALE_ALIAS_PATH=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/share/locale\"
> > \
> > -DLIBDIR=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/lib\"
> > -DBUILDING_LIBINTL \
> > -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY \
> > -DINSTALLDIR=\"/old-home/gnu/proj/sharutils-bld/_bld/sharutils-4.8/_inst/lib\"
> > \
> > -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix \
> > -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H \
> > -I. -I../../intl -I.. -g -O2 -fvisibility=hidden ../../intl/bindtextdom.c
> ^^^^^^^^^^ -I../../lib ?????
> > In file included from ../../intl/bindtextdom.c:20:
> > ../config.h:1469:21: error: xstrtol.h: No such file or directory
> > make[3]: *** [bindtextdom.o] Error 1
The reason is that you have some #includes at the bottom of your config.h.
gnulib supports this, but you have to arrange for the files to be found.
Option 1: Remove the #includes from config.h and use another .h file instead.
Option 2: Remove the intl directory. Use gettextize without the --intl option.
Mention gettext as a dependency in your package's DEPENDENCIES file.
I would recommend both option 1 and 2.
Bruno
- error: redefinition of 'struct option', Bruce Korb, 2010/02/17
- Re: error: redefinition of 'struct option', Eric Blake, 2010/02/17
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error: redefinition of 'struct option', Bruno Haible, 2010/02/18
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error: redefinition of 'struct option', Bruno Haible, 2010/02/18
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- new gnulib-tool option --find, Bruno Haible, 2010/02/19
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error after adding #includes to config.h,
Bruno Haible <=
- Re: error after adding #includes to config.h, Bruce Korb, 2010/02/18
- Re: sharutils configuration, Bruno Haible, 2010/02/19
- Re: sharutils configuration, Bruce Korb, 2010/02/19