snmp++/agent++ on freebsd

Peter Loveman loveman____celion.com
Fri Oct 12 19:40:09 CEST 2001


I am trying to build snmp++v3.1.3i on FreeBsd.  I get the following
errors which appear to be due to the 3.1.3 release.  If I use the linux
makefile (I'm not sure if this is the best approach, but there's no
freebsd makefile and it worked ok in the past) I get the following
errors:

gmake -f Makefile.linux
g++ -D_XPG4_EXTENDED -Dsun -D__unix -Wall  -I../include -I./
-I../../libdes -g -
o address.o -c address.cpp
address.cpp: In method `int IpAddress::parse_address(const char *)':
address.cpp:523: implicit declaration of function `int
gethostbyname_r(...)'
address.cpp:523: assignment to `hostent *' from `int' lacks a cast
address.cpp: In method `int IpAddress::addr_to_friendly()':
address.cpp:589: implicit declaration of function `int
gethostbyaddr_r(...)'
address.cpp:589: assignment to `hostent *' from `int' lacks a cast
gmake: *** [address.o] Error 1

Anybody out there running the latests on freebsd and have a freebsd
makefile/patch/other solutions that will let the latest snmp++ lib build
on freebsd?

Thanks in advance,
Peter Loveman
Celion Networks



More information about the AGENTPP mailing list