Hi All: Anybody know which version can used dlmod at powerpc with ELDK 3.1.1? I'v try5.0.6,5.0.7,5.0.8,5.0.9, but these version net-snmp all got compiler error, only 5.1.3.1 can compiler ok but it still not enable dlmod by --enable-share.
I know ELDK 3.1.1 has include net-snmp 5.0.6 and it can used dlmon, but i don't know how to build it from source code. [EMAIL PROTECTED] SPECS]# unset CROSS_COMPILE [EMAIL PROTECTED] SPECS]# /opt/eldk/usr/bin/rpmbuild -ba net-snmp.spec Executing(%prep): /bin/sh -e /opt/eldk/var/tmp/rpm-tmp.69113 + umask 022 + cd /opt/eldk/usr/src/denx/BUILD + cd /opt/eldk/usr/src/denx/BUILD + rm -rf net-snmp-5.0.6 + /bin/gzip -dc /opt/eldk/usr/src/denx/SOURCES/net-snmp-5.0.6.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd net-snmp-5.0.6 + echo 'Patch #9 (net-snmp-5.0.1-initializer.patch):' Patch #9 (net-snmp-5.0.1-initializer.patch): + patch -p1 -b --suffix .initializer -s + echo 'Patch #10 (net-snmp-5.0.1-nolibelf.patch):' Patch #10 (net-snmp-5.0.1-nolibelf.patch): + patch -p1 -b --suffix .nolibelf -s + echo 'Patch #11 (net-snmp-5.0.6-syslog.patch):' Patch #11 (net-snmp-5.0.6-syslog.patch): + patch -p1 -b --suffix .syslog -s + echo 'Patch #12 (net-snmp-5.0.6-nodb.patch):' Patch #12 (net-snmp-5.0.6-nodb.patch): + patch -p1 -b --suffix .nodb -s + echo 'Patch #13 (net-snmp-5.0.6-compat.patch):' Patch #13 (net-snmp-5.0.6-compat.patch): + patch -p1 -b --suffix .compat -s + echo 'Patch #14 (net-snmp-5.0.6-smux.patch):' Patch #14 (net-snmp-5.0.6-smux.patch): + patch -p1 -b --suffix .smux -s + echo 'Patch #15 (net-snmp-5.0.6-libtool.patch):' Patch #15 (net-snmp-5.0.6-libtool.patch): + patch -p1 -b --suffix .libtool -s + echo 'Patch #16 (net-snmp-5.0.6-smux_pktsz_err_rpt.patch):' Patch #16 (net-snmp-5.0.6-smux_pktsz_err_rpt.patch): + patch -p1 -b --suffix .smux_pktsz_err_rpt -s + perl -pi -e 's|'\''\$install_libdir'\''|'\''/usr/lib'\''|' ltmain.sh + exit 0 Executing(%build): /bin/sh -e /opt/eldk/var/tmp/rpm-tmp.58764 + umask 022 + cd /opt/eldk/usr/src/denx/BUILD + cd net-snmp-5.0.6 + endianess=little + CFLAGS='-O2 -g -march=i386 -mcpu=i686' + export CFLAGS + CXXFLAGS='-O2 -g -march=i386 -mcpu=i686' + export CXXFLAGS + FFLAGS='-O2 -g -march=i386 -mcpu=i686' + export FFLAGS + ./configure --host=i386-pc-linux-gnu --build=i386-pc-linux-gnu -- target=i386-denx-linux --program-prefix= --prefix=/usr --exec- prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc -- datadir=/usr/share --includedir=/usr/include/net-snmp --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-static -- enable-shared '--with-cflags=-O2 -g -march=i386 -mcpu=i686' --with-sys- location=Unknown --with-logfile=/var/log/snmpd.log --with-persistent- directory=/var/net-snmp '--with-mib-modules=host agentx smux' --with- libwrap=/usr/lib --sysconfdir=/etc --enable-ipv6 --enable-ucd-snmp- compatibility --with-endianness=little [EMAIL PROTECTED] creating cache ./config.cache using default enterprise.net-snmp using default enterprise sysOID NET-SNMP-MIB::netSnmpAgentOIDs... using default notifications NET-SNMP-MIB::netSnmpNotifications checking if I need to feed myself to ksh... no checking for gcc... gcc checking whether the C compiler (gcc -O2 -g -march=i386 -mcpu=i686 ) works... yes checking whether the C compiler (gcc -O2 -g -march=i386 -mcpu=i686 ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking for Cygwin environment... no checking for mingw32 environment... no checking for executable suffix... no checking host system type... i386-pc-linux-gnu checking build system type... i386-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for object suffix... o checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether -lc should be explicitly linked in... no creating libtool checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... (cached) yes checking whether make sets ${MAKE}... yes checking for ps... /bin/ps checking for perl... /usr/bin/perl checking for whoami... whoami checking for sed... sed checking for autoconf... no checking for autoheader... no checking for uname... /bin/uname checking for working const... yes checking for inline... inline checking for net-snmp version number... 5.0.6 checking for developer gcc flags... none checking host system type... i386-pc-linux-gnu checking target system type... i386-denx-linux-gnu checking build system type... i386-pc-linux-gnu checking for system include file... net-snmp/system/linux.h checking for machine-type include file... net-snmp/machine/generic.h checking for gcc... /usr/bin/gcc checking for additional cpp flags... -x c checking ipv6 stack type... linux-glibc, yes, using libc checking whether we have to build PIC code... no checking for and configuring transport modules to use... Callback Unix TCP UDP TCPIPv6 UDPIPv6. checking for security modules to use... usm checking for and configuring mib modules to use... mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities host agentx smux mibII/ipv6. checking for and configuring mib modules pieces to use... mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities host agentx smux mibII/ipv6 mibII/system_mib mibII/sysORTable mibII/at mibII/interfaces mibII/snmp_mib mibII/tcp mibII/icmp mibII/ip mibII/udp mibII/vacm_vars mibII/setSerialNo ucd-snmp/memory ucd- snmp/vmstat ucd-snmp/proc ucd-snmp/versioninfo ucd-snmp/pass ucd- snmp/pass_persist ucd-snmp/disk ucd-snmp/loadave ucd-snmp/extensible ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod ucd-snmp/proxy snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmUser notification/snmpNotifyTable notification/snmpNotifyFilterTable notification/snmpNotifyFilterProfileTable target/snmpTargetAddrEntry target/snmpTargetParamsEntry target/target target/target_counters agent/nsTransactionTable agent/nsModuleTable agentx/master agentx/subagent utilities/override host/hr_system host/hr_storage host/hr_device host/hr_other host/hr_proc host/hr_network host/hr_print host/hr_disk host/hr_partition host/hr_filesys host/hr_swrun host/hr_swinst smux/smux mibII/var_route mibII/route_write util_funcs mibII/kernel_linux mibII/tcpTable mibII/ipAddr mibII/udpTable mibII/vacm_context header_complex agentx/protocol agentx/client agentx/master_admin agentx/agentx_config. checking if directories need to be created... . checking default mib files to read... IP-MIB:IF-MIB:TCP-MIB:UDP- MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:UCD-SNMP-MIB:UCD-DEMO- MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-MIB:HOST- RESOURCES-TYPES:IPV6-ICMP-MIB:IPV6-MIB:IPV6-TCP-MIB:IPV6-UDP-MIB:SNMP- VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:UCD-DLMOD-MIB:SNMP-FRAMEWORK- MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM checking for location of system kernel... unknown checking for mount table location... /etc/mtab checking for location of swap device... none checking for asin in -lm... yes checking for gethostbyname... yes checking for getservbyname... yes checking for kstat_lookup in -lkstat... no checking for nlist in -lmld... no checking for EVP_md5 in -lcrypto... yes checking for AES_cfb128_encrypt... yes checking for tcpd.h... yes checking for TCP wrappers library -lwrap... yes checking for zlib.h... yes checking for gzread in -lz... yes checking for bzread in -lbz2... no checking for BZ2_bzread in -lbz2... yes checking for poptParseArgvString in -lpopt... yes checking for Fopen in -lrpmio... yes checking for rpmGetFilesystemList in -lrpm... yes checking for kvm_read in -lkvm... no checking for dlopen in -ldl... (cached) yes checking for kvm_openfiles... no checking for nlist... yes checking for knlist... no checking for kvm_getprocs... no checking whether we need -ldevstat for diskio MIB... no checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for sys/wait.h that is POSIX.1 compatible... yes checking for stdarg.h... yes checking for string.h... yes checking for fcntl.h... yes checking for limits.h... yes checking for sys/file.h... yes checking for sys/ioctl.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for netinet/tcpip.h... no checking for netinet/in.h... yes checking for netinet/ip.h... yes checking for netinet/ip_icmp.h... yes checking for net/if.h... yes checking for netdb.h... yes checking for sys/dmap.h... no checking for machine/pte.h... no checking for xti.h... no checking for sys/sockio.h... no checking for sys/socket.h... yes checking for sys/un.h... yes checking for fstab.h... yes checking for sys/fs.h... no checking for mtab.h... no checking for ufs/fs.h... no checking for ufs/ffs/fs.h... no checking for sys/fixpoint.h... no checking for machine/param.h... no checking for sys/vm.h... no checking for vm/vm.h... no checking for sys/vmmeter.h... no checking for sys/vmparam.h... no checking for sys/vmmac.h... no checking for sys/vmsystm.h... no checking for sys/mbuf.h... no checking for sys/time.h... yes checking for sys/swap.h... yes checking for inet/mib2.h... no checking for sys/statvfs.h... yes checking for sys/vfs.h... yes checking for sys/mnttab.h... no checking for sys/user.h... yes checking for sys/proc.h... no checking for sys/select.h... yes checking for mntent.h... yes checking for sys/mntent.h... no checking for kstat.h... no checking for utsname.h... no checking for sys/utsname.h... yes checking for sys/cdefs.h... yes checking for getopt.h... yes checking for locale.h... yes checking for pthread.h... yes checking for sys/loadavg.h... no checking for regex.h... yes checking for linux/tasks.h... no checking for pwd.h... yes checking for grp.h... yes checking for utmpx.h... yes checking for malloc.h... yes checking for sys/param.h... yes checking for net/if_dl.h... no checking for sys/sysctl.h... yes checking for stdlib.h... yes checking for net/if_mib.h... no checking for net/if_types.h... no checking for net/if_var.h... no checking for sys/queue.h... yes checking for osreldate.h... no checking for machine/types.h... no checking for sys/socketvar.h... yes checking for sys/conf.h... no checking for netinet/in_systm.h... yes checking for netinet/tcp.h... yes checking for netinet/udp.h... yes checking for netinet/in_var.h... no checking for netinet/if_ether.h... yes checking for netinet/ip_var.h... no checking for netinet/tcp_timer.h... no checking for netinet/tcp_var.h... no checking for netinet/tcp_fsm.h... no checking for netinet/udp_var.h... no checking for netinet/icmp_var.h... no checking for sys/protosw.h... no checking for nlist.h... no checking for ioctls.h... no checking for asm/page.h... yes checking for netipx/ipx.h... yes checking for arpa/inet.h... yes checking for kvm.h... no checking for sys/pool.h... no checking for uvm/uvm_param.h... no checking for uvm/uvm_extern.h... no checking for vm/vm_param.h... no checking for vm/vm_extern.h... no checking for sys/mount.h... yes checking for vm/swap_pager.h... no checking for ufs/ufs/dinode.h... no checking for sys/stat.h... yes checking for sys/vnode.h... no checking for ufs/ufs/quota.h... no checking for ufs/ufs/inode.h... no checking for sys/hashing.h... no checking for sys/tcpipstats.h... no checking for sys/sysmp.h... no checking for err.h... yes checking for sys/filio.h... no checking for sgtty.h... yes checking for sys/statfs.h... yes checking for net/route.h... yes checking for sys/dkio.h... no checking for sys/diskio.h... no checking for sys/pstat.h... no checking for linux/hdreg.h... yes checking for pkglocs.h... no checking for pkginfo.h... no checking for winsock.h... no checking for io.h... no checking for sys/stream.h... no checking for netinet/ip6.h... yes checking for netinet6/in6_var.h... no checking for netinet6/in6_pcb.h... no checking for netinet6/ip6_var.h... no checking for netinet6/tcp6.h... no checking for netinet6/tcp6_fsm.h... no checking for netinet6/nd6.h... no checking for netinet6/tcp6_timer.h... no checking for netinet6/tcp6_var.h... no checking for dlfcn.h... (cached) yes checking for search.h... yes checking for rpmio.h... no checking for rpm/rpmio.h... yes checking for netinet/in_pcb.h... no checking for sys/disklabel.h... no checking for openssl/hmac.h... yes checking for openssl/evp.h... yes checking for openssl/aes.h... yes checking for openssl/des.h... yes checking for lpstat... /usr/bin/lpstat checking for cgetnext... no checking for authentication support... OpenSSL Support checking for off_t... yes checking for pid_t... yes checking whether time.h and sys/time.h may both be included... yes checking for socklen_t... yes checking for in_addr_t... yes checking for correct flags to ps... configure: error: Endianness has been specified, but you are not cross- compiling. error: Bad exit status from /opt/eldk/var/tmp/rpm-tmp.58764 (%build) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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