Hello Ricardo,
Trying to install Openser1.3.2.... everything is OK and fine... but when I try to add support for snmp there are errors.. Dig dep into google, recheck all dependencies and didn't succeed... My env is FreeBSD 7.0-STABLE i386 The full net-snmp package is installed: atila# pkg_info | grep net-snmp net-snmp-5.3.2_3 An extendable SNMP implementation
For some reason, the include directory for net-snmp does not get defines in Makefile (the ifeq ($(BUILDER),) condition fails).
As a quick fix, add the line DEFS +=-I$(LOCALBASE)/include just after the first else:
BUILDER = $(shell which net-snmp-config) ifeq ($(BUILDER),) DEFS +=-I$(LOCALBASE)/include BUILDAGENTLIBS =-L$(LOCALBASE)/lib -lnetsnmpmibs - lnetsnmpagent \ -lnetsnmphelpers -lnetsnmp INSTALLMIBDIR = $(cfg-prefix)/share/snmp/mibs else DEFS +=-I$(LOCALBASE)/include BUILDAGENTLIBS = $(shell net-snmp-config --agent-libs) INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config -- prefix)/share/snmp/mibs endif
This will make that module compiles.
Saludos JesusR.
These are the error messages....
make modules/libsnmpstats modules.... Compiling alarm_checks.c gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"snmpstats"' -DNAME='"openser"' -DVERSION='"1.3.2- notls"' -DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 4.2.1"' -D__CPU_i386 -D__OS_freebsd -D__SMP_no -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS - DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL - DHAVE_CONNECT_ECONNRESET_BUG -DHAVE_TIMEGM -DHAVE_NETINET_IN_SYSTM -DHAVE_KQUEUE -DHAVE_SELECT -c alarm_checks.c -o alarm_checks.o In file included from alarm_checks.c:38: openserObjects.h:41:38: error: net-snmp/net-snmp-config.h: No such file or directory openserObjects.h:42:40: error: net-snmp/net-snmp-includes.h: No such file or directory openserObjects.h:43:52: error: net-snmp/agent/net-snmp-agent- includes.h: No such file or directory
If I edit each file and hardcode the path ... /usr/local/include/net- snmp/... there are no errors... What am I missing in making sure the path to the include files are OK... Tried a couple options but didn't succeed... tehre are tons of include files into the src....
Regards
Ricardo Ferreira Yes, we do run Openser www.vipway.com.br Enterprise VoIP Services
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
Saludos JesusR.
------------------------------------ Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------------