[vbox-dev] FreeBSD VirtualBox patch

Olivier Fauchon olivier at aixmarseille.com
Wed Sep 19 09:08:43 PDT 2007


> > On my FreeBSD configure attempts, xalan and xerces are not found
> > properly without patching configure with /usr/local/include and
> > /usr/local/lib.  I would assume that things like libIDL, SDL and Qt
> > may also have that problem since they are in the /usr/local hierarchy

Here is what I get:

[olivier at crew ~/tmp/vbox.test1]$ ./configure 
Checking for environment: Determined build machine: freebsd.x86, target
machine: freebsd.x86, OK.
Checking for kBuild: found, OK.
Checking for gcc: found version 3.4.6, OK.
Checking for as86: found version 0.16.17, OK.
Checking for bcc: found version 0.16.17, OK.
Checking for iasl: found version 20041119, OK.
Checking for xslt: found, OK.
Checking for pthread: found, OK.
Checking for xalan: found version 1.10.0, OK.
Checking for xerces: found version 2.7.0, OK.
Checking for libIDL: found version 0.8.8, OK.
Checking for zlib: found version 1.2.3, OK.
Checking for SDL: found version 1.2.11, OK.
Checking for X libraries: 
  Xlibs not found at -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXext -lX11 or
Xlibs headers not found


The above patch will tell you how to pass the other library detection
(X11/XCursor...) 

Index: configure
===================================================================
--- configure   (révision 4903)
+++ configure   (copie de travail)
@@ -53,7 +53,8 @@
 LIBXERCES_DIR="/usr/local/lib"
 LIBCRYPTO="-lcrypto"
 LIBPTHREAD="-lpthread"
-LIBX11="-L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXext -lX11"
+LIBX11="-L/usr/local/lib -L/usr/X11R6/lib -L/usr/X11R6/lib64 -lXext
-lX11"
+INCX11="/usr/local/include"
 LIBXCURSOR="-lXcursor"
 INCZ=""
 LIBZ="-lz"
@@ -909,7 +910,8 @@
   return 0;
 }
 EOF
-  if test_compile "$LIBX11 $LIBXCURSOR" Xcursor Xcursor; then
+  [ -n "$INCX11" ] && I_INCX11=`prefix_I "$INCX11"`
+  if test_compile "$LIBX11 $LIBXCURSOR $I_INCX11" Xcursor Xcursor; then
     log_success "found"
     cnf_append "LIB_XCURSOR" "`strip_l "$LIBXCURSOR"`"
   fi
@@ -939,7 +941,8 @@
   XDestroyWindow(dpy, win);
 }
 EOF
-  if test_compile "$LIBX11" Xlibs Xlibs; then
+  [ -n "$INCX11" ] && I_INCX11=`prefix_I "$INCX11"` 
+  if test_compile "$LIBX11 $I_INCX11" Xlibs Xlibs; then
     log_success "found"
   fi
 }


Thx 




> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev





More information about the vbox-dev mailing list