Fails to compile

jmkg

29-06-2004 11:50:54

OS Debian Stable
Relevant output
g++ -DHAVE_CONFIG_H -I. -I. -I../src/include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -c -o settings.o settings.cpp
source='snmp.cpp' object='snmp.o' libtool=no \
depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../src/include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -c -o snmp.o snmp.cpp
In file included from /usr/include/ucd-snmp/ucd-snmp-includes.h20,
from snmp.cpp34
/usr/include/ucd-snmp/system.h79 syntax error before `('
make[1] *** [snmp.o] Error 1
make[1] Leaving directory `/usr/src/netmrg-0.16/src'
make *** [all-recursive] Error 1
m1/usr/src/netmrg-0.16# dpkg -l|grep snmp
ii libsnmp-base 4.2.3-2 NET SNMP (Simple Network Management Protocol
ii libsnmp-perl 4.2.3-2 NET SNMP (Simple Network Management Protocol
ii libsnmp-sessio 0.90-1 Perl support for accessing SNMP-aware device
ii libsnmp4.2 4.2.3-2 NET SNMP (Simple Network Management Protocol
ii libsnmp4.2-dev 4.2.3-2 NET SNMP (Simple Network Management Protocol
ii libsnmpkit-dev 0.9-4.woody.2 multithreaded SNMP connection library
ii libsnmpkit2 0.9-4.woody.2 multithreaded SNMP connection library
ii snmp 4.2.3-2 NET SNMP (Simple Network Management Protocol
ii snmpd 4.2.3-2 NET SNMP (Simple Network Management Protocol
ii snmptrapfmt 1.03 A configurable snmp trap handler daemon for
m1/usr/src/netmrg-0.16# dpkg -l|grep libstd
ii libstdc++2.10- 2.95.4-11woody The GNU stdc++ library (development files)
ii libstdc++2.10- 2.95.4-11woody The GNU stdc++ library

Hope someone can shed some light on the matter?

Thanks

James

jmkg

29-06-2004 12:45:32

CVS version compiles fine. There is a commented fix for Debian Stable.

Jorge Matias

30-06-2004 13:49:46

[quoted66c928f3e="jmkg"]OS Debian Stable
Relevant output
...
g++ -DHAVE_CONFIG_H -I. -I. -I../src/include -I./include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/libxml2 -I/usr/include/ucd-snmp -g -O2 -c -o snmp.o snmp.cpp
In file included from /usr/include/ucd-snmp/ucd-snmp-includes.h20,
from snmp.cpp34
/usr/include/ucd-snmp/system.h79 syntax error before `('
make[1] *** [snmp.o] Error 1
make[1] Leaving directory `/usr/src/netmrg-0.16/src'
make *** [all-recursive] Error 1
...
Thanks

James[/quoted66c928f3e]

I'm using Debian unstable with NetMRG v0.16 and I didn't have any problems.

keb

01-07-2004 20:10:39

[quote1f6c1af5dd="Jorge Matias"]I'm using Debian unstable with NetMRG v0.16 and I didn't have any problems.[/quote1f6c1af5dd]

Good to hear! At least they've fixed that in sarge. I was trying to find time to install that for testing, but since we've got at least 1 good report, I'm happy.

- Kevin