bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] xvasprintf and ENOMEM


From: Bruno Haible
Subject: Re: [bug-gnulib] xvasprintf and ENOMEM
Date: Sat, 22 Jul 2006 19:27:41 +0200
User-agent: KMail/1.9.1

Eric Blake wrote:
> I'm summarizing a bug report sent to me from Nelson's off-list testing of
> m4 1.4.5:
> 
> checking build system type... hppa2.0w-hp-hpux11.11
> checking host system type... hppa2.0w-hp-hpux11.11
> checking for gcc... gcc -std=c99
> 
> gcc -std=c99 -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c xvasprintf.c
> xvasprintf.c: In function `xvasprintf':
> xvasprintf.c:112: error: `ENOMEM' undeclared (first use in this function)
> xvasprintf.c:112: error: (Each undeclared identifier is reported only once
> xvasprintf.c:112: error: for each function it appears in.)
> make[3]: *** [xvasprintf.o] Error 1
> 
> Is this worth fixing

I would say, no. The user should set CC to "gcc -std=gnu99", not
"gcc -std=c99", when he wants to use gnulib. gnulib uses a lot of POSIX
functions, which are all supposed to be undeclared by the header files
if you use "gcc -std=c99". ENOMEM is just one of them.

It's like on HP-UX, you cannot go far with "cc -Aa". You need "cc -Ae".

Bruno




reply via email to

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