ports/89094: xorg-clients-6.8.2_1 compile fail with nvidia-driver-1.0.7676_1

Nicolas Blais nb_root at videotron.ca
Tue Nov 15 23:40:27 UTC 2005


>Number:         89094
>Category:       ports
>Synopsis:       xorg-clients-6.8.2_1 compile fail with nvidia-driver-1.0.7676_1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 23:40:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Nicolas Blais
>Release:        6.0-STABLE
>Organization:
>Environment:
FreeBSD clk02 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Nov 12 15:01:57 EST 2005     root at clk02:/usr/obj/usr/src/sys/CLK02  i386

>Description:
If you have nvidia-driver-1.0.7676_1 and you try updating xorg-clients-6.8.2 to xorg-clients-6.8.2_1, you will get an error making 'xdriinfo'.

cc -o xdriinfo -O2 -fno-strict-aliasing -pipe -march=athlon-mp -ansi -pedantic -Wno-system-headers -Dasm=__asm       -Wall -Wpointer-arith -Wundef     -L/usr/ports/x11/xorg-clients/work/xc/exports/lib   xdriinfo.o -lGL -lXext -lX11 -L/usr/X11R6/lib -pthread    -Wl,-rpath,/usr/X11R6/lib -Wl,-rpath-link,/usr/ports/x11/xorg-clients/work/xc/exports/lib
xdriinfo.o(.text+0x5c): In function `main':
: undefined reference to `glXGetProcAddress'
xdriinfo.o(.text+0x6d): In function `main':
: undefined reference to `glXGetProcAddress'
*** Error code 1

>How-To-Repeat:

>Fix:
http://lists.freebsd.org/pipermail/freebsd-i386/2005-January/002040.html.

*** /usr/ports/x11/xorg-clients/work/xc/programs/xdriinfo/xdriinfo.old  Fri Jan 14 13:47:30 2005
--- /usr/ports/x11/xorg-clients/work/xc/programs/xdriinfo/xdriinfo.c    Fri Jan 14 13:48:42 2005
***************
*** 57,64 ****
      char *funcArg = NULL;
      char *dpyName = NULL;
  
!     GetScreenDriver = (glXGetScreenDriver_t *)glXGetProcAddress ("glXGetScreenDriver");
!     GetDriverConfig = (glXGetDriverConfig_t *)glXGetProcAddress ("glXGetDriverConfig");
      if (!GetScreenDriver || !GetDriverConfig) {
        fprintf (stderr, "libGL is too old.\n");
        return 1;
--- 57,64 ----
      char *funcArg = NULL;
      char *dpyName = NULL;
  
!     GetScreenDriver = (glXGetScreenDriver_t *)glXGetProcAddressARB ("glXGetScreenDriver");
!     GetDriverConfig = (glXGetDriverConfig_t *)glXGetProcAddressARB ("glXGetDriverConfig");
      if (!GetScreenDriver || !GetDriverConfig) {
        fprintf (stderr, "libGL is too old.\n");
        return 1;

PS, I am not the author, but the patch is tested and works.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list