From: Xavier C. <cha...@gm...> - 2010-03-15 00:01:40
|
On Mon, Mar 15, 2010 at 12:41 AM, tom fogal <tf...@al...> 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_tls@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `_dl_get_tls_static_info@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../lib/libdl.so: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `__tls_get_addr@GLIBC_2.3' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../lib/libdrm.so: undefined reference to `clock_gettime@GLIBC_2.2.5' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.3/../../../../lib/libdl.so: undefined reference to `_dl_rtld_di_serinfo@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `_dl_make_stack_executable@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `_dl_allocate_tls_init@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `_rtld_global@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `__libc_stack_end@GLIBC_2.2.5' /lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' /lib/libpthread.so.0: undefined reference to `_dl_deallocate_tls@GLIBC_PRIVATE' collect2: ld returned 1 exit status This is with swrast, but the result with nouveau was quite similar. |