portsupgrade and XFree86-4.4.0

Peter Weiss, Sun Microsystems, Germany Peter.Weiss at Sun.com
Fri Apr 16 05:27:57 PDT 2004

>>>>> "Anthony" == Anthony Wood <adwood at earthlink.net> writes:

Anthony> On Thu, Apr 15, 2004 at 09:48:33AM +0200, Sascha Holzleiter wrote:

Anthony> [...]

Anthony> On a related not, when compiling, I get:

Anthony>  making all in lib/GL/GL...  rm -f libGL.a ar clq libGL.a
Anthony> ../../../lib/GL/glx/unshared/?*.o ../../../lib/GL/glx/glapi_x86.o
Anthony> ../../../lib/GL/dri/unshared/XF86dri.o
Anthony> ../../../lib/GL/dri/unshared/dri_glx.o
Anthony> ../../../lib/GL/dri/drm/unshared/?*.o /usr/libexec/elf/ar:
Anthony> ../../../lib/GL/dri/drm/unshared/?*.o: No such file or directory ***
Anthony> Error code 1

Anthony> Peter, did you have to do anything to overcome this?

Hello Anthony,

Nope, the compilation went okay without any problems (I used the original
4.4.0 sources from xfree.org). The only thing I had to do was to fix the
Makefile in xc/lib/GL/GL/Makefile:

:2$ grep thread Makefile  * e
      THREADS_LIBS = -lpthread
   THREADS_CXXLIBS = -lpthread

(It used to be set to -lc_r)

Now the dependencies are fixed:

:2$ ldd /usr/X11R6/lib/libGL.so
        libpthread.so.1 => /usr/lib/libpthread.so.1 (0x281b3000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x281d6000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x281db000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x281e8000)
        libc.so.5 => /lib/libc.so.5 (0x28075000)

I'd suggest to ensure that none of the libs in /usr/{local,X11R6}/lib has any
dependency on libc_r (check either with ldd(1) or objdump(1)).

See my other posting in this thread how I solved this.  More details on


Peter Weiss               / Peter.Weiss at germany.sun.com
Sun Microsystems GmbH     / Sonnenallee 1, D-85551 Kirchheim-Heimstetten
(+49 89) 46008 2947       / mobil 0177/ 60 40 121

More information about the freebsd-current mailing list