mesa compile error

Joe Miller lpe540 at yahoo.com
Mon Mar 4 19:15:00 PST 2013


Hi,



I'm a bit of a newbie to mac ports. I just installed it today in an attempt to install mesa. However, I'm getting an error at compile time. I was hoping someone might help me with a workaround if one exists.

The command line I'm providing

sudo port -v install mesa +iglx


I'm getting an undefined symbol "_xcb_glx_client_info" when trying to compile the libGL.dylib library. See a snippet below. 

<snip>
mklib: Making Darwin static library:  libglx.a
ar: creating archive libglx.a
/usr/bin/ranlib: file: libglx.a(xfont.o) has no symbols
/usr/bin/ranlib: file: libglx.a(drisw_glx.o) has no symbols
/usr/bin/ranlib: file: libglx.a(dri_common.o) has no symbols
/usr/bin/ranlib: file: libglx.a(dri_glx.o) has no symbols
/usr/bin/ranlib: file: libglx.a(XF86dri.o) has no symbols
/usr/bin/ranlib: file: libglx.a(dri2_glx.o) has no symbols
/usr/bin/ranlib: file: libglx.a(dri2.o) has no symbols
/usr/bin/ranlib: file: libglx.a(applegl_glx.o) has no symbols
ranlib: file: libglx.a(xfont.o) has no symbols
ranlib: file: libglx.a(drisw_glx.o) has no symbols
ranlib: file: libglx.a(dri_common.o) has no symbols
ranlib: file: libglx.a(dri_glx.o) has no symbols
ranlib: file: libglx.a(XF86dri.o) has no symbols
ranlib: file: libglx.a(dri2_glx.o) has no symbols
ranlib: file: libglx.a(dri2.o) has no symbols
ranlib: file: libglx.a(applegl_glx.o) has no symbols
/bin/sh ../../bin/mklib -o GL -linker '/usr/bin/clang++ ' -ldflags '' \
                -major 1 -minor 2 \
                -cplusplus  \
                -install ../../lib -id /opt/local/lib/libGL.1.dylib \
                -L/opt/local/lib -L/opt/local/lib -lX11-xcb -lxcb -lX11 -lXext  
clientattrib.o clientinfo.o compsize.o create_context.o eval.o glxconfig.o glxcm
ds.o glxcurrent.o glx_error.o glxext.o glxextensions.o indirect_glx.o indirect.o
 indirect_init.o indirect_size.o indirect_window_pos.o indirect_texture_compress
ion.o indirect_transpose_matrix.o indirect_vertex_array.o indirect_vertex_progra
m.o pixel.o pixelstore.o render2.o renderpix.o single2.o singlepix.o vertarr.o x
font.o glx_pbuffer.o glx_query.o drisw_glx.o dri_common.o dri_glx.o XF86dri.o glxhash.o dri2_glx.o dri2.o applegl_glx.o ../../src/mapi/glapi/libglapi.a
mklib: Making Darwin shared library:  libGL.1.dylib
Undefined symbols for architecture x86_64:
  "_xcb_glx_client_info", referenced from:
      ___glX_send_client_info in clientinfo.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mklib: Installing libGL.1.dylib libGL.dylib in ../../lib
<snip>

Presumably the issue is that none of the objects defining libglx.a have any symbols. Looking at that command line it looks like it's having a hard time find some of the header files...

<snip>
make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macpor
ts_sources_rsync.macports.org_release_tarballs_ports_x11_mesa/mesa/work/Mesa-8.0
.4/src/glx'
rm -f depend
touch depend
makedepend -fdepend -I. -I../../include -I../../include/GL/internal -I../../src/mesa -I../../src/mapi -I../../src/mapi/glapi     clientattrib.c clientinfo.c compsize.c create_context.c eval.c glxconfig.c glxcmds.c glxcurrent.c glx_error.c glxext.c glxextensions.c indirect_glx.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_texture_compression.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c drisw_glx.c dri_common.c dri_glx.c XF86dri.c glxhash.c dri2_glx.c dri2.c applegl_glx.c
makedepend: warning:  clientattrib.c (reading glxclient.h, line 40): cannot find include file "X11/Xproto.h"
        not in ./X11/Xproto.h
        not in ../../include/X11/Xproto.h
        not in ../../include/GL/internal/X11/Xproto.h
        not in ../../src/mesa/X11/Xproto.h
        not in ../../src/mapi/X11/Xproto.h
        not in ../../src/mapi/glapi/X11/Xproto.h
        not in /usr/include/X11/Xproto.h
<snip> 

Many other headers couldn't be found including Xlib-xcb.h. The files are installed in the ports install area (privileges open for reading)

$ ls /opt/local/include/X11/Xproto.h 
/opt/local/include/X11/Xproto.h

Any thoughts or ideas would be helpful. (I could install mesa from scratch but I was hoping to find a quicker way without having to install all the dependencies myself).

I'm running on OSX 10.8.2, using mac port version 2.1.3. The version of mesa I have is mesa @8.0.4, Revision 2 (x11, graphics).

Thanks in advance

-joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130304/647880a1/attachment.html>


More information about the macports-users mailing list