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
From: Fulko Hew [mailto:[email protected]]
Sent: dinsdag 26 januari 2010 17:07
To: [email protected]
Cc: Willem Hilders; [email protected]
Subject: Re: compiling net-snmp 5.5 on AIX 6.1 fails
On Tue, Jan 26, 2010 at 10:14 AM,
<[email protected]<mailto:[email protected]>> wrote:
William,
I have had successful compilations on AIX 5.1 and 5.3 with 5.5. What
is the configure line you used and gcc version?
John
Quoting Willem Hilders <[email protected]<mailto:[email protected]>>:
> Hi All
>
> 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
> Thanks in advance
>
> 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"
> /usr/include/sys/secattr.h:65: error: parse error before '}' token
> /usr/include/sys/secattr.h:70: error: parse error before "authnum_t"
... snip...
I recognize this one. I just had a machine moved from AIX 5.3 to 6.1, and a
simple
./configure; make resulted in these errors.
In _my_ case I had to have the guy _also_ install a newer version of the gcc
toolchain
because the old one points to 'old' copies of .h files rather than the 'new'
ones that
know how to resolve these symbols.
Also don't forget to use the patches described in
http://sourceforge.net/tracker/index.php?func=detail&aid=2886598&group_id=12694&atid=312694
I searched the patch database for AIX & 6
to get the title 'patch that allows net-snmp 5.4.2.1 to compile on AIX 6.1'
------------------------------------------------------------------------------
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