[Cialug] chkrootkit compile

David Champion dchampion at visionary.com
Thu Apr 27 10:48:34 CDT 2006


Yep...

$ cat hello.c
#include <stdio.h>
int main(void)
{
   printf("Hello World!\n");
}

$ gcc -o hello hello.c
$ ./hello
Hello World!

-dc

John.Lengeling at radisys.com wrote:
> -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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug




More information about the Cialug mailing list