I solved my problem: ./configure --without-kmem-usage --enable-static --enable-shared --prefix=/opt/freeware/net-snmp --with-default-snmp-version="3" --with-sys-location="Almere" --with-sys-contact="[email protected]" --with-persistent-directory="/etc/snmp" --with-logfile="/var/log/snmpd.log" --with-openssl --with-pic gave the message below:
configure: WARNING: libperfstat.h: present but cannot be compiled configure: WARNING: libperfstat.h: check for missing prerequisite headers? configure: WARNING: libperfstat.h: see the Autoconf documentation configure: WARNING: libperfstat.h: section "Present But Cannot Be Compiled" configure: WARNING: libperfstat.h: proceeding with the preprocessor's result configure: WARNING: libperfstat.h: in the future, the compiler will take precedence configure: WARNING: ## ---------------------------------------------------- ## configure: WARNING: ## Report this to [email protected] ## configure: WARNING: ## ---------------------------------------------------- ## found patch: 2886598 which stated to add #include <sys/protosw.h> to all files which include libperfstat.h before the include of libperfstat.h added: #include <sys/protosw.h> to the following files: agent/mibgroup/hardware/cpu/cpu_perfstat.c agent/mibgroup/hardware/memory/memory_aix.c agent/mibgroup/host/hr_storage.c agent/mibgroup/mibII/icmp.c agent/mibgroup/mibII/ip.c agent/mibgroup/mibII/tcp.c agent/mibgroup/mibII/udp.c agent/mibgroup/ucd-snmp/diskio.c agent/mibgroup/ucd-snmp/loadave.c agent/mibgroup/ucd-snmp/memory_aix4.c One question remains though, how do I generate an rpm out of this??? Met vriendelijke groet, Willem Hilders SARA ICT Services Email: [email protected] Telefoon: 036-5238013 Fax: 036-5238030 -----Original Message----- From: Thomas Anders [mailto:[email protected]] Sent: dinsdag 26 januari 2010 17:19 To: [email protected] Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails Willem Hilders wrote: > When I compile net-snmp version 5.5 on my AIX 6.1 machine I get the > errors underneath when I issue the make statement. Any one any idea how > to solve this > > In file included from /usr/include/sys/cred.h:49, > from /usr/include/sys/file.h:32, > from system.c:110: > > /usr/include/sys/secattr.h:50: error: parse error before "rid_t" What compiler (and version) are you using? Do you by chance also have another compiler available? Please note that the compiler complains about a system header file, not about the net-snmp source. Please have a look into /usr/include/sys/secattr.h to find out what the compiler is choking on. +Thomas ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
