[PATCH 1/5] Only call dlerror() when dlsym() fails.
tk at giga.or.at
Wed Nov 7 13:34:32 CET 2012
On Tue, Nov 06, 2012 at 08:31:29AM +0100, Werner Koch wrote:
> On Mon, 5 Nov 2012 17:26, tk at giga.or.at said:
> > What should the configure test check? The dlerror() function exists,
> > just its return value is undefined in case there was no error with
> > dlsym().
> Provide a working dlerror function. That may require to alos wrap
a few times, and I don't see it defining what dlerror() returns if it
was never called before and no error by dynamic linking occurred yet.
(NULL as return value is only specified if there was a previous
So since POSIX doesn't specify that dlerror() on NetBSD is behaving
incorrectly and the patch is trivial, I ask you to use the patch
instead of adding quite a bit of overhead in configury.
More information about the Gnupg-devel