bug-gnulib
[Top][All Lists]
Advanced

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

Re: strerror.m4 test fails incorrectly on solaris 8 and earlier [and bon


From: Simon Josefsson
Subject: Re: strerror.m4 test fails incorrectly on solaris 8 and earlier [and bonus gnutls bug]
Date: Tue, 28 Oct 2008 13:21:19 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Eric Blake <address@hidden> writes:

>> I found this while linking against gnutls, which uses the string
>> module, which then uses '#define strerror rpl_strerror' in its lgpl
>> library when strerror is not found.  That, in turn, leads to an
>> undefined rpl_strerror symbol in libgnutls.so.
>
> That might be a bug - if the gnulib strerror module is not in use, then
> the #define strerror rpl_strerror should not be in place.  But since it
> looks like gnutls has been subsequently fixed to avoid strerror
> altogether, I'm not sure if this still indicates any problems.

The problem is gone, but if anyone is interested, the reason the problem
occurred was that gnutls has several gnulib directories, one for LGPL
files that can be used by the library, and other gnulib directories for
GPL stuff.  The string.h module is added in the LGPL directory.  The
strerror module is added in the GPL directory.  So the strerror
re-declaration is visible even for the gnutls library that include
string.h.  For this reason, the gnutls library must be careful to avoid
ever calling strerror.  (Another reason is that strerror is
thread-unsafe so a library shouldn't use it anyway..)

/Simon




reply via email to

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