Hello,
I've just move to git repository, and got following errors while trying to
compile git from master branch on OSX. Never got those errors while I was
using SVN repository.
gcc -I../../ -I../../clutter -I../../clutter -DXTHREADS -D_REENTRANT
-I/opt/local/include/cairo -I/opt/local/include/freetype2
-I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11R6/include
-I/opt/local/include/pixman-1 -I/opt/local/include/pango-1.0
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -g -O2 -g -o
.libs/test-conformance test_conformance-test-conform-main.o
test_conformance-test-conform-common.o
test_conformance-test-timeline-dup-frames.o
test_conformance-test-timeline-interpolate.o
test_conformance-test-timeline-rewind.o
test_conformance-test-timeline-smoothness.o test_conformance-test-timeline.o
test_conformance-test-mesh-contiguous.o
test_conformance-test-mesh-interleved.o
test_conformance-test-mesh-mutability.o test_conformance-test-path.o
test_conformance-test-pick.o test_conformance-test-label-cache.o
test_conformance-test-clutter-entry.o
test_conformance-test-clutter-rectangle.o
test_conformance-test-clutter-fixed.o
test_conformance-test-actor-invariants.o
test_conformance-test-paint-opacity.o
test_conformance-test-backface-culling.o
test_conformance-test-binding-pool.o
../../clutter/.libs/libclutter-osx-0.9.dylib -L/opt/local/lib
-L/usr/X11R6/lib /opt/local/lib/libpangocairo-1.0.dylib -L/usr/X11/lib
/opt/local/lib/libcairo.dylib /usr/X11/lib/libSM.6.0.0.dylib
/usr/X11/lib/libICE.6.3.0.dylib /opt/local/lib/libpangoft2-1.0.dylib
/opt/local/lib/libpng12.dylib /opt/local/lib/libXrender.dylib
/usr/X11/lib/libX11.6.2.0.dylib /usr/X11/lib/libXau.6.0.0.dylib
/usr/X11/lib/libXdmcp.6.0.0.dylib /opt/local/lib/libpixman-1.dylib
/opt/local/lib/libpango-1.0.dylib -lm /opt/local/lib/libfontconfig.dylib
/opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib -lz
/opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgthread-2.0.dylib
/opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib
/opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib
Undefined symbols:
"_glReadPixels", referenced from:
_on_paint in test_conformance-test-mesh-contiguous.o
_on_paint in test_conformance-test-mesh-contiguous.o
_on_paint in test_conformance-test-mesh-contiguous.o
_on_paint in test_conformance-test-mesh-interleved.o
_on_paint in test_conformance-test-mesh-mutability.o
_on_paint in test_conformance-test-mesh-mutability.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [test-conformance] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I've fixed this one by adding -lGL to OSX_LIBS within configure.ac, but I'm
not sure it's the right way to do so.
The next error is still unsolved yet ...
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../.. -g -O2 -g -MT disable-npots.lo -MD -MP -MF
.deps/disable-npots.Tpo -c -o disable-npots.lo disable-npots.c
gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -g -MT disable-npots.lo -MD -MP -MF
.deps/disable-npots.Tpo -c disable-npots.c -fno-common -DPIC -o
.libs/disable-npots.o
disable-npots.c:7:19: error: GL/gl.h: No such file or directory
disable-npots.c:14: error: syntax error before '*' token
disable-npots.c:14: error: syntax error before 'name'
disable-npots.c:14: warning: data definition has no type or storage class
disable-npots.c:22: error: syntax error before '*' token
disable-npots.c:23: error: syntax error before 'name'
disable-npots.c: In function 'glGetString':
disable-npots.c:25: error: nested functions are disabled, use
-fnested-functions to re-enable
disable-npots.c:25: error: syntax error before '*' token
disable-npots.c:27: error: nested functions are disabled, use
-fnested-functions to re-enable
disable-npots.c:27: error: syntax error before 'func'
disable-npots.c:28: error: nested functions are disabled, use
-fnested-functions to re-enable
disable-npots.c:28: error: syntax error before '*' token
disable-npots.c:33: error: 'func' undeclared (first use in this function)
disable-npots.c:33: error: (Each undeclared identifier is reported only once
disable-npots.c:33: error: for each function it appears in.)
disable-npots.c:34: error: syntax error before 'dlsym'
disable-npots.c:40: error: 'name' undeclared (first use in this function)
disable-npots.c:40: error: 'GL_EXTENSIONS' undeclared (first use in this
function)
disable-npots.c:42: error: 'extensions' undeclared (first use in this
function)
disable-npots.c:44: error: 'GLubyte' undeclared (first use in this function)
disable-npots.c:44: error: syntax error before ')' token
disable-npots.c:53: error: 'end' undeclared (first use in this function)
disable-npots.c:55: error: 'src' undeclared (first use in this function)
disable-npots.c:56: error: 'dst' undeclared (first use in this function)
disable-npots.c:79: error: 'ret' undeclared (first use in this function)
disable-npots.c: At top level:
disable-npots.c:81: error: syntax error before '}' token
make[3]: *** [disable-npots.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Thanks for your help
Rno
--
"Given enough eyeballs, all bugs are shallow"
Eric Steven Raymond