Bug 5146

Summary: xdriinfo build breaks with nvidia driver installed
Product: xorg Reporter: Eric Anholt <eric>
Component: App/otherAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
change xdriinfo to use more-portable glXGetProcAddressARB ajax: 6.9/7.0+

Description Eric Anholt 2005-11-24 20:04:47 UTC
The xdriinfo application uses glXGetProcAddress, a newly-exposed function in GLX
1.4, which is itself not official yet.  glXGetProcAddressARB does the same thing
for us, while allowing xdriinfo to build if an nvidia libGL is in place instead
of Mesa libGL.

This happens currently on FreeBSD where the build has been modularized into
libs, apps, servers, etc., and users can upgrade the apps while their libs
(including libGL) remain untouched.  I would also expect it with modular where
distros depend on a slew of apps in a metapackage, without knowledge that this
one app is not applicable if you happen to have nv libGL.

The attached patch changes xdriinfo to use glXGetProcAddressARB.
Comment 1 Eric Anholt 2005-11-24 20:05:26 UTC
Created attachment 3892 [details] [review]
change xdriinfo to use more-portable glXGetProcAddressARB
Comment 2 Adam Jackson 2005-11-29 11:36:19 UTC
Comment on attachment 3892 [details] [review]
change xdriinfo to use more-portable glXGetProcAddressARB

+1, please commit.
Comment 3 Eric Anholt 2005-11-30 12:13:58 UTC
Committed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.