Good evening to you all I am trying to cross-compile the net-snmpd agent (or the mini-agent) to a powerpc system in which I already have openssl, busybox, uclibc, kernel 2.6.10 and a lot of things...
I have read all the messages I have found about cross compiling net-snmp, and here are more or less the flags I am using: --with-endianness=big --enable-mini-agent --with-cc=<--The path to my powerpc-linux-uclibc-gcc --with-default-snmp-version="3" --with-sys-contact="[EMAIL PROTECTED]" --with-sys-location="test-location" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --disable-applications --disable-manuals I also have redefined --prefix, --build, --host, --target to correct values (the same I use to cross-compile other packets). The question is that I have no problems in configuring the package, but when I begin the make I get the following error... "/home/mac/uSEL/trunk/output/board-lite5200/stage/bin/powerpc-linux-uclibc-ranlib .libs/libnetsnmpagent.a creating libnetsnmpagent.la (cd .libs && rm -f libnetsnmpagent.la && ln -s ../libnetsnmpagent.la libnetsnmpagent.la) /home/mac/uSEL/trunk/output/board-lite5200/stage/bin/powerpc-linux-uclibc-ranlib libnetsnmpagent.la /home/mac/uSEL/trunk/output/board-lite5200/stage/bin/powerpc-linux-uclibc-ranlib: libnetsnmpagent.la: File format not recognized make[2]: *** [libnetsnmpagent.la] Error 1 make[2]: Leaving directory `/home/mac/uSEL/trunk/output/board-lite5200/application-swt/build/net-snmp-5.2.1/agent' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/home/mac/uSEL/trunk/output/board-lite5200/application-swt/build/net-snmp-5.2.1' make: *** [/home/mac/uSEL/trunk/output/board-lite5200/application-swt/build/net-snmp-5.2.1/net-snmp] Error 2" This is quite curious because in the previous lines I have checked that the correct tools are being used: "/bin/sh ../libtool --mode=link /home/mac/uSEL/trunk/output/board-lite5200/stage/bin/powerpc-linux-uclibc-gcc -Os -mcpu=603e -mtune=603e -fomit-frame-pointer -frename-registers -Dlinux -rpath /home/mac/uSEL/trunk/output/board-lite5200/stage/lib -version-info 7:1:2 -o libnetsnmpagent.la snmp_agent.lo snmp_vars.lo agent_read_config.lo agent_registry.lo agent_index.lo agent_trap.lo kernel.lo agent_handler.lo mibgroup/utilities/execute.lo mibgroup/snmpv3/usmConf.lo mibgroup/mibII/vacm_conf.lo rm -fr .libs/libnetsnmpagent.la .libs/libnetsnmpagent.* libs/libnetsnmpagent.* /home/mac/uSEL/trunk/output/board-lite5200/stage/bin/powerpc-linux-uclibc-gcc -shared snmp_agent.lo snmp_vars.lo agent_read_config.lo agent_registry.lo agent_index.lo agent_trap.lo kernel.lo agent_handler.lo mibgroup/utilities/execute.lo mibgroup/snmpv3/usmConf.lo mibgroup/mibII/vacm_conf.lo -Wl,-soname -Wl,libnetsnmpagent.so.5 -o .libs/libnetsnmpagent.so.5.2.1 (cd .libs && rm -f libnetsnmpagent.so.5 && ln -s libnetsnmpagent.so.5.2.1 libnetsnmpagent.so.5) (cd .libs && rm -f libnetsnmpagent.so && ln -s libnetsnmpagent.so.5.2.1 libnetsnmpagent.so) /home/mac/uSEL/trunk/output/board-lite5200/stage/bin/powerpc-linux-uclibc-ar cru .libs/libnetsnmpagent.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/utilities/execute.o mibgroup/snmpv3/usmConf.o mibgroup/mibII/vacm_conf.o" Thanks in advance for your help Miguel Angel ----------------------------------------- PLEASE NOTE ------------------------------------------- This message, along with any attachments, may be confidential or legally privileged. It is intended only for the named person(s), who is/are the only authorized recipients. If this message has reached you in error, kindly destroy it without review and notify the sender immediately. Thank you for your help. µSysCom uses virus scanning software but excludes any liability for viruses contained in any attachment. ------------------------------------ ROGAMOS LEA ESTE TEXTO ------------------------------- Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal. Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado. Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración. µSysCom utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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/listinfo/net-snmp-users