[AGENT++] Help please with libagent++ undefined reference error on linux

O'Brien, Tara Tara.Obrien at AirservicesAustralia.com
Thu Aug 27 02:51:29 CEST 2009


Hi,

Versions:
O/S: Mandriva 2007.1
SNMP++: v3.2.24
AGENT++: v3.5.30
NEEDS: I have turned off SNMPv3 and logging in config_snmp_pp.h. All my
application does is reply to a snmp request.


As a newbie to snmp while I learning about and trying to get snmp
running I installed various snmp (libnet, net-snmp) rpms on my PC just
to see what did what etc.. I then installed SNMP++ and AGENT++ compiled
and installed no problem, got my application replying to SNMP requests,
I was happy.

I then went to do a build of my application on a new machine, I
installed SNMP++ and AGENT++ put the libraries in the correct place etc
and compiled my application and got the following error at the end of
compilation:

/usr/local/lib/libagent++.so: undefined reference to
'debughexcprintf(int, char const*, unsigned char const*, unsigned int)'
/usr/local/lib/libagent++.so: undefined reference to 'debugprintf(int,
char const*, ...)'
collect2: ld returned 1 exit status
make error 1


Not sure what this is as I don't use either of these functions, they are
in snmp++ but the error states it is in libagent++?

I got the libraries from my old PC and put them on the new PC and my
application compiled fine. I wanted to know what caused this problem as
I will need to do a new build of this soon so went back to original PC
and removed all rpms, libs etc related to SNMP (except snmp++ and
agent++) and compiled and got the above error, so I reinstalled all the
rpms and tar.gz and I still get the same error and don't understand what
is going on?

Do I need to installed rpms like net-snmp-utils or libnet-snmp10-devel
or net-snmp-5.4.2.1.tar.gz?? Or should I be able to installed snmp++ and
agent++ without having an snmp.conf file or mib directory? I do not have
libdes as I am not using v3 - this shouldn't be a problem should it? I
have search the Internet but have not found anyone else with this
problem.

Thank you very much for any help

Tara




More information about the AGENTPP mailing list