From owner-freebsd-multimedia@FreeBSD.ORG Sun Feb 27 21:29:11 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88DCA106566B for ; Sun, 27 Feb 2011 21:29:11 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2FF4E8FC14 for ; Sun, 27 Feb 2011 21:29:10 +0000 (UTC) Received: by qyk27 with SMTP id 27so2678903qyk.13 for ; Sun, 27 Feb 2011 13:29:10 -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:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=hezIZ/AA+TIcNl4j0pQhaYxPyBXOhPFwAKL7vPTf1WU=; b=lFrIKajSWJnhogvD2J3QwSsrvA+B/rUiJzzTlRu/s4YIHpLaLI8ve78/pDaedD+H6O t7/VyNbTdROezgjQN/kVh7L+AFq2fp1lzNeRVNM3dxtlG9c4w+3f8gzsuSp3f5PSk7P/ t5Ux8kmS3wkwf9i5gaq9Km9TRRM84NJ8jDoRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=k+R372cv7bpZMijOuRXNk+ng1VyGdAIrZFA3GBe3+hkrUvus1RJUaEHedOhcOQpohr AR1ZQ6QM67oScm2k0jpLBHjnc50BwJQIf2r76vKZ4dEX1s88y7+gpYLrBYaWouWqnOlv j7MIEY2m7j233QGYR91zW7uaXm52duUSS27x0= Received: by 10.224.11.134 with SMTP id t6mr3928188qat.303.1298842149858; Sun, 27 Feb 2011 13:29:09 -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 s10sm2601019qco.23.2011.02.27.13.29.07 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Feb 2011 13:29:09 -0800 (PST) Date: Sun, 27 Feb 2011 15:29:00 -0600 From: Zhihao Yuan To: freebsd-multimedia@freebsd.org Message-ID: <20110227212900.GA13161@compaq.yuetime> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pd0ReVV5GZGQvF3a" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Building problem with dri 7.6 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2011 21:29:11 -0000 --Pd0ReVV5GZGQvF3a Content-Type: multipart/mixed; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 14:21 Sun 27 Feb, Zhihao Yuan wrote: > I have observed this issue for a long time. >=20 > ~> 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. >=20 > 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: >=20 > ~> 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 >=20 > 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 > --=20 > Zhihao Yuan > The best way to predict the future is to invent it. Forgot the attachments. Although they are just parts of their=20 corresponding *_drm.h files. BTW, after I updated xorg to 7.5.1 (I build everything with latest gcc45=20 & binutils), I found that the latest xf86-video-ati (6.14.0) just crashes my X and the whole system again and again. However, thanks to my watchdog, for each time the system just restarts peacefully. After many test, I determined that among all ATI-related drivers, only this one has such a problem, no matter which compiler you use. Currently I'm using the port xf86-video-ati613.=20 --=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 --6c2NcOVqGQ03X4Wi-- --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJNasIcAAoJEDM1qsGtFE5ZlqkH/2VjoC36Xw2wvC7RME8k38y6 5GyUCcsgr29FhDqyOrE2LwZ/+ximyEOPfls2r5VMQ8NKTcRJlLOGWt4YUL9BfnYP 5vUvV2JKb8ur8jZ3/vz/ahhq5iFwfc9KNnCjxh+1tVpnxPDaD1jVQnIDesfSASR3 uyPdwV2d4x61YJaBTOVPliawF0fi3KVMInlEyTNAp2dBPba2iKnkfiRgLzkureBB nAJVRsxaiYyI3LAAnwLxdoMIT3+3GweATivWYXSOxf+X23q85XDpnhlCFhyshLuY 4dSuJNYR4PqXJO2l6uUjbOxdZCtwqUy7hwYkBD389HziNTPLT0+idL/ik0vHw4s= =6boS -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a--