Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    655
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. StevenC

    StevenC Well-Known Member

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

    I would look into that error. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ramprage

    ramprage Well-Known Member

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

    up2date elfutils-libelf-devel

    That seemed to work for the time being.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Rodney-E2

    Rodney-E2 Member
    PartnerNOC

    Joined:
    Jun 25, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice