From owner-freebsd-x11@FreeBSD.ORG Fri Oct 28 07:50:06 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5CBB16A41F for ; Fri, 28 Oct 2005 07:50:06 +0000 (GMT) (envelope-from eta@lclark.edu) Received: from leguin.anholt.net (69-30-77-85.dq1sn.easystreet.com [69.30.77.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 330D943D45 for ; Fri, 28 Oct 2005 07:50:06 +0000 (GMT) (envelope-from eta@lclark.edu) Received: from leguin.anholt.net (localhost [127.0.0.1]) by leguin.anholt.net (8.13.4/8.13.1) with ESMTP id j9S7o57T003596; Fri, 28 Oct 2005 00:50:05 -0700 (PDT) (envelope-from eta@lclark.edu) Received: (from anholt@localhost) by leguin.anholt.net (8.13.4/8.13.1/Submit) id j9S7o4s2003323; Fri, 28 Oct 2005 00:50:04 -0700 (PDT) (envelope-from eta@lclark.edu) X-Authentication-Warning: leguin.anholt.net: anholt set sender to eta@lclark.edu using -f From: Eric Anholt To: Rob In-Reply-To: <20051028062553.73188.qmail@web36212.mail.mud.yahoo.com> References: <20051028062553.73188.qmail@web36212.mail.mud.yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HWYSL+X/Ewab77w0VMdu" Date: Fri, 28 Oct 2005 00:50:03 -0700 Message-Id: <1130485803.1034.89.camel@leguin> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Cc: freebsd-x11@freebsd.org Subject: Re: libXcursor.so.1.0.2 reference in libX11.so.6 ?? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2005 07:50:06 -0000 --=-HWYSL+X/Ewab77w0VMdu Content-Type: multipart/mixed; boundary="=-VL+vv1xsgFU/N+/4df+o" --=-VL+vv1xsgFU/N+/4df+o Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-10-27 at 23:25 -0700, Rob wrote: > Hi, >=20 > I'm mailing to this list, after a long discussion > on the FreeBSD-questions list: > http://lists.freebsd.org/pipermail/freebsd-questions/2005-October/102547.= html >=20 >=20 > Eventually, Kris Kennaway suggested that this > is partially a problem caused by the X11 library: > http://lists.freebsd.org/pipermail/freebsd-questions/2005-October/102678.= html >=20 > The problem in a nutshell: >=20 > Some X11 calls, e.g. XDisplayOpen(), set the error > indicator in dlerror(); the error says that a > shared object "libXcursor.so.1.0" is not found. >=20 > >From 'strings /usr/X11R6/lib/libX11.so.6', there > appears output "libXcursor.so.1.0.2". > Probably there is something wrong with the X11 > libraries and the linked objects in there. >=20 > Does anybody have clue on this isse? This appears to be a bug in the app. It is attempting to use dlerror to check if the previous dlsym() call failed, rather than checking if the dlsym returned NULL. libX11 is doing just fine, but a side effect of its eventually-successful dlopen()ing of libXcursor is that it will have caused a dlopen error, so dlerror() will be returning non-NULL for the next person that comes along. Attached is an untested patch. --=20 Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org --=-VL+vv1xsgFU/N+/4df+o Content-Disposition: attachment; filename=grace-dlerror.diff Content-Type: text/x-patch; name=grace-dlerror.diff; charset=ISO-8859-1 Content-Transfer-Encoding: base64 SW5kZXg6IE1ha2VmaWxlDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2hvbWUvbmN2cy9wb3J0cy9t YXRoL2dyYWNlL01ha2VmaWxlLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS40NA0KZGlmZiAtdSAt cjEuNDQgTWFrZWZpbGUNCi0tLSBNYWtlZmlsZQkxIE1hciAyMDA1IDE0OjQxOjQ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09IE5VTEwpIHsNCisrICAgICAgICBlcnJtc2coKGNoYXIgKikgZGxlcnJvcigpKTsN CisgICAgICAgICBkbGNsb3NlKGhhbmRsZSk7DQorICAgICAgICAgcmV0dXJuIFJFVFVSTl9GQUlM VVJFOw0KKyAgICAgfQ0K --=-VL+vv1xsgFU/N+/4df+o-- --=-HWYSL+X/Ewab77w0VMdu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDYdgrHUdvYGzw6vcRAnlNAJ97SKWIyan4Xd1hn4JTuuTeqkpvoACfTEQU I4/77cEVj17KeOIyz8cdODU= =rPL9 -----END PGP SIGNATURE----- --=-HWYSL+X/Ewab77w0VMdu--