bug-gnulib
[Top][All Lists]
Advanced

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

Re: vsnprintf unnecessarily configures and builds vasnprintf.o etc.


From: Eric Blake
Subject: Re: vsnprintf unnecessarily configures and builds vasnprintf.o etc.
Date: Fri, 08 Apr 2011 11:37:57 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9

On 04/07/2011 04:02 AM, Bruno Haible wrote:
> Hi Paul,
> 
>> the gnulib code added quite a bit of of unnecessary work
>> to configure and build vasnprintf.o, printf-parse.o, printf-args.o,
>> and asnprintf.o. None of these object files were needed: they were put
>> into libgnu.a but were not used by anybody.
> 
> Additionally, when a shared library is built from libgnu.a, vasnprintf.o
> gets included and installed in public locations although it's not needed.
> 
>> If an application uses vsnprintf, but does not use vasnprintf
>> directly, then there's no need to configure and build those .o files
>> on hosts that have a working vsnprintf. I'd like to fix gnulib to
>> avoid this work.
> 
> Yes, this is a long-standing deficiency of gnulib.

Another case I just hit:

pipe2 requires the nonblocking module for proper testing.  But the
nonblocking module currently drags in socket dependencies that must be
reflected in pipe2-tests LDADD, even if sockets are not otherwise in use
(pipe2 certainly isn't using sockets, it's just that nonblocking is
useful for more than pipe2 and drags in extras).  It would be nice to
cut that dependency, but I'm not sure how.

-- 
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]