[Prev][Next][Index][Thread]
Linking errors
Hi,
Look I know were not supposed to ask but could someone help me. I downloaded
the Valentine's snapshot of oskit and it had linking errors when I try to
build the boot/net. Some of the functions it is complaining about are: bzero
and gdb_copying and a whole lot more.
Does anyone one have any idea what I'm doing wrong. I can have attached the
make output (don't worry it's not too big). I did a "configure --enable-debug
--host=i586" and then a make. It compiled most parts of the Oskit and then
had these errors. Does the "overriding old make rules" when it makes libc
have something to do with it?
I am building it on a linux computer if you want what versions of anything
I have let me know.
Thanks,
Jonathan Hunt
--
Jonathan Hunt (The Real Jonathan Hunt) <jhuntnz@users.sf.net>
"He is no fool who gives what he cannot keep to gain what he cannot lose."
Jim Elliot
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/oskit'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/oskit'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/flask'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/flask'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/crt'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/crt'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/kern'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/kern'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/lmm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/lmm'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/clientos'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/clientos'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/posix/sys'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/posix/sys'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/libc'
../libc/GNUmakerules:44: warning: overriding commands for target `liboskit_c.a'
../GNUmakerules-lib:43: warning: ignoring old commands for target `liboskit_c.a'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/libc'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/posix/sys_r'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/posix/sys_r'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/amm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/amm'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/bootp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/bootp'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/com'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/com'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/diskpart'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/diskpart'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/exec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/exec'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/fsread'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/fsread'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/fsnamespace/fsn'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/fsnamespace/fsn'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/fsnamespace/fsn_r'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/fsnamespace/fsn_r'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/fudp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/fudp'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/hpfq'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/hpfq'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/memdebug'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/memdebug'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/memfs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/memfs'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/smp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/smp'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/threads'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/threads'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/svm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/svm'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/startup'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/startup'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/dev'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/dev'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/realtime'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/realtime'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/dev'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/dev'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/net'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/net'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/libm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/libm'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/libc'
../../freebsd/libc/x86/GNUmakerules:149: warning: overriding commands for target `liboskit_freebsd_c.a'
../../GNUmakerules-lib:43: warning: ignoring old commands for target `liboskit_freebsd_c.a'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/libc'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/libc_r'
../../freebsd/libc_r/x86/GNUmakerules:124: warning: overriding commands for target `liboskit_freebsd_c_r.a'
../../GNUmakerules-lib:43: warning: ignoring old commands for target `liboskit_freebsd_c_r.a'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/freebsd/libc_r'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/rtld'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/rtld'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/linux/dev'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/linux/dev'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/linux/fs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/linux/fs'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/netbsd/fs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/netbsd/fs'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/video/svgalib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/video/svgalib'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/x11/client'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/x11/client'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/x11/video'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/x11/video'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/udp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/udp'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/unsupported'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/unsupported'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/security'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/security'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/boot/multiboot'
chmod +x mkmbimage
chmod +x mkmb2
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/boot/multiboot'
make[1]: Entering directory `/home/jhunt/progs/hurd/oskit-20010214/boot/net'
ld -o netboot -Ttext 100000 -L../../lib \
../../lib/multiboot.o \
await.o base_multiboot_main.o do_boot.o dprintf.o driver.o ether.o gdt.o getkernel_net.o getline.o ip.o loadkernel.o log.o main.o mem_lock.o misc.o reboot.o rpc.o timer.o udp.o version.o -loskit_clientos -loskit_bootp -loskit_linux_dev -loskit_dev -loskit_exec -loskit_kern -loskit_c -loskit_kern -loskit_lmm \
../../lib/crtn.o
ld: warning: cannot find entry symbol _start; defaulting to 00100000
../../lib/multiboot.o: In function `boot_entry':
../../lib/multiboot.o(.text+0x49): undefined reference to `_multiboot_main'
../../lib/multiboot.o: In function `_start_of_data':
../../lib/multiboot.o(.data+0x4): undefined reference to `_oskit_version_string'
base_multiboot_main.o: In function `patch_clone':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:95: undefined reference to `_start'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:95: undefined reference to `memcpy'
base_multiboot_main.o: In function `clone_self':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:113: undefined reference to `_start'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:141: undefined reference to `memmove'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:158: undefined reference to `_start'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:164: undefined reference to `_start'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:172: undefined reference to `_start'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:172: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:183: undefined reference to `_start'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:184: undefined reference to `_start'
base_multiboot_main.o: In function `multiboot_main':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:306: undefined reference to `__oskit_fini'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/base_multiboot_main.c:309: undefined reference to `__oskit_init'
loadkernel.o: In function `loadkernel':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/loadkernel.c:68: undefined reference to `memcpy'
misc.o: In function `do_netprintf':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/misc.c:102: undefined reference to `memcpy'
reboot.o: In function `reboot':
reboot.o(.text+0x16): undefined reference to `_start'
reboot.o(.text+0x33): undefined reference to `_start'
rpc.o: In function `check_read_cache':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/rpc.c:162: undefined reference to `memcpy'
rpc.o: In function `nfs_read':
/home/jhunt/progs/hurd/oskit-20010214/boot/net/rpc.c:259: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/boot/net/rpc.c:307: undefined reference to `memcpy'
../../lib/liboskit_clientos.a(mem.o): In function `mem_realloc':
/home/jhunt/progs/hurd/oskit-20010214/clientos/mem.c:143: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/clientos/mem.c:155: undefined reference to `memcpy'
../../lib/liboskit_bootp.a(driver.o): In function `bootp_gen':
/home/jhunt/progs/hurd/oskit-20010214/bootp/driver.c:242: undefined reference to `bzero'
../../lib/liboskit_bootp.a(bootp.o): In function `bootp_decode_packet':
/home/jhunt/progs/hurd/oskit-20010214/bootp/bootp.c:121: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/bootp/bootp.c:128: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/bootp/bootp.c:170: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/bootp/bootp.c:172: undefined reference to `memcpy'
/home/jhunt/progs/hurd/oskit-20010214/bootp/bootp.c:174: undefined reference to `memcpy'
../../lib/liboskit_bootp.a(bootp.o):/home/jhunt/progs/hurd/oskit-20010214/bootp/bootp.c:176: more undefined references to `memcpy' follow
../../lib/liboskit_kern.a(base_trap_init.o): In function `base_trap_init':
/home/jhunt/progs/hurd/oskit-20010214/kern/../kern/x86/base_trap_init.c:25: undefined reference to `base_trap_inittab'
../../lib/liboskit_kern.a(gdb_pc_com.o): In function `gdb_pc_com_init':
/home/jhunt/progs/hurd/oskit-20010214/kern/../oskit/x86/seg.h:210: undefined reference to `gdb_pc_com_intr'
../../lib/liboskit_kern.a(gdb_serial.o): In function `gdb_serial_converse':
/home/jhunt/progs/hurd/oskit-20010214/kern/gdb_serial.c:382: undefined reference to `gdb_copyin'
/home/jhunt/progs/hurd/oskit-20010214/kern/gdb_serial.c:418: undefined reference to `gdb_copyout'
/home/jhunt/progs/hurd/oskit-20010214/kern/gdb_serial.c:474: undefined reference to `gdb_copyout'
../../lib/liboskit_kern.a(killswitch.o): In function `gdb_pc_set_killswitch':
/home/jhunt/progs/hurd/oskit-20010214/kern/../oskit/x86/seg.h:210: undefined reference to `com_kill_intr'
../../lib/liboskit_c.a(buf_io.o): In function `bufio_read':
/home/jhunt/progs/hurd/oskit-20010214/libc/../com/buf_io.c:135: undefined reference to `memcpy'
../../lib/liboskit_c.a(buf_io.o): In function `bufio_write':
/home/jhunt/progs/hurd/oskit-20010214/libc/../com/buf_io.c:160: undefined reference to `memcpy'
../../lib/liboskit_c.a(calloc.o): In function `calloc':
/home/jhunt/progs/hurd/oskit-20010214/libc/../libc/malloc/calloc.c:31: undefined reference to `memset'
make[1]: *** [netboot] Error 1
make[1]: Leaving directory `/home/jhunt/progs/hurd/oskit-20010214/boot/net'
make: *** [boot/net/all.MAKE] Error 2
Follow-Ups: