snmp++/agent++ on freebsd

Tam, David dtam____infolibria.com
Fri Oct 12 21:04:12 CEST 2001


Try this : 

For compile: 
g++ -g -fpermissive -c

For link:
g++ -O -pipe  -L../agent++/src -L../snmp++/src -L../agentX++/src -lagentx++
-lagent++ -lsnmp++ -lc_r 



 -----Original Message-----
From: 	Peter Loveman [mailto:loveman____celion.com] 
Sent:	Friday, October 12, 2001 1:40 PM
To:	Agent++ Mailing List (E-mail)
Subject:	snmp++/agent++ on freebsd

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