From owner-freebsd-multimedia@FreeBSD.ORG Sun Feb 27 20:52:13 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 22546106566B for ; Sun, 27 Feb 2011 20:52:13 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id ADB608FC13 for ; Sun, 27 Feb 2011 20:52:12 +0000 (UTC) Received: by wwb31 with SMTP id 31so4253430wwb.31 for ; Sun, 27 Feb 2011 12:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=rRvuoBDEg/WrSih0gYv1scW9zz3wBH7Lr8Yk8og4dnw=; b=P8WSvuZt/DzKO0ALXCLwdK4+Rc0ju6VBJ7IR2CW7EOL7vWdSqOxlGauL97kdxAiIjC LM8aEt3grdzH9ns6pH+o8YRS9zYKdIvRAzTMYOuDnQnUAMyNIqPy22T8gIQTMcApCnrb e0dxA6Zl4dEJSOK9HhSCrXMG8J1qVB+OhWTTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pzayjm10F2F0XPCOOcrtl2zLQj0RnWcnrIKDjx1352x/oLFSdx2UJFe+hISsac0+C4 nM1NYQpXyava5S8c4PoBKCZwyW+0YkZ7L0SKiB2Bem+G4n4lilg1OFj+gFBTwy4UhTpN t+AcNCCj1h4y/xnqAggghRua5GupFHjvVa3kg= MIME-Version: 1.0 Received: by 10.227.32.131 with SMTP id c3mr4167346wbd.215.1298838111961; Sun, 27 Feb 2011 12:21:51 -0800 (PST) Received: by 10.227.155.133 with HTTP; Sun, 27 Feb 2011 12:21:51 -0800 (PST) Date: Sun, 27 Feb 2011 14:21:51 -0600 Message-ID: From: Zhihao Yuan To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: 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 20:52:13 -0000 I have observed this 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=1 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=verbose 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. -- Zhihao Yuan The best way to predict the future is to invent it.