From owner-freebsd-x11@FreeBSD.ORG Mon Feb 28 22:01:32 2011 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3238E106566B for ; Mon, 28 Feb 2011 22:01:32 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id CFED58FC14 for ; Mon, 28 Feb 2011 22:01:31 +0000 (UTC) Received: by qwj8 with SMTP id 8so3476599qwj.13 for ; Mon, 28 Feb 2011 14:01:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=R+r/Nwz+w8+FB/pdDUqDd043AeyTIHVsjWmawXuKkvo=; b=Xw6V+ludLj8tX09m6ho3VBUqEOxuSM6GYE/ynG63CxOmChYtfPu8I3t6inCFsOd+La 4qKbRjB+AnkFmV7ANsvqIo08+zqneT03LvVMK6sE59Oib+94y+CRuOOcVf4UyIbsyFRM USsdN9w4q6vCF+/OoYAU29t0TRio2j0d8kdYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=LzDzlU7BtSwz7+Mx3h/QS6/8eSHyGcfa4nVv+lFJlfrLCVrGWJEQ8ysy3jBYkvvt6u 7ghaRZ2/Mgx4rRSyk1/NRXYubOFKG+syyB152KP1uhF1H9gHpEc2Y8CMtGZxLk8XvSHu 1zX5iifwl/EpunAW6DSWMGgcqRhy74wA8FYUg= Received: by 10.224.80.208 with SMTP id u16mr5061882qak.196.1298928708281; Mon, 28 Feb 2011 13:31:48 -0800 (PST) Received: from compaq.yuetime (c-98-228-191-105.hsd1.il.comcast.net [98.228.191.105]) by mx.google.com with ESMTPS id g28sm3471041qck.25.2011.02.28.13.31.45 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 13:31:47 -0800 (PST) Date: Mon, 28 Feb 2011 15:31:41 -0600 From: Zhihao Yuan To: freebsd-x11@freebsd.org Message-ID: <20110228213141.GA32961@compaq.yuetime> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nVMJ2NtxeReIH9PS" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Building problem with dri 7.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: Mon, 28 Feb 2011 22:01:32 -0000 --nVMJ2NtxeReIH9PS Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline --SUOF0GtieIMvvwua Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I posted this on freebsd-multimedia before. I guess I was in a wrong place. I have observed the building issue for a long time. ~> uname -a FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Feb 24 18:11:55 CST 2011 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 My card is Ati Mobile Radeon X1600. I built and installed libdrm 2.4.17, libGL, libGLU, libglut 7.6.1, so far so good. When I want to sudo make WITHOUT_NOUVEAU=3D1 for a dri 7.6.1, I got some error message says "can't find radeon_cs_int.h", which means Mesa need the definition of struct radeon_cs_int (and radeon_bo_int, actually). So I extract these definitions (included in the attachment) and put them in the correct places, so that the package is successfully built. But, when I test it, I got the following error: ~> env LIBGL_DEBUG=3Dverbose glxinfo | grep rendering libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0) libGL: OpenDriver: trying /usr/local/lib/dri/r300_dri.so libGL error: dlopen /usr/local/lib/dri/r300_dri.so failed (/usr/local/lib/dri/r300_dri.so: Undefined symbol "radeon_cs_write_table") libGL error: unable to load driver: r300_dri.so libGL: OpenDriver: trying /usr/local/lib/dri/swrast_dri.so direct rendering: Yes I tried to disable the 'inline' for the related functions, but I can't got it work. DRI 7.4.4.2 works fine with other 7.6.1 libs, but 7.4 is relatively old. --=20 Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. -------------------------------------------------- let focus =3D 'computing' in here: http://let-in.blogspot.com (let (me Program!)): http://lichray.blogspot.com --SUOF0GtieIMvvwua-- --nVMJ2NtxeReIH9PS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJNbBQ8AAoJEDM1qsGtFE5ZaTIIAJ79aGbeDGnokRVM1hhlpgs8 QVk7UghaHiS+KPsFWpz0JsvBejrLFbfqa9Yz1pVJc8rnDcnlNcFQIWZzGQKowVpu iJfmr1Y5AKagL1RlVtlAPcXSj8LQgSqHbsb/uRVkd7EfLU0I8XQknqY6FqLSXZux Umm2TnZBxSYATG1gOySAFpEIXNqUa6bAIbaKwa4jHSfaevXop7Y/07Ue1H+phxdu 3//3/lOOY5A7vmN2d4+RLj+JacLfE/Z2gwbSLp6pAgmY4W/oC2HGiRHzjy8JNsFy jKhOALyUM/s9h30On5X/LVumNAysdw8vsr5PVmas7VU1GdlHb6wqOD8saLgQ9KA= =2Aqy -----END PGP SIGNATURE----- --nVMJ2NtxeReIH9PS--