Russell Markus wrote:
> I am trying to compile the samples from the tutorials on writing SNMP
> agent modules.  I downloaded the files nstAgentPluginObject.c,
> nstAgentPluginObject.h, and the Makefile.  When I issue the command
> "make nstAgentPluginOBject.so" I get the following error:
> 
> gcc -I. `net-snmp-config --cflags` -fPIC -shared -c -o
> nstAgentPluginObject.o nstAgentPluginObject.c In file included from
> /usr/include/net-snmp/agent/all_helpers.h:16,
>                  from
> /usr/local/include/net-snmp/agent/net-snmp-agent-includes.h:16,
>                  from nstAgentPluginObject.c:8:
> /usr/include/net-snmp/agent/cache_handler.h:49: error: expected
> specifier-qualifier-list before 'netsnmp_handler_args'
> make: *** [nstAgentPluginObject.so] Error 1
> 
> I am running net-snmp 5.3.1-12 as installed by Fedora Core 6.  Any
> help in getting this to compile would be greatly appreciated.

Are you by chance mixing different net-snmp installations on the machine in
question? Having /usr/include/net-snmp and /usr/local/include/net-snmp
suspiciously looks like it. Otherwise, you'd need to explain your setup a bit 
more.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to