[nflug] chkrootkit install

jason obarajt at verizon.net
Mon Feb 6 19:27:20 EST 2006


I am in the correct directoryand I run it as root. This is what I get 
when I run 'make sense', which looks bad to me. But ./chkrootkit will run!

gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
chklastlog.c:37:19: error: stdio.h: No such file or directory
chklastlog.c:39:20: error: stdlib.h: No such file or directory
chklastlog.c:41:22: error: sys/stat.h: No such file or directory
chklastlog.c:42:20: error: unistd.h: No such file or directory
chklastlog.c:43:20: error: string.h: No such file or directory
chklastlog.c:44:20: error: signal.h: No such file or directory
chklastlog.c:45:17: error: pwd.h: No such file or directory
chklastlog.c:46:23: error: sys/types.h: No such file or directory
chklastlog.c:47:18: error: utmp.h: No such file or directory
chklastlog.c:49:21: error: lastlog.h: No such file or directory
chklastlog.c:51:22: error: sys/file.h: No such file or directory
chklastlog.c:75: error: syntax error before ‘wtmp_file_size’
chklastlog.c:75: warning: data definition has no type or storage class
chklastlog.c:76: error: syntax error before ‘*’ token
chklastlog.c:76: warning: data definition has no type or storage class
chklastlog.c:81: error: syntax error before ‘uid_t’
chklastlog.c:81: warning: no semicolon at end of struct or union
chklastlog.c:83: error: syntax error before ‘}’ token
chklastlog.c:86: warning: ‘struct utmp’ declared inside parameter list
chklastlog.c:86: warning: its scope is only this definition or 
declaration, which is probably not what you want
chklastlog.c:90: error: syntax error before ‘*’ token
chklastlog.c:90: warning: data definition has no type or storage class
chklastlog.c:91: error: syntax error before ‘uid_t’
chklastlog.c: In function ‘main’:
chklastlog.c:98: error: storage size of ‘lastlog_ent’ isn’t known
chklastlog.c:99: error: storage size of ‘utmp_ent’ isn’t known
chklastlog.c:104: error: storage size of ‘wtmp_stat’ isn’t known
chklastlog.c:106: error: ‘uid_t’ undeclared (first use in this function)
chklastlog.c:106: error: (Each undeclared identifier is reported only once
chklastlog.c:106: error: for each function it appears in.)
chklastlog.c:109: warning: incompatible implicit declaration of built-in 
function ‘memcpy’
chklastlog.c:130: error: ‘SIGALRM’ undeclared (first use in this function)
chklastlog.c:135: error: ‘O_RDONLY’ undeclared (first use in this function)
chklastlog.c:136: warning: incompatible implicit declaration of built-in 
function ‘fprintf’
chklastlog.c:136: error: ‘stderr’ undeclared (first use in this function)
chklastlog.c:141: warning: incompatible implicit declaration of built-in 
function ‘fprintf’
chklastlog.c:155: error: invalid application of ‘sizeof’ to incomplete 
type ‘struct utmp’
chklastlog.c:156: error: invalid application of ‘sizeof’ to incomplete 
type ‘struct utmp’
chklastlog.c:158: warning: incompatible implicit declaration of built-in 
function ‘fprintf’
chklastlog.c:162: error: type of formal parameter 1 is incomplete
chklastlog.c:163: error: ‘NULL’ undeclared (first use in this function)
chklastlog.c:167: warning: incompatible implicit declaration of built-in 
function ‘fprintf’
chklastlog.c:168: warning: incompatible implicit declaration of built-in 
function ‘exit’
chklastlog.c:173: error: invalid application of ‘sizeof’ to incomplete 
type ‘struct lastlog’
chklastlog.c:174: error: invalid application of ‘sizeof’ to incomplete 
type ‘struct lastlog’
chklastlog.c:176: error: invalid application of ‘sizeof’ to incomplete 
type ‘struct lastlog’
chklastlog.c:178: warning: incompatible implicit declaration of built-in 
function ‘fprintf’
chklastlog.c:184: warning: incompatible implicit declaration of built-in 
function ‘printf’
chklastlog.c:185: error: dereferencing pointer to incomplete type
chklastlog.c:186: error: dereferencing pointer to incomplete type
chklastlog.c: At top level:
chklastlog.c:207: warning: ‘struct utmp’ declared inside parameter list
chklastlog.c:207: error: parameter 1 (‘utmp_ent’) has incomplete type
chklastlog.c: In function ‘read_status’:
chklastlog.c:223: warning: incompatible implicit declaration of built-in 
function ‘printf’
chklastlog.c: In function ‘read_pwd’:
chklastlog.c:237: warning: assignment makes pointer from integer without 
a cast
chklastlog.c:241: warning: incompatible implicit declaration of built-in 
function ‘malloc’
chklastlog.c:241: error: ‘size_t’ undeclared (first use in this function)
chklastlog.c:241: error: syntax error before ‘sizeof’
chklastlog.c:242: error: dereferencing pointer to incomplete type
chklastlog.c:243: error: dereferencing pointer to incomplete type
chklastlog.c:243: error: ‘uid_t’ undeclared (first use in this function)
chklastlog.c:243: error: syntax error before ‘)’ token
chklastlog.c:244: error: dereferencing pointer to incomplete type
chklastlog.c:244: error: syntax error before ‘numentries’
chklastlog.c:246: error: dereferencing pointer to incomplete type
chklastlog.c:246: error: syntax error before numeric constant
chklastlog.c:250: warning: assignment makes pointer from integer without 
a cast
chklastlog.c:251: error: dereferencing pointer to incomplete type
chklastlog.c:251: error: dereferencing pointer to incomplete type
chklastlog.c:252: warning: incompatible implicit declaration of built-in 
function ‘memcpy’
chklastlog.c:252: error: dereferencing pointer to incomplete type
chklastlog.c:252: error: dereferencing pointer to incomplete type
chklastlog.c:252: warning: incompatible implicit declaration of built-in 
function ‘strlen’
chklastlog.c:252: error: dereferencing pointer to incomplete type
chklastlog.c:252: error: dereferencing pointer to incomplete type
chklastlog.c: In function ‘free_results’:
chklastlog.c:261: error: dereferencing pointer to incomplete type
chklastlog.c:262: error: dereferencing pointer to incomplete type
chklastlog.c:263: error: dereferencing pointer to incomplete type
chklastlog.c:265: error: dereferencing pointer to incomplete type
chklastlog.c: At top level:
chklastlog.c:269: error: syntax error before ‘*’ token
chklastlog.c: In function ‘localgetpwnam’:
chklastlog.c:271: error: ‘size_t’ undeclared (first use in this function)
chklastlog.c:271: error: syntax error before ‘len’
chklastlog.c:273: error: dereferencing pointer to incomplete type
chklastlog.c:274: error: ‘len’ undeclared (first use in this function)
chklastlog.c:274: warning: incompatible implicit declaration of built-in 
function ‘strlen’
chklastlog.c:275: error: dereferencing pointer to incomplete type
chklastlog.c:276: error: dereferencing pointer to incomplete type
chklastlog.c:279: error: ‘NULL’ undeclared (first use in this function)
chklastlog.c: At top level:
chklastlog.c:282: error: syntax error before ‘uid_t’
chklastlog.c: In function ‘getslot’:
chklastlog.c:286: error: ‘localpwd’ undeclared (first use in this function)
make: *** [chklastlog] Error 1



Daniel V wrote:

>Don't know if this helps, but...
>
>Are you in the correct directory when running make ?
>
>http://www.falkotimme.com/howtos/chkrootkit_portsentry/index.php
>2 Install Chkrootkit
>
>mv chkrootkit.tar.gz /usr/local/
>cd /usr/local/
>tar xvfz chkrootkit.tar.gz
>ln -s chkrootkit-0.43/ chkrootkit (replace 0.43 with
>the right version number)
>cd chkrootkit/
>make sense
>
>Are you taking permissions into account?
>
>Daniel V.
>
>
>--- jason <obarajt at verizon.net> wrote:
>  
>
>I am trying to run chkrootkit, but I can't run the
>'make sense' command.  It kicks out 'bash: make:
>command not found'. I am pretty sure I have run this
>under Ubuntu before. Any suggestions?
> 
>Thanks!
>  
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>_______________________________________________
>nflug mailing list
>nflug at nflug.org
>http://www.nflug.org/mailman/listinfo/nflug
>
>  
>

_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list