math/grace port: "libXcursor.so.1.0" not found ?? [SOLVED]
Rob
spamrefuse at yahoo.com
Fri Oct 28 00:35:02 PDT 2005
--- Igor Robul <igorr at speechpro.com> wrote:
> Rob wrote:
>
> >--- Igor Robul <igorr at speechpro.com> wrote:
> >
> >
> >First:
> >NULL return from dlsym() does not always imply an
> >error. dlsym() can return NULL because it has an
> >empty list, but this does not set the error
> >indicator of dlerror(), because it is not an error.
> >However, if an error occurs, dlsym() has NULL as
> >a return (that's probably most sensible return).
> >
> >
> From manual page:
>
> The dlsym() function returns a null pointer if the
> symbol cannot be
> found, and sets an error condition
> which may be queried with dlerror().
This is a matter of symantic and logic.
I /can/ read this as follows:
If the symbol cannot be found, then dlsym() returns
a null pointer *AND* sets the error condition.
However, dlsym() can also return the null pointer,
*WITHOUT* setting the error condition. The latter
case seems to be better specified in the Linux
manpages of dlsym(). Hence the conflict between
FreeBSD and Linux/Grace, I guess.
Rob.
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the freebsd-questions
mailing list