Date: Mon, 4 Jun 2012 23:33:36 -0500 From: Brandon Gooch <jamesbrandongooch@gmail.com> To: freebsd-emulation@freebsd.org Subject: [SOLVED] Re: VirtualBox 4.1.16 on 10-CURRENT: /usr/X11R6/lib/libGL.so: undefined reference Message-ID: <CALBk6yLoVYSqjOA1%2BtNJkBwaN==g0BjVcMTPNZTowN=DR-XcaQ@mail.gmail.com> In-Reply-To: <CALBk6y%2B0oCcdmnacDrV7uBdpA92ECQLR1widPws-q6Y7XDPFew@mail.gmail.com> References: <CALBk6y%2B0oCcdmnacDrV7uBdpA92ECQLR1widPws-q6Y7XDPFew@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 27, 2012 at 10:03 PM, Brandon Gooch
<jamesbrandongooch@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALBk6yLoVYSqjOA1%2BtNJkBwaN==g0BjVcMTPNZTowN=DR-XcaQ>
