Error while installing chkrootkit

Error while installing chkrootkit

Post by LHradow » Sat, 05 Apr 2003 04:45:33



I have been trying to install chkrootkit in a sun 2.6 server. When I first
tried I did not have gcc installed, so I have installed
GNUgcc.2.95.2.SPARC.Solaris.2.6.pkg.tgz

When I then ran the make sense I received the following error....

[sinclair]/opt/chkrootkit-0.39a > /usr/xpg4/bin/make sense
gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
chklastlog.c:86: parse error before `struct'
chklastlog.c: In function `main':
chklastlog.c:98: storage size of `lastlog_ent' isn't known
chklastlog.c:135: `O_RDONLY' undeclared (first use in this function)
chklastlog.c:135: (Each undeclared identifier is reported only once
chklastlog.c:135: for each function it appears in.)
chklastlog.c:173: sizeof applied to an incomplete type
chklastlog.c:174: sizeof applied to an incomplete type
chklastlog.c:176: sizeof applied to an incomplete type
chklastlog.c: At top level:
chklastlog.c:205: parse error before `struct'
*** Error code 1
make: Fatal error: Command failed for target `chklastlog'

Thanks for your help.
Laura

 
 
 

Error while installing chkrootkit

Post by all mail refus » Sat, 05 Apr 2003 06:14:54



>I have been trying to install chkrootkit in a sun 2.6 server. When I first
>tried I did not have gcc installed, so I have installed
 ...
>chklastlog.c:98: storage size of `lastlog_ent' isn't known
>chklastlog.c:135: `O_RDONLY' undeclared (first use in this function)

After changing the compiler start again right at the beginning.
Perhaps 'make distclean' or rm and again unpack the chkrootkit-0.39a dir.

--
decoy mail addresses: obtain username via 0x4f/tcp or 0x50/tcp



 
 
 

Error while installing chkrootkit

Post by LHradow » Sat, 05 Apr 2003 06:55:53


"> >I have been trying to install chkrootkit in a sun 2.6 server. When I
first

Quote:> >tried I did not have gcc installed, so I have installed
>  ...
> >chklastlog.c:98: storage size of `lastlog_ent' isn't known
> >chklastlog.c:135: `O_RDONLY' undeclared (first use in this function)

> After changing the compiler start again right at the beginning.
> Perhaps 'make distclean' or rm and again unpack the chkrootkit-0.39a dir.

I tried starting right from the beginning, and I still get the same error.
When I tried doing a 'make distclean I got this for an error...
[sinclair]/opt/chkrootkit-0.39a >  /usr/xpg4/bin/make distclean
make: Fatal error: Don't know how to make target `distclean'

What do you mean by ...

Quote:> After changing the compiler ... ?

 
 
 

Error while installing chkrootkit

Post by all mail refus » Sat, 05 Apr 2003 07:57:09



>"> >I have been trying to install chkrootkit in a sun 2.6 server. When I
>first
>> >tried I did not have gcc installed, so I have installed
>>  ...
>> >chklastlog.c:98: storage size of `lastlog_ent' isn't known
>> >chklastlog.c:135: `O_RDONLY' undeclared (first use in this function)
>> After changing the compiler start again right at the beginning.
>> Perhaps 'make distclean' or rm and again unpack the chkrootkit-0.39a dir.
>make: Fatal error: Don't know how to make target `distclean'

"Don't know how to make target ..." is the usual error message from
make for a target not mentioned in the Makefile.  Some jokey versions
have had a different message of the target is "love".

Quote:>What do you mean by ...
>> After changing the compiler ... ?

I understood your earlier text to mean that you didn't originally have gcc
but then you added it (either as a first compiler or in addition to whatever
was there before).  That would invalidate the early config stages of
installation hence my suggestion to start again (with gcc in your PATH).

Assuming I've followed you correctly I think testing the new gcc installation
would be a good plan and should sort out problems originating there
(related to header files) from problems in the chkrootkit stuff you have.

--
decoy mail addresses: obtain username via 0x4f/tcp or 0x50/tcp


 
 
 

Error while installing chkrootkit

Post by Akop Pogosia » Sat, 05 Apr 2003 11:46:18



Quote:> I have been trying to install chkrootkit in a sun 2.6 server. When I first
> tried I did not have gcc installed, so I have installed
> GNUgcc.2.95.2.SPARC.Solaris.2.6.pkg.tgz
> When I then ran the make sense I received the following error....
> [sinclair]/opt/chkrootkit-0.39a > /usr/xpg4/bin/make sense
> gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
> chklastlog.c:86: parse error before `struct'
> chklastlog.c: In function `main':
> chklastlog.c:98: storage size of `lastlog_ent' isn't known
> chklastlog.c:135: `O_RDONLY' undeclared (first use in this function)

Just wondering, do you have the Solaris C header files installed on
that box? Check the Solaris 2 FAQ for list of packages that you need.

http://www.science.uva.nl/pub/solaris/solaris2/Q6.2.html

--
Akop Pogosian

This space has been accidentally left blank.

 
 
 

1. chkrootkit error on install

I am trying to install chkrootkit-0.39a on a RedHat Advanced Server 2.1 with
a kernel of 2.4.9-e.16
I am getting an error of ...

gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
make: gcc: Command not found
make: *** [chklastlog] Error 127

Any ideas? I have been successful in installing it on all RedHat 7.x
servers...

Thanks

2. DNI PROBLEMS

3. chkrootkit compile error

4. Blank-screen-on-demand

5. Press Ctrl-D whiling inputting

6. How do I see the content of a tape (created using cpio)?

7. ipmasqadm install error and ip masq icq install error

8. PV100T IDE,10G,Internal TBU with linux?

9. Install error on G3: "error unpacking archive: unknown error"

10. chkrootkit report : LKM trojan?

11. chkrootkit: netstat infected?

12. Chkrootkit shows nothing?

13. chkrootkit warning messages