bug-gnulib
[Top][All Lists]
Advanced

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

Re: stdint.m4: HAVE_SYS_INTTYPES_H set to "" breaks build


From: Eric Blake
Subject: Re: stdint.m4: HAVE_SYS_INTTYPES_H set to "" breaks build
Date: Fri, 19 Nov 2010 16:36:40 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6

On 11/19/2010 04:15 PM, Mike Frysinger wrote:
> On Friday, November 19, 2010 11:46:23 Paul Eggert wrote:
>> On 11/18/2010 10:48 PM, Mike Frysinger wrote:
>>> this is because m4/stdint.m4 only defines HAVE_SYS_INTTYPES_H when
>>> gl_cv_header_working_stdint_h is "no" and i my case, it's yes.
>>
>> Sorry, I'm lost.  If gl_cv_header_working_stdint_h is "yes"
>> then why is gnulib stdint.h being used at all?
>>
>> Is this a clean build, or was there a stdint.h left over from
>> a previous build?
> 
> sort of a clean build.  process is:
> ./configure --host=<some system which needs lib/stdint.h>
> make
> make clean
> ./configure --host=<some system which doesnt need lib/stdint.h>
> make
> 
> doing a `make distclean` instead makes things work, but doesnt seem like it 
> should be necessary over `make clean`

It's a known issue that we leave replacement headers around that don't
get cleaned up except on make distclean, even if something changes that
no longer needs the header to be generated.  If you want to quickly test
multiple systems across a shared tree, I'd recommend VPATH builds rather
than 'make clean'.

Meanwhile, for headers where we always supply the replacement, in order
to support GNULIB_POSIXCHECK, it is not an issue.

Maybe this argues that we should improve our stdint.h to work with
GNULIB_POSIXCHECK, and always be a valid replacement file even when
there's nothing to fix?  But what does <stdint.h> provide that
GNULIB_POSIXCHECK would be able to warn about?

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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