bug-libtool
[Top][All Lists]
Advanced

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

Re: problem with lt_dlerror


From: Eric Bleher
Subject: Re: problem with lt_dlerror
Date: Fri, 17 May 2002 11:03:09 +0200 (CEST)

I had also the same pb with the output of
lt_dlerror(). I'm wainting for an answer since 2
weeks...
Good Luck !

 --- "Mr. Roman Putanowicz"
<address@hidden> a écrit : > Hi,
> 
> I have problems with lt_dlerror. 
> According to the documentation (for version 1.4.2,
> 10 September 2001)
> the function lt_dlerror: "Return NULL if no errors
> have occurred since 
> initialization or since it was last called).
> 
> I am reading the code of lt_dlerror and cannot see
> how the function
> can ever return NULL ?:
> (form ltdl.c for libtool version 1.4.2)
> 
> const char *
> lt_dlerror ()
> {
>   const char *error;
> 
>   LT_DLMUTEX_GETERROR (error);
>   LT_DLMUTEX_SETERROR (0);
> 
>   return error ? error : LT_DLSTRERROR (UNKNOWN);
> }
> 
> The same code is in version 1.4d
> 
> I "discovered" the above when trying to run the
> examples form the book
> "Gnu Autconf, Automake and Libtool" by G.V. Vaughan
> et al.
> They proposed the following idiom (Chapter 17, point
> 2.3 "Module Loader",
> p.213):
> 
>       run = (entrypoint *) lt_dlsym (module, "run");
> 
>       /* In principle, run might legitimately be
> NULL, so
>          I don't use `run == NULL' as an error
> indicator
>          in general. */
> 
>     << HERE is the check for output of lt_dlerror >>
> 
> 
> I would be grateful for suggestion how to fix
> lt_dlerror (if it is a bug) or
> some relevant
> error checking idiom.
> 
> Cheers
> Romek
> 
> PS. Pleas respond to address@hidden as
> well, because I am not
> subscribed to the list.
> 
> _______________________________________________
> Bug-libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-libtool 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



reply via email to

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