From owner-freebsd-questions@FreeBSD.ORG Thu Oct 27 08:45:56 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 C9E3C16A41F for ; Thu, 27 Oct 2005 08:45:56 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from speechpro.com (speech-tech-2.ip.PeterStar.net [81.3.190.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FC1543D45 for ; Thu, 27 Oct 2005 08:45:56 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from sysadm.stc ([192.168.2.26]) by s1.stc with esmtp (Exim 4.53 (FreeBSD)) id 1EV3OU-000NSR-NK for freebsd-questions@freebsd.org; Thu, 27 Oct 2005 12:45:54 +0400 Message-ID: <436093B4.2060201@speechpro.com> Date: Thu, 27 Oct 2005 12:45:40 +0400 From: Igor Robul User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051018) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20051027080228.60100.qmail@web36212.mail.mud.yahoo.com> <43608D9F.9020207@speechpro.com> <43608F45.2080600@speechpro.com> <43609132.6020202@speechpro.com> In-Reply-To: <43609132.6020202@speechpro.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archived: Yes 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: Thu, 27 Oct 2005 08:45:56 -0000 Igor Robul wrote: > Sorry, > I have reread manual page for dlerror() and found that it need clear > error state after call, but > dlerror() in src/libc/gen/dlfcn.c does not do this: > > #pragma weak dlerror > const char * > dlerror(void) > { > return sorry; > } > > So error is in FreeBSD libc, if I understand this correctly. I'll do PR. Bad day for me :-(. Above code is from src/libc/gen/dlfcn.c, but real dlerror for dynamicaly linked executables is in rtdl.c, and it works as described in manual page (clears error status). So problem is somewhere else. Sorry for false info.