Hi all,
finally I succeded in making netsnmp-5.4 on HP-UX.
Following you can find the modifications I did, maybe can
be useful for others who will find same problems:
Modifications in Makefile's
* $HOME/net-snmp-5.4/agent/helpers/Makefile
* $HOME/net-snmp-5.4/agent/mibgroup/Makefile
I did change the line
CFLAGS = -g -O2 -Uhpux11 -Dhpux11=hpux11
with
CFLAGS = -g -O2 -Uhpux11 -Dhpux11=hpux11 -D_XOPEN_SOURCE_EXTENDED=1
* $HOME/net-snmp-5.4/agent/Makefile
* $HOME /net-snmp-5.4/apps/snmpnetstat/Makefile
* $HOME/net-snmp-5.4/apps/Makefile
* $HOME/net-snmp-5.4/snmplib/Makefile
I did change the line
CFLAGS = -g -O2 -Uhpux11 -Dhpux11=hpux11
with
CFLAGS = -g -O2 -Uhpux11 -Dhpux11=hpux11 -D_XOPEN_SOURCE_EXTENDED=1
-D_LABEL_T
Furthermore, in $HOME/net-snmp-5.4/agent/Makefile it has been removed
a "\" at the end of lines 300 - 395 - 410.
Modifications in net-snmp-config.h
In $HOME/net-snmp-5.4/include/net-snmp/net-snmp-config.h I did the
following changes
#define HAVE_ARPA_INET_H 1
#define HAVE_NETDB_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_NET_IF_H 1
#define HAVE_NET_ROUTE_H 1
/* #define HAVE_SYS_MBUF_H 1 */
-D_XOPEN_SOURCE_EXTENDED=1 is set to avoid the following problem:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
But now, bifore to perform "make install" I'm trying
"make test", all with the same result:
2: testing SNMPv2c get of system.sysUpTime.0...
/sema/home/palmenti/net-snmp-5.4/testing/eval_onescript.sh[27]: 6619
Abort(coredump)
(no pid file(s) found) FAIL
All tests give the same result Abort(coredump)
(no pid file(s) found) FAIL
Any ideas?
Thanks all.
Nunzio Palmentieri
Web Care Solution
Atos Origin
Via Antiniana 2/a
80078 Pozzuoli (NA) - ITALY
Direct +39 081 6103 388
Mobile +39 335 1214 806
Fax +39 081 6103 200
e-mail mailto:[EMAIL PROTECTED]
Web www.atosorigin.com
This electronic message contains information from Atos Origin, which may
be privileged and confidential. The information is intended to be use of
the individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited.
-----Messaggio originale-----
Da: Thomas Anders [mailto:[EMAIL PROTECTED]
Inviato: martedì 27 marzo 2007 16.34
A: Palmentieri Nunzio
Cc: net-snmp-coders@lists.sourceforge.net
Oggetto: Re: netsnmp on HP-UX 11.11
Palmentieri Nunzio wrote:
> I'm having a lot of problems in compilino netsnmp5.2.2 on HP-UX.
Then why aren't you trying with a more recent version (either 5.2.4.rc1
or latest 5.4) instead which include important bug/build fixes?
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders