bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib is not running for me


From: Bruno Haible
Subject: Re: gnulib is not running for me
Date: Wed, 2 Jun 2010 02:14:12 +0200
User-agent: KMail/1.9.9

Hi Markus,

> I have uploaded it to http://88.80.221.159/tmp/gv.git.tar.bz2 .
> 
> Of cause I haven't committed the non-working import - you'll find it as 
> an uncommitted change.

Thanks, with this I could reproduce it. Took me a while to see the problem:
The gnulib .c files (getopt.c in this case) do a #include <config.h> and
expect this config.h to contain the definitions of _GNU_SOURCE and HAVE_*
and what else, determined by configure. But in your sources, this file
is called <ac_config.h>, and <config.h> contains completely different stuff.

Some of your source files include <ac_config.h>, some don't (such as Aaa.c).
Some of your source files include <config.h>, some don't.

If I were you, I would merge these two files into a single one.

Note that the definitions of _GNU_SOURCE, __EXTENSIONS__ etc. MUST occur
BEFORE any include of any system include file (such as <sys/types.h>).
One way to achieve this is by use of AH_VERBATIM or AH_BOTTOM.

Hope this helps.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]