<br><font size=2 face="sans-serif">-l is used by ld to link against another
library</font>
<br>
<br><font size=2 face="sans-serif">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</font>
<br>
<br><font size=2 face="sans-serif">Can you successfully compile a simple
helloworld program?</font>
<br>
<br><font size=2 face="sans-serif">johnl</font>
<br>
<br><font size=2><tt>cialug-bounces@cialug.org wrote on 04/27/2006 10:13:53
AM:<br>
<br>
> Trying to compile chkrootkit-0.46a on a Mandriva 2006 box, it's <br>
> complaining about "/usr/bin/ld: cannot find -lc". Any ideas?
Here's the <br>
> full transcript (after a "make clean") ...<br>
> <br>
> # make sense<br>
> gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c<br>
> gcc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c<br>
> chkwtmp.c: In function 'main':<br>
> chkwtmp.c:95: warning: incompatible implicit declaration of built-in
<br>
> function 'exit'<br>
> gcc -DHAVE_LASTLOG_H -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c<br>
> gcc -o chkproc chkproc.c<br>
> chkproc.c: In function 'main':<br>
> chkproc.c:230: warning: incompatible implicit declaration of built-in
<br>
> function 'strcpy'<br>
> gcc -o chkdirs chkdirs.c<br>
> gcc -o check_wtmpx check_wtmpx.c<br>
> gcc -static -o strings-static strings.c<br>
> /usr/bin/ld: cannot find -lc<br>
> collect2: ld returned 1 exit status<br>
> make: *** [strings-static] Error 1<br>
> <br>
> _______________________________________________<br>
> Cialug mailing list<br>
> Cialug@cialug.org<br>
> http://cialug.org/mailman/listinfo/cialug<br>
</tt></font>