Home > Archive > Slony1 PostgreSQL Replication > August 2005 > error of HAVE_NETSNMP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author error of HAVE_NETSNMP
Hiroshi Saito

2005-08-25, 3:37 am

Hi.

An error takes place by NETSNMP. :-(
I have tried this by FreeBSD. (net-snmp-5.1.3.1)

(Situation)
snmp_thread.c:10:15: c.h: No such file or directory
In file included from slon.h:18,
from snmp_thread.c:12:
....
....

Correction of slon/Makefile seems to be necessity.
There was another problem further after this.

In file included from /usr/local/include/net-snmp/definitions.h:22,
from /usr/local/include/net-snmp/net-snmp-includes.h:68,
from snmp_thread.c:14:
/usr/local/include/net-snmp/types.h:56: redefinition of `socklen_t'
/usr/include/netdb.h:73: `socklen_t' previously declared here
/usr/local/include/net-snmp/types.h:60: redefinition of `in_addr_t'
/usr/include/sys/types.h:159: `in_addr_t' previously declared here

It is likely to have the necessity for a script in config/acx_netsnmp.m4.

AC_DEFINE(HAVE_SOCKL
EN_T, 1, [Define if <sys/socket.h> defines socklen_t.])
AC_DEFINE(HAVE_IN_AD
DR_T,1, [Define if <sys/types.h> defines in_addr_t.])
( This description is diffident. )

Furthermore... It happens that a library is not found.

snmp_thread.o: In function `init_nstAgentSubage
ntObject':
/home/saito/Slony-I/slony1-engine-1.1.1-20050822/src/slon/snmp_thread.c:28: undefined
reference to `netsnmp_register_in
t_instance'
....
....

I may have missed something.
However, I think that this correction is required for the time being.

Regards,
Hiroshi Saito

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com