Re: Incorrect usage of dlerror() in src/syncengine.c

Sam Lawrance <boris-IiXZBd28tTw0n/[email protected]> Sat, 11 Sep 2004 22:50:29 +1000
Newsgroups gmane.comp.gnome.apps.multisync.devel
Message-ID <[email protected]>
On Sat, 2004-09-11 at 17:41, Armin Bauer wrote:
> But using dlerror to detect an error is also correct. From the dlsym
> manpage:
> 
> 		  char *error;
> 
>                   dlerror();    /* Clear any existing error */
>                   *(void **) (&cosine) = dlsym(handle, "cos");
>                   if ((error = dlerror()) != NULL)  {
>                       fprintf (stderr, "%s\n", error);
>                       exit(1);
>                   }

Yep, fair enough. I'm running FreeBSD, so we're probably looking at
different manpages.

FYI I'll turn over a patch to the FreeBSD port maintainer adding in a
call to dlerror().

Cheers everyone, keep up the good work
-Sam



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php