gcc - Error compiling imapfilter 2.4.1 in CentOS 5.6 -
gcc - Error compiling imapfilter 2.4.1 in CentOS 5.6 -
i trying compile imapfilter 2.4.1 ( https://github.com/lefcha/imapfilter ) in centos 5.6. believe i've got dependencies sorted when run create get:
make[1]: entering directory `/home/src/imapfilter-2.4.1/src' cc -wall -o -dmakefile_sharedir='"/usr/local/share/imapfilter"' -c -o core.o core.c core.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ifcorelib’ core.c: in function ‘ifcore_append’: core.c:947: warning: implicit declaration of function ‘lua_strlen’ core.c: in function ‘luaopen_ifcore’: core.c:1162: warning: implicit declaration of function ‘lual_register’ core.c:1162: error: ‘ifcorelib’ undeclared (first utilize in function) core.c:1162: error: (each undeclared identifier reported 1 time core.c:1162: error: each function appears in.) make[1]: *** [core.o] error 1 make[1]: leaving directory `/home/src/imapfilter-2.4.1/src' make: *** [all] error 2
based on other user comments , file revision dates sure should compile. guessing i'm missing library somewhere. i'll appreciate help can on this.
starting first error message:
core.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ifcorelib’
line 41 of core.c is:
static const lual_reg ifcorelib[] = {
cryptic message gcc means knows nil lual_reg
, thinks variable name. goes panic when reads second variable name in same definition/declaration. lual_reg
should struct.
so, seems problems located in lua development headers. may have old or modern lua package.
the imapfilter's github's readme says:
compile time requirements lua (version 5.1)
are sure lua 5.1 , lua-devel (or other bundle lua headers) 5.1 too?
gcc compilation lua centos imap
Comments
Post a Comment