lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello!

I have trouble to compile the luasnmp lib for my specific hardware. My
goal is to run lua snmp-scripts on a uclinux. Therefor I use the
compiler m68k-uclinux-gcc (http://www.codesourcery.com/sgpp/lite/arm).
Lua, net-snmp etc. are successfully compiled and my uclinux run
without problems.

So, now I would like to compile luasnmp for my environment and this is
the problem. I have tried different compile-statements, but none of
them run without errors. I write you my "best" try:

m68k-uclinux-gcc -I.
-I/.../uClinux-dist/user/net-snmp/include/net-snmp/library
-I/.../uClinux-dist/user/lua/src
-I/.../uClinux-dist/user/luasnmp/src/compat-5.1r5/
-I/.../uClinux-dist/user/net-snmp/include/ -I/.../uClinux-dist/include
-I/.../uClinux-dist/user/perl -I/.../uClinux-dist/uClibc/include
-Icompat-5.1r5 -DCMU_COMPATIBLE -DUSE_SNMPTRAPD -DCOMPAT_H
-DVERSION='"1.0.6-2"'  -Wall -O2 -fPIC   -c -o nm_snmp.o nm_snmp.c

OUTPUT:
nm_snmp.c: In function 'nm_snmp_open':
nm_snmp.c:743: error: 'SNMP_VERSION_2c' undeclared (first use in this function)
nm_snmp.c:743: error: (Each undeclared identifier is reported only once
nm_snmp.c:743: error: for each function it appears in.)
nm_snmp.c:777: error: 'usmHMACMD5AuthProtocol' undeclared (first use
in this function)
nm_snmp.c:796: error: 'usmDESPrivProtocol' undeclared (first use in
this function)
nm_snmp.c: In function 'luaopen_snmp_core':
nm_snmp.c:2976: error: expected ')' before 'SYSTEM'
nm_snmp.c:2976: error: too few arguments to function 'lua_pushlstring

Anybody an idea what libs I should include? Or know anybody that
luasnmp don't run on a uclinux os?

Thanks a lot to think about.

Best regards
Simon