The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Chkrootkit install problem??

Discussion in 'General Discussion' started by HollyRidge, Jun 20, 2003.

  1. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    Well I guess I have installed chkrootkit on over 300 servers and never had a problem until the other day. I installed on 2 servers with no problem and them directly after that went to install on 4 more and when doing the make sense I am getting an error...

    Here is the error when doing the make sense...

    root@host [~/pkgs/chkrootkit-0.40]# make sense
    gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
    gcc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
    gcc -DHAVE_LASTLOG_H -o ifpromisc ifpromisc.c
    In file included from /usr/include/linux/if.h:22,
    from ifpromisc.c:28:
    /usr/include/linux/types.h:124: parse error before `__kernel_daddr_t'
    /usr/include/linux/types.h:124: warning: no semicolon at end of struct or union
    /usr/include/linux/types.h:125: warning: data definition has no type or storage class
    /usr/include/linux/types.h:128: parse error before `}'
    make: *** [ifpromisc] Error 1
    root@host [~/pkgs/chkrootkit-0.40]#


    Anyone have any idea what is wrong here?

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Couple things you may want to try, try downloading the source again to make sure there was nothing wrong with your initial download.

    If it errors out again, make sure that the headers on your machine are not corrupt: /scripts/fixheaders

    Give chkroot another try.

    Any more errors, include them in a reply.

    cPanel.net Support Ticket Number:
     
  3. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    I know it isnt anything wrong with the inital download. I thought they might be the case at first but quickly ruled that out. I even tried a known good copy that we had stored on one of our servers that worked when we installed it. Also dont think have tried multiple times accross 5 cpanel servers and same result.
     
  4. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    We also get this problem and as yet there is no solution to why the compile fails. I have tried fixheaders and new copies of .C and that did not work.

    cPanel.net Support Ticket Number:
     
  5. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    So far we have installed this program several times with no problems. However the last few days we have run into the same error several times across several servers (all redhat - 7.2 & 7.3). Also I see reports where some others are having issues with it to but no one has come up with any solution yet. We have tried both version 0.40 and 0.41 with the same result. Here is the error it is giving when trying to install...

    root@blue [~/pkgs/chkrootkit-0.41]# make sense
    gcc -DHAVE_LASTLOG_H -o ifpromisc ifpromisc.c
    In file included from /usr/include/linux/if.h:22,
    from ifpromisc.c:30:
    /usr/include/linux/types.h:104: parse error before `__kernel_daddr_t'
    /usr/include/linux/types.h:104: warning: no semicolon at end of struct or union
    /usr/include/linux/types.h:105: warning: data definition has no type or storage class
    /usr/include/linux/types.h:108: parse error before `}'
    make: *** [ifpromisc] Error 1
    root@blue [~/pkgs/chkrootkit-0.41]#

    Now I have compared the /usr/include/linux/types.h file between a server that we were able to compile without any problems to one above that was giving the error and the section it is talking about (line 104 - 108) are completly identical. We also compared line 22 of /usr/include/linux/if.h between both servers and they were also completely identical I even though of a corrupt download so we tried 3 times and even from a known good source to rule out possible corruption on their end but that too failed. Also these servers have the latest updates from redhat as well as from the control panel. Now I dont know if this will help or not but so far it has been a common on Cpanel servers, however some Cpanel servers it has installed fine.

    BTW fixheaders didnt work either.

    cPanel.net Support Ticket Number:
     
  6. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    It's never worked for us, :mad:

    cPanel.net Support Ticket Number:
     
  7. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    It installed without a problem on our Compaqs. It failed to compile on all our P4 1.7 - 2.4's. Whats the difference between machines?

    cPanel.net Support Ticket Number:
     
  8. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    I dont think this has anything to do with a hardware setup. We work with many different configurations and so far have not seen any common but being on a cpanel server. Dont get me wrong because some cpanel servers take it fine with no problems. Matter of fact I just installed on another cpanel server and it worked fine so go figure. Also never have had any issues installing on Ensim servers.

    cPanel.net Support Ticket Number:
     
  9. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Didnt say it was related to hardware, obviously! Im saying whats the different between RH + Cpanel on our Compaqs as opposed to the same being installed on our P4's? All boxes run the same version of RH and Cpanel. So then the question would be why does it install on our Compaqs but not on our P4's. It makes no sense at all. Could this be a glibc problem???

    cPanel.net Support Ticket Number:
     
    #9 sexy_guy, Jun 21, 2003
    Last edited: Jun 21, 2003
  10. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    Thought of that too... Checked the glibc rpms (all of them) and matched versions both on servers it would not install on and those that it would. Same rpms and versions.

    cPanel.net Support Ticket Number:
     
  11. kcdworks

    kcdworks Well-Known Member

    Joined:
    Jul 28, 2002
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    It seems that we are having this exact problem on one of our servers.

    Has anyone found a resolution to it?

    cPanel.net Support Ticket Number:
     
  12. ho247

    ho247 Active Member

    Joined:
    Mar 25, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    United kingdom
    Resolved, but need another system admin to confirm.

    After installing it on 20+ servers successfully, there were some servers that had the exact problem that you guys are getting. I'm going to need a more advanced Linux expert to confirm this, but I resolved the problem by doing the following.

    There should be a folder at:

    /usr/include/linux

    I moved this folder as a backup just incase:

    mv /usr/include/linux /usr/include/linux.bak

    Then I created a symlink:

    ln -s /usr/src/linux/include/linux /usr/include/linux

    At this point, if you run "make sense" for the chkrootkit program, it'll compile without any errors. This worked for me and the program and server looks to be working well. The server was rebooted and came back online without any problems. But I need another system admin to confirm if this makes sense?

    cPanel.net Support Ticket Number:
     
  13. ho247

    ho247 Active Member

    Joined:
    Mar 25, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    United kingdom
    Just a note on the above, it worked on two servers, but the third one doesn't have a /usr/src/linux/include/linux folder, so it's a different problem that needs sorting.

    I'll post more as I look into it further.
     
    #13 ho247, Aug 2, 2003
    Last edited: Aug 2, 2003
  14. ho247

    ho247 Active Member

    Joined:
    Mar 25, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    United kingdom
    The solution that I posted worked on several more servers, there was just one server that I couldn't get it to work with, but that looked to be a different problem altogether.

    cPanel.net Support Ticket Number:
     
  15. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    Cool I will have to give that a try and see if it works on these. I have about 5 or 6 cpanel servers that I was having problems with. All the rest of the cpanel servers as well as ensim, plain redhat, etc. worked fine. Hopefully this will work. I will post back and let everyone know what happens.

    cPanel.net Support Ticket Number:
     
  16. HollyRidge

    HollyRidge Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    138
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Garner NC USA
    cPanel Access Level:
    Root Administrator
    Just tried on one of those servers that we were having the difficulty with but error was worse. There already was a directory called /usr/local/linux so we renamed it as per your recommendations. However after doing a make clean and then when we ran make sense I got even more errors...


    root@blue [~/pkgs/chkrootkit-0.41]# make sense
    gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
    gcc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
    gcc -DHAVE_LASTLOG_H -o ifpromisc ifpromisc.c
    In file included from /usr/include/bits/posix1_lim.h:126,
    from /usr/include/limits.h:144,
    from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:130,
    from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/syslimits.h:7,
    from /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/limits.h:11,
    from /usr/include/bits/socket.h:31,
    from /usr/include/sys/socket.h:35,
    from ifpromisc.c:27:
    /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
    ifpromisc.c:30:22: linux/if.h: No such file or directory
    ifpromisc.c:31:26: linux/if_arp.h: No such file or directory
    ifpromisc.c:32:28: linux/if_ether.h: No such file or directory
    In file included from /usr/include/errno.h:36,
    from ifpromisc.c:43:
    /usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
    make: *** [ifpromisc] Error 1
    root@blue [~/pkgs/chkrootkit-0.41]#



    [edit]
    this might have been the problem on the above error but guess will have to do some more digging...
    cd /usr/src/linux/include/linux
    bash: cd: /usr/src/linux/include/linux: No such file or directory

    anyone else come up with a solution on this matter?
    [/edit]
     
    #16 HollyRidge, Aug 14, 2003
    Last edited: Aug 14, 2003
  17. ho247

    ho247 Active Member

    Joined:
    Mar 25, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    United kingdom
    Sorry that I couldn't help with the problem. I've further installed chkrootkit on many more servers and haven't come up with any more problems now.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page