Subject: Re: dlerror returns a string for even when dlsym succeeds?
To: Scott Presnell <srp@zgi.com>
From: Robert Elz <kre@munnari.OZ.AU>
List: port-i386
Date: 03/21/2000 13:56:17
    Date:        Mon, 20 Mar 2000 08:42:44 -0800
    From:        Scott Presnell <srp@zgi.com>
    Message-ID:  <38D65504.9DEE6F60@zgi.com>

  | csu/common_aout/common.c:
  | 
  | char *
  | dlerror()
  | {
  |         int     error;
  | 
  |         if ((*ld_entry) == NULL ||
  |             (*(*ld_entry)->dlctl)(NULL, DL_GETERRNO, &error) == -1)
  |                 return "Service unavailable";
  | 
  |         return ((char *)(error == 0 ? NULL : strerror(error)));
  | }

Is no-one compiling that with -Wall ??   Even I can see that "error"
there is (sometimes) used without being set ?

Try changing
	int error;
to
	int error = 0;

and see if that helps at all (and then send in a PR if it does).

kre

ps: I don't really thing this is likely to be a port-i386 issue.