From owner-freebsd-questions@FreeBSD.ORG Fri Oct 28 07:35:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F244416A41F for ; Fri, 28 Oct 2005 07:35:01 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from web36210.mail.mud.yahoo.com (web36210.mail.mud.yahoo.com [209.191.68.236]) by mx1.FreeBSD.org (Postfix) with SMTP id 7C1CF43D46 for ; Fri, 28 Oct 2005 07:35:01 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 35406 invoked by uid 60001); 28 Oct 2005 07:35:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=n/omNyR/iWMsf/ro6VZtN1s7X1qerQzid9mbC4Qea4ha5mHkOvghIeusPWWbIbBG98iJQafj8axXrkrBVAZaQFkBiuNwAE/A9mWOXOtk1PzAjGI/UMVFhmMXJeJKAl7NReRrnnugGRSIAuQrdTsRPcTmM5PXiU1UGYCZVdKd5yk= ; Message-ID: <20051028073500.35399.qmail@web36210.mail.mud.yahoo.com> Received: from [147.46.44.181] by web36210.mail.mud.yahoo.com via HTTP; Fri, 28 Oct 2005 00:35:00 PDT Date: Fri, 28 Oct 2005 00:35:00 -0700 (PDT) From: Rob To: Igor Robul , FreeBSD questions In-Reply-To: <4361C4C3.1080806@speechpro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: math/grace port: "libXcursor.so.1.0" not found ?? [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 07:35:02 -0000 --- Igor Robul wrote: > Rob wrote: > > >--- Igor Robul 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