[Prev][Next][Index][Thread]
Build on Linux/Redhat...
Hi,
First, thanks for the OS kit, this is a great set of tools.
I'm trying to build the OSkit/Kaffe combo under Linux 2.2.*/RedHat
6.*. I followed the build directions in config/i386/oskit/README but
during step 3 I get an error when trying to build the Kaffe executable
(see below).
The gist is that there are several symbol conflicts in the final
linking stage. Can you shed any light on this? TIA.
mark
-------- compile error snippet below --------
Making all in kaffe
make[2]: Entering directory `/home/astley/projects/kaffe-1.0.5/kaffe/kaffe'
source='main.c' object='main.o' \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc /bin/sh /home/astley/projects/kaffe-1.0.5/depcomp \
/home/astley/install/oskit-19991124/bin/i686-oskit-gcc -posix-oskit -pthread -nostdinc -DHAVE_CONFIG_H -I. -I/home/astley/projects/kaffe-1.0.5/kaffe/kaffe -I../../config -I../../include -I../kaffevm -I/home/astley/projects/kaffe-1.0.5/kaffe/kaffe/../kaffevm -I/home/astley/projects/kaffe-1.0.5/libltdl -DKVER='"1.0.5"' -I/home/astley/projects/kaffe-1.0.5/kaffe/kaffevm -I/home/astley/projects/kaffe-1.0.5/kaffe/kaffevm/systems/oskit-pthreads -I/home/astley/projects/kaffe-1.0.5/config -I/home/astley/projects/kaffe-1.0.5/include -I/usr/local/include -g -O2 -Wall -Wstrict-prototypes -c main.c
/bin/sh ../../libtool --mode=link /home/astley/projects/kaffe-1.0.5/config/i386/oskit/ld-oskit.sh --oskit=/home/astley/install/oskit-19991124 -g -O2 -Wall -Wstrict-prototypes -o Kaffe -export-dynamic main.o -dlopen ../../libraries/clib/native/libnative.la -dlopen ../../libraries/clib/net/libnet.la -dlopen ../../libraries/clib/io/libio.la -dlopen ../../libraries/clib/zip/libzip.la -dlopen ../../libraries/clib/math/libmath.la -dlopen ../../libraries/clib/management/libmanagement.la -dlopen ../../libraries/clib/security/libsecurity.la -dlopen ../../libraries/extensions/microsoft/clib/libmicrosoft.la ../kaffevm/libkaffevm.la -L/usr/local/lib -R/usr/local/lib
mkdir .libs
rm -f .libs/Kaffe.nm .libs/Kaffe.nmS .libs/Kaffe.nmT
creating .libs/KaffeS.c
extracting global C symbols from `../../libraries/clib/native/.libs/libnative.a'
extracting global C symbols from `../../libraries/clib/net/.libs/libnet.a'
extracting global C symbols from `../../libraries/clib/io/.libs/libio.a'
extracting global C symbols from `../../libraries/clib/zip/.libs/libzip.a'
extracting global C symbols from `../../libraries/clib/math/.libs/libmath.a'
extracting global C symbols from `../../libraries/clib/management/.libs/libmanagement.a'
extracting global C symbols from `../../libraries/clib/security/.libs/libsecurity.a'
extracting global C symbols from `../../libraries/extensions/microsoft/clib/.libs/libmicrosoft.a'
(cd .libs && /home/astley/install/oskit-19991124/bin/i686-oskit-gcc -posix-oskit -pthread -nostdinc -c -fno-builtin -fno-rtti -fno-exceptions "KaffeS.c")
rm -f .libs/KaffeS.c .libs/Kaffe.nm .libs/Kaffe.nmS .libs/Kaffe.nmT
/home/astley/projects/kaffe-1.0.5/config/i386/oskit/ld-oskit.sh --oskit=/home/astley/install/oskit-19991124 -g -O2 -Wall -Wstrict-prototypes -o Kaffe main.o .libs/KaffeS.o ../../libraries/clib/native/.libs/libnative.a -L/usr/local/lib ../../libraries/clib/net/.libs/libnet.a ../../libraries/clib/io/.libs/libio.a ../../libraries/clib/zip/.libs/libzip.a ../../libraries/clib/math/.libs/libmath.a ../../libraries/clib/management/.libs/libmanagement.a ../../libraries/clib/security/.libs/libsecurity.a ../../libraries/extensions/microsoft/clib/.libs/libmicrosoft.a ../kaffevm/.libs/libkaffevm.a -lgcc -L/usr/local/lib -Wl,--export-dynamic -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/collect2 -m elf_i386 -static -o Kaffe -L/usr/local/lib -L/usr/local/lib -L/home/astley/install/oskit-19991124/lib -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -L/usr/i386-redhat-linux/lib -Ttext 100000 /home/astley/install/oskit-19991124/lib/oskit/multiboot.o main.o .libs/KaffeS.o ../../libraries/clib/native/.libs/libnative.a ../../libraries/clib/net/.libs/libnet.a ../../libraries/clib/io/.libs/libio.a ../../libraries/clib/zip/.libs/libzip.a ../../libraries/clib/math/.libs/libmath.a ../../libraries/clib/management/.libs/libmanagement.a ../../libraries/clib/security/.libs/libsecurity.a ../../libraries/extensions/microsoft/clib/.libs/libmicrosoft.a ../kaffevm/.libs/libkaffevm.a -lgcc --export-dynamic --rpath /usr/local/lib --rpath /usr/local/lib --start-group -loskit_startup -loskit_clientos -loskit_threads -loskit_svm -loskit_amm -loskit_bootp -loskit_freebsd_net -loskit_linux_dev -loskit_dev -loskit_netbsd_fs -loskit_lmm -l!
!
!
oskit_diskpart -loskit_memfs -loskit_fsnamespace_r -loskit_com -loskit_kern -loskit_freebsd_m -loskit_freebsd_c_r --end-group /home/astley/install/oskit-19991124/lib/oskit/crtn.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `signals_init':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:48: multiple definition of `signals_init'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:1192: first defined here
/usr/bin/ld: Warning: size of symbol `signals_init' changed from 5 to 48 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `sigaction':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:64: multiple definition of `sigaction'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:337: first defined here
/usr/bin/ld: Warning: size of symbol `sigaction' changed from 316 to 129 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `sigprocmask':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:84: multiple definition of `sigprocmask'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:383: first defined here
/usr/bin/ld: Warning: size of symbol `sigprocmask' changed from 19 to 183 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `raise':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:126: multiple definition of `raise'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:392: first defined here
/usr/bin/ld: Warning: size of symbol `raise' changed from 19 to 124 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `really_deliver_signal':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:199: multiple definition of `really_deliver_signal'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:1098: first defined here
/usr/bin/ld: Warning: size of symbol `really_deliver_signal' changed from 318 to 146 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `kill':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:158: multiple definition of `kill'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:405: first defined here
/usr/bin/ld: Warning: size of symbol `kill' changed from 330 to 13 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `oskit_libc_sendsig':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:170: multiple definition of `oskit_libc_sendsig'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:955: first defined here
/usr/bin/ld: Warning: size of symbol `oskit_libc_sendsig' changed from 59 to 71 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `sigwait':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:234: multiple definition of `sigwait'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:896: first defined here
/usr/bin/ld: Warning: size of symbol `sigwait' changed from 57 to 10 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `sigwaitinfo':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:243: multiple definition of `sigwaitinfo'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:915: first defined here
/usr/bin/ld: Warning: size of symbol `sigwaitinfo' changed from 24 to 10 in sigaction.o
/home/astley/install/oskit-19991124/lib/liboskit_freebsd_c_r.a(sigaction.o): In function `sigtimedwait':
/home/astley/projects/oskit-19991124/posix/sys/sigaction.c:253: multiple definition of `sigtimedwait'
/home/astley/install/oskit-19991124/lib/liboskit_threads.a(pthread_signal.o):/home/astley/projects/oskit-19991124/threads/pthread_signal.c:931: first defined here
/usr/bin/ld: Warning: size of symbol `sigtimedwait' changed from 40 to 10 in sigaction.o
collect2: ld returned 1 exit status
rm -f .libs/KaffeS.o
make[2]: *** [Kaffe] Error 1
make[2]: Leaving directory `/home/astley/projects/kaffe-1.0.5/kaffe/kaffe'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/astley/projects/kaffe-1.0.5/kaffe'
make: *** [all-recursive] Error 1
Compilation exited abnormally with code 2 at Wed Jan 19 14:40:57
Follow-Ups: