On Mon, Mar 15, 2010 at 12:41 AM, tom fogal <tfo...@alumni.unh.edu> wrote: > > That's just the default compiler/linker setup on Linux. This is in > contrast to, say, OS X, where undefined symbols cause link errors. > > You can emulate the above by building with -Wl,--no-undefined (or maybe > -no-undefined, something like that, see ld(1)). >
Looks like I am entering in a dangerous territory. With -Wl,--no-undefined, I get so many errors that it did not fit in my terminal buffer :P http://paste.pocoo.org/show/189694/ With -Wl,--no-allow-shlib-undefined it's a bit better but it is still scary : /bin/sh ../../../../../bin/mklib -o swrast_dri.so -noprefix -linker 'gcc' -ldflags '-Wl,--no-allow-shlib-undefined' \ ../../common/driverfuncs.o ../common/utils.o swrast.o swrast_span.o ../../../../../src/mesa/libmesa.a -ldrm -lexpat -lm -lpthread -ldl mklib: Making Linux shared library: swrast_dri.so LDFLAGS : -Wl,--no-allow-shlib-undefined /lib/libpthread.so.0: undefined reference to `_dl_allocate_...@glibc_private' /lib/libpthread.so.0: undefined reference to `_dl_get_tls_static_i...@glibc_private' /lib/libc.so.6: undefined reference to `_dl_a...@glibc_private' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../lib/libdl.so: undefined reference to `_rtld_global...@glibc_private' /lib/libpthread.so.0: undefined reference to `__tls_get_a...@glibc_2.3' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../lib/libdrm.so: undefined reference to `clock_gett...@glibc_2.2.5' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../lib/libdl.so: undefined reference to `_dl_rtld_di_seri...@glibc_private' /lib/libpthread.so.0: undefined reference to `_dl_make_stack_executa...@glibc_private' /lib/libpthread.so.0: undefined reference to `_dl_allocate_tls_i...@glibc_private' /lib/libpthread.so.0: undefined reference to `_rtld_glo...@glibc_private' /lib/libpthread.so.0: undefined reference to `__libc_stack_...@glibc_2.2.5' /lib/libc.so.6: undefined reference to `__libc_enable_sec...@glibc_private' /lib/libpthread.so.0: undefined reference to `_dl_deallocate_...@glibc_private' collect2: ld returned 1 exit status This is with swrast, but the result with nouveau was quite similar. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev