[Cialug] chkrootkit compile

John.Lengeling at radisys.com John.Lengeling at radisys.com
Thu Apr 27 10:29:09 CDT 2006


-l is used by ld to link against another library

Specifically -lc is trying to link against the C library.  I would be 
looking specifically for a file called /lib/libc.a or /usr/lib/libc.a

Can you successfully compile a simple helloworld program?

johnl

cialug-bounces at cialug.org wrote on 04/27/2006 10:13:53 AM:

> Trying to compile chkrootkit-0.46a on a Mandriva 2006 box, it's 
> complaining about "/usr/bin/ld: cannot find -lc". Any ideas? Here's the 
> full transcript (after a "make clean") ...
> 
> # make sense
> gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
> gcc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
> chkwtmp.c: In function 'main':
> chkwtmp.c:95: warning: incompatible implicit declaration of built-in 
> function 'exit'
> gcc -DHAVE_LASTLOG_H   -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c
> gcc  -o chkproc chkproc.c
> chkproc.c: In function 'main':
> chkproc.c:230: warning: incompatible implicit declaration of built-in 
> function 'strcpy'
> gcc  -o chkdirs chkdirs.c
> gcc  -o check_wtmpx check_wtmpx.c
> gcc -static  -o strings-static strings.c
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make: *** [strings-static] Error 1
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20060427/f1697697/attachment.htm


More information about the Cialug mailing list