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.

SNMP compile problems - easyapache breaks

Discussion in 'EasyApache' started by ramprage, Mar 23, 2005.

  1. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    snmp error using easyapache or compiling apache manually.

    I have even updated libmcrypt manually.
    Also ran the following for manually install
    up2date curl curl-devel net-snmp net-snmp-devel net-snmp-utils


    Compiling manually:
    checking for SNMP support... yes
    checking OpenSSL dir for SNMP... no
    checking for net-snmp-config... /usr/bin/net-snmp-config
    checking for snmp_parse_oid in -lnetsnmp... no
    checking for init_snmp in -lnetsnmp... no
    configure: error: SNMP sanity check failed. Please check config.log for more information.


    Config.log


    int main() {
    snmp_parse_oid()
    ; return 0; }
    configure:76967: checking for init_snmp in -lnetsnmp
    configure:76986: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -W$
    /usr/bin/ld: cannot find -lelf
    collect2: ld returned 1 exit status
    configure: failed program was:
    #line 76975 "configure"
    #include "confdefs.h"
    /* Override any gcc2 internal prototype to avoid an error. */
    /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply. */
    char init_snmp();

    int main() {
    init_snmp()
    ; return 0; }



    As soon as I take out the '--with-snmp' option or don't select snmp in easyapache Apache compiles fine.

    Please advise.
     
  2. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    "/usr/bin/ld: cannot find -lelf"

    I would look into that error. :)
     
  3. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    I did an:

    up2date elfutils-libelf-devel

    That seemed to work for the time being.
     
  4. Rodney-E2

    Rodney-E2 Member
    PartnerNOC

    Joined:
    Jun 25, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston, TX
    Just to update you on this, you can run:
    yum install net-snmp
    &
    yum install net-snmp-devel and it will fix this.
     
Loading...

Share This Page