Re: Problems installing NET-SNMP on Mac 10.5.2 - SNMP

This is a discussion on Re: Problems installing NET-SNMP on Mac 10.5.2 - SNMP ; This is a new one on me: ranlib: archive member: .libs/libnetsnmpagent.a(DynaLoader.a) fat file for cputype (18) cpusubtype (0) is not an object file (bad magic number) ar: internal ranlib command failed make[1]: *** [libnetsnmpagent.la] Error 1 make: *** [subdirs] Error ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Re: Problems installing NET-SNMP on Mac 10.5.2

  1. Re: Problems installing NET-SNMP on Mac 10.5.2


    This is a new one on me:

    ranlib: archive member: .libs/libnetsnmpagent.a(DynaLoader.a) fat file for
    cputype (18) cpusubtype (0) is not an object file (bad magic number) ar:
    internal ranlib command failed make[1]: *** [libnetsnmpagent.la] Error 1
    make: *** [subdirs] Error 1 bonham:net-snmp-5.4.1 bonham$

    But that seems to be standard fair for a lot of F/OSS compiles on Darwin.
    Strange ld(1), nm(1), and ar(1) toolchain bugs.

    ~BAS

    On Thu, 6 Mar 2008, Thomas Bonham wrote:

    > Okay fix the first error what I end up doing was putting what it was looking
    > for in the file as defined at 1.
    >
    > #define HAVE_SSIZE_T 1
    >
    > So now when I run make I'm getting this error. Any ideas now.
    >
    > rm -fr .libs/libnetsnmpagent.15.1.0.dylib .libs/libnetsnmpagent.15.dylib
    > .libs/libnetsnmpagent.a .libs/libnetsnmpagent.dylib
    > gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o
    > .libs/libnetsnmpagent.15.1.0.dylib .libs/snmp_agent.o .libs/snmp_vars.o
    > .libs/agent_read_config.o .libs/agent_registry.o .libs/agent_index.o
    > .libs/agent_trap.o .libs/kernel.o .libs/agent_handler.o
    > mibgroup/snmpv3/.libs/usmConf.o mibgroup/agentx/.libs/master.o
    > mibgroup/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o
    > mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o
    > mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o
    > mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o
    > .libs/snmp_perl.o ../snmplib/.libs/libnetsnmp.dylib -L/usr/local/ssl/lib
    > -L/usr/local/lib
    > /System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
    > -L/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -lperl -ldl -lm
    > -lutil -lc -arch i386 -arch ppc -install_name
    > /usr/local/lib/libnetsnmpagent.15.dylib -compatibility_version 17
    > -current_version 17.0
    > ld: warning in ../snmplib/.libs/libnetsnmp.dylib, file is not of required
    > architecture
    > ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
    > ld: warning, duplicate dylib /usr/local/lib/libgcc_s.1.dylib
    > (cd .libs && rm -f libnetsnmpagent.15.dylib && ln -s
    > libnetsnmpagent.15.1.0.dylib libnetsnmpagent.15.dylib)
    > (cd .libs && rm -f libnetsnmpagent.dylib && ln -s
    > libnetsnmpagent.15.1.0.dylib libnetsnmpagent.dylib)
    > ar cru .libs/libnetsnmpagent.a
    > /System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
    > snmp_agent.o snmp_vars.o agent_read_config.o agent_registry.o agent_index.o
    > agent_trap.o kernel.o agent_handler.o mibgroup/snmpv3/usmConf.o
    > mibgroup/agentx/master.o mibgroup/agentx/subagent.o
    > mibgroup/utilities/execute.o mibgroup/utilities/iquery.o
    > mibgroup/mibII/vacm_conf.o mibgroup/agentx/protocol.o
    > mibgroup/agentx/client.o mibgroup/agentx/master_admin.o
    > mibgroup/agentx/agentx_config.o snmp_perl.o
    > ranlib: archive member: .libs/libnetsnmpagent.a(DynaLoader.a) fat file for
    > cputype (18) cpusubtype (0) is not an object file (bad magic number)
    > ar: internal ranlib command failed
    > make[1]: *** [libnetsnmpagent.la] Error 1
    > make: *** [subdirs] Error 1
    > bonham:net-snmp-5.4.1 bonham$
    >
    >
    > Thanks you,
    >
    > Thomas


    l8*
    -lava (Brian A. Seklecki - Pittsburgh, PA, USA)
    http://www.spiritual-machines.org/

    "Guilty? Yeah. But he knows it. I mean, you're guilty.
    You just don't know it. So who's really in jail?"
    ~Maynard James Keenan


    -------------------------------------------------------------------------
    This SF.net email is sponsored by: Microsoft
    Defy all challenges. Microsoft(R) Visual Studio 2008.
    http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
    _______________________________________________
    Net-snmp-users mailing list
    Net-snmp-users@lists.sourceforge.net
    Please see the following page to unsubscribe or change other options:
    https://lists.sourceforge.net/lists/...net-snmp-users

  2. Question Re: Problems installing NET-SNMP on Mac 10.5.2

    I'm having the same problem.

    I'm on Mac OS X (10.4.11) (Darwin Kernel Version 8.11.1) and I'm attempting to compile net-snmp-5.4.1 using :

    ./configure --with-persistent-directory=/var/db/net-snmp \
    --with-defaults \
    --without-rpm \
    --with-mib-modules="host ucd-snmp/diskio" \
    --with-out-mib-modules="mibII/icmp host/hr_swrun" \
    --enable-as-needed \
    --without-kmem-usage

    The error message is:

    [...]
    ar cru .libs/libnetsnmpagent.a /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a snmp_agent.o snmp_vars.o agent_read_config.o agent_registry.o agent_index.o agent_trap.o kernel.o agent_handler.o mibgroup/snmpv3/usmConf.o mibgroup/agentx/master.o mibgroup/agentx/subagent.o mibgroup/utilities/execute.o mibgroup/utilities/iquery.o mibgroup/mibII/vacm_conf.o mibgroup/agentx/protocol.o mibgroup/agentx/client.o mibgroup/agentx/master_admin.o mibgroup/agentx/agentx_config.o snmp_perl.o
    ranlib: archive member: .libs/libnetsnmpagent.a(DynaLoader.a) fat file for cputype (7) cpusubtype (3) is not an object file (bad magic number)
    ar: internal ranlib command failed


    Any help with this would be much appreciated.

    Thank you.

+ Reply to Thread