[SOLVED] Re: VirtualBox 4.1.16 on 10-CURRENT: /usr/X11R6/lib/libGL.so: undefined reference

Brandon Gooch jamesbrandongooch at gmail.com
Tue Jun 5 04:33:37 UTC 2012


On Sun, May 27, 2012 at 10:03 PM, Brandon Gooch
<jamesbrandongooch at gmail.com> wrote:
> I'm having issues compiling VirtualBox 4.1.16; here is the relevant
> snip from the configure.log file:
>
> $ cat /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/configure.log
> [SNIP]
> ***** Checking Mesa / GLU *****
> compiling the following source file:
> #include <cstdio>
> #include <X11/Xlib.h>
> #include <GL/glx.h>
> #include <GL/glu.h>
> extern "C" int main(void)
> {
>  Display *dpy;
>  int major, minor;
>
>  dpy = XOpenDisplay(NULL);
>  if (dpy)
>  {
>    Bool glx_version = glXQueryVersion(dpy, &major, &minor);
>    XCloseDisplay(dpy);
>    if (glx_version)
>    {
>      printf("found version %u.%u, OK.\n", major, minor);
>      return 0;
>    }
>  }
>  printf("found (inactive), OK.\n");
>  return 0;
> }
> using the following command line:
> c++  -g -O -Wall -o
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/.tmp_out
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/.tmp_src.cc
> "-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11
> -lGL -I/usr/local/include"
> /usr/X11R6/lib/libGL.so: undefined reference to `_nv017tls'
> /usr/X11R6/lib/libGL.so: undefined reference to `_nv014tls'
>
> I running:
>
> FreeBSD m6500.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r236044: Sat
> May 26 03:04:16 CDT 2012
> root at m6500.local:/usr/obj/usr/src/sys/DELL_M6500  amd64
>
> xorg-7.5.2
> xorg-server-1.7.7_5,1
> nvidia-driver-295.49

The error I was experiencing was my own fault -- I had previously
performed  an install of a version of the NVIDIA driver outside of
ports which placed files in /usr/X11R6/lib -- the error message should
have been obvious to me, but for whatever reason I overlooked it.
Simply moving /usr/X11R6/lib out of the way resolved the issue; sorry
for the noise!

-Brandon


More information about the freebsd-emulation mailing list