From owner-freebsd-x11@FreeBSD.ORG Tue Feb 22 13:21:14 2005 Return-Path: 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 D771816A4CF for ; Tue, 22 Feb 2005 13:21:14 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9D85243D5A for ; Tue, 22 Feb 2005 13:21:13 +0000 (GMT) (envelope-from fxkuehl@gmx.de) Received: (qmail invoked by alias); 22 Feb 2005 13:21:11 -0000 Received: from dialin-212-144-010-008.arcor-ip.net (EHLO trabant) (212.144.10.8) by mail.gmx.net (mp003) with SMTP; 22 Feb 2005 14:21:11 +0100 X-Authenticated: #7318305 Received: from trabant ([127.0.0.1] ident=felix) by trabant with esmtp (Exim 3.36 #1 (Debian)) id 1D3a0u-0000vu-00; Tue, 22 Feb 2005 14:23:44 +0100 From: Felix =?ISO-8859-1?Q?K=FChling?= To: Mikhail Teterin In-Reply-To: <200502220508.j1M58MAN094098@corbulon.video-collage.com> References: <200502220508.j1M58MAN094098@corbulon.video-collage.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Tue, 22 Feb 2005 14:23:42 +0100 Message-Id: <1109078622.3320.2.camel@trabant> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: quoted-printable X-Y-GMX-Trusted: 0 cc: freebsd-x11@freebsd.org cc: freebsd-gnats-submit@freebsd.org cc: acardenas@bsdperu.org Subject: Re: ports/76257: nvidia_driver breaks xorg-clients build X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 13:21:15 -0000 Am Dienstag, den 22.02.2005, 00:08 -0500 schrieb Mikhail Teterin: > > Could you try if the attached patch against xdriinfo.c works with > > NVidia's GLX? If it does, then I'll commit this to Xorg CVS. >=20 > Using glXGetProcAddressARB instead of glXGetProcAddress allows the > utility to build, but it still does not work -- the calls return NULL at > run-time. >=20 > If your program only works with Xorg's GLX, than, indeed, the error > message may need to become more informative. It was already changed in my patch. Do you have any better suggestions? >=20 > If, on the other hand, using the glXGetProcAddressARB works when linked > with Xorg's GLX -- why bother with the #ifdefs at all? Just use the old > call for the time being. :-) As I mentioned in an earlier mail, the GLX headers from Xorg don't seem to define the ARB function any more. >=20 > -mi >=20 > > --- ./xdriinfo.c.~1.1.3.1.~ 2004-06-16 11:27:39.000000000 +0200 > > +++ ./xdriinfo.c 2005-02-21 22:50:37.000000000 +0100 > > @@ -28,6 +28,14 @@ > > #include > > #include > > =20 > > +#ifdef GLX_VERSION_1_4 > > +# define GLX_GET_PROC_ADDRESS(name) \ > > + glXGetProcAddress((const GLubyte *)(name)) > > +#else > > +# define GLX_GET_PROC_ADDRESS(name) \ > > + glXGetProcAddressARB((const GLubyte *)(name)) > > +#endif > > + > > typedef const char * glXGetScreenDriver_t (Display *dpy, int scrNum); > > typedef const char * glXGetDriverConfig_t (const char *driverName); > > =20 > > @@ -57,10 +65,13 @@ >=20 --=20 | Felix K=FChling http://fxk.de.vu | | PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3 B152 151C 5CC1 D888 E595 |