Missing file

Posted by Zeno on Sun 05 Jun 2005 03:05 AM — 5 posts, 13,389 views.

USA #0
Well I'm testing this out on another server, it was missing zlib lib, the admin installed it, but I am getting these remaining errors:
/usr/lib/crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
mccp.o(.text+0xbd): In function `compressStart':
/muds/chubr/chub/src/mccp.c:63: undefined reference to `deflateInit_'
mccp.o(.text+0xf4):/muds/chubr/chub/src/mccp.c:72: undefined reference to `text_to_socket'
mccp.o(.text+0x10c):/muds/chubr/chub/src/mccp.c:74: undefined reference to `text_to_socket'
mccp.o(.text+0x122):/muds/chubr/chub/src/mccp.c:77: undefined reference to `bug'
mccp.o(.text+0x1cd): In function `compressEnd':
/muds/chubr/chub/src/mccp.c:107: undefined reference to `deflate'
mccp.o(.text+0x202):/muds/chubr/chub/src/mccp.c:115: undefined reference to `deflateEnd' 


Anyone have any idea?
Australia Forum Administrator #1
This is a compile-time error? You need 2 files installed, the library which the linker uses, which tells it where to find the files at runtime, and the actual files which it uses at runtime.
USA #2
Oh yes, forgot to mention this was compiling, heh.

Can you be more specific? Is this an error on my end or and error the admin made?
Australia Forum Administrator #3
It strictly speaking seems to be a linker error. Are you linking against the file the admin installed?
USA #4
This seems a little odd:
/usr/lib/crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
Your code doesn't have a main?

As for the other errors, my bet is with Nick; you probably aren't actually linking against the installed file. Either that, or the installed file isn't the right file... :)