On Wed Jul 06, 2005 at 18:41:20 +0200, Emanuel Thomas wrote:
Adam Lackorzynski wrote on 06/07/05 17:54:
Which libraries do you mean?
/lib/libpthread.so.0 /lib/libc.so
Except for the build tools itself those libraries are not used.
I'm compiling the ux version of Fiasco. I get an error while linking ux_con (see below).
The problem seems to be the linker. Its still /usr/bin/ld and not the one from the tool chain. Is there a way to change that?
[...] chmod 755 kernel.image ln -sf kernel.image fiasco ... Making irq0.o ==> Linking irq0 ... Stripping irq0 ... Making ux_con.o ==> Linking ux_con /lib/libpthread.so.0: undefined reference to `__libc_stack_end@GLIBC_2.1' /lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE' /lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3' collect2: ld returned 1 exit status make[5]: *** [ux_con] Error 1
ux_con is a Linux host program and has actually nothing to do with L4 per se. It's just a program to visualize a framebuffer. It is compiled and linked with $(CC). Maybe the problem is that glibc and the libsdl don't fit quite well?
Does the following test program work?
#include "SDL.h" int main(void) { SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER); return 0; }
with gcc -W -Wall -o sdltest $(sdl-config --cflags --libs) sdltest.c
Adam