[Prev][Next][Index][Thread]

Problems with compiling and using



Hi,

i try to build an own OS with oskit, but when I try to compile the 
oskit, I get the follwoing error: 

/usr/src/packages/BUILD/glibc-2.2.5/csu/../sysdeps/unix/sysv/linux/init-first.c(data+0x0): 
multiple definition of '__libc_multiple_libcs' 
sbrk-hack.o(.data+0x0):/home/matmue/abc/oskit/oskit-20020317/unix../unix/linux/ 
sbrk-hack.c: first defined here 
make[1]: *** [nativecalls.o] Error 1 
make[1]: Leaving directory>>/home/matmue/abc/oskit/oskit-20020317/unix<< 
make: *** [unix/all.MAKE] Error 2 

I have SuSE 8.0 with gcc 2.95.3-216 and binutils 2.11.92.0.10-89. I 
tried with St. Patrick's Day and Valentine's Day Snapshot. 
Does anyone know whats wrong? 

Then somebody from alt.os.development adivised me to use the binary 
debian-package. Now the example kernels hello.c multiboot.c and timer.c 
work, no problem. But the others don't work. There are always errors 
"undefined reference". 

For example mouse.c: 
mouse.o: In function 'main': 
mouse.o(.text+0x2d): undefined reference to 'oskit_freebsd_init_osenv' 
mouse.o(.text+0x35): undefined reference to 'oskit_freebsd_init_psm' 
mouse.o(.text+0cd1): undefined reference to 'oskit_mouse_init' 
mouse.o(.text+0xf6): undefined reference to 'oskit_mouse_get_packet' 
collect2: ld returned 1 exit status 

or tty.c: 
tty.o: In function 'main': 
tty.o(.text+0x3d): undefined reference to 'oskit_freebsd_init_osenv' 
tty.o(.text+0x45): undefined reference to 'oskit_freebsd_init_sc' 
collect2: ld returned 1 exit status 

Any idea? Are there not all libraries in the debian-package? Are there 
other binary packages I can use?

Thanks.

Bye Matthias

Follow-Ups: