Compilation is broken on OS X 10.5.7 using master's HEAD [1]:

gcc -c -I../../../../include -I../../../../src/mesa -I../../../../src/mesa/main 
-g -DUSE_MGL_NAMESPACE -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fno-strict-aliasing  -fno-common    osmesa.c -o osmesa.o
/bin/sh ../../../../bin/mklib -o OSMesa -linker 'gcc' -ldflags '' \
                -major 7 -minor 6 -patch 0 \
                -install ../../../../lib  \
                -id /Users/tfogal/sw/mesa-git/lib/libOSMesa.7.dylib \
                -L../../../../lib  -lm -lpthread   osmesa.o 
../../../../src/mesa/libmesa.a ../../../../src/mesa/libglapi.a
mklib: Making Darwin shared library:  libOSMesa.7.6.dylib
Undefined symbols:
  "_glCopyBufferSubData", referenced from:
      _static_functions in libglapi.a(glapi_getproc.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

with the configuration:

  ./configure                           \
      CFLAGS="-g -DUSE_MGL_NAMESPACE"   \
      CXXFLAGS="-g -DUSE_MGL_NAMESPACE" \
      --prefix=${PF}                    \
      --without-demos                   \
      --with-driver=osmesa              \
      --disable-gallium                 \
      --disable-egl || exit 1
  make clean
  sed -i bak "s,GL_LIB = GL,GL_LIB=MesaGL,g" configs/autoconf || exit 1
  sed -i bak "s,GLU_LIB = GLU,GLU_LIB=MesaGLU,g" configs/autoconf || exit 1

The same configuration works fine on mesa_7_5_branch [2].

-tom

[1] 41091087396f935d4acf70b018ba54889fcf55a1
[2] fb64365642be82ac0dc0d43452afc4650d309b53

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to