lefcha/imapfilter — Issue #26: Cannot compile from source
Author: jallakim
Created: 2012-01-15 12:40:29+00:00
State: open

Hi,

I cannot seem to compile imapfilter from source. The error(s) I get, is as follows;

```
jocke@omg:~/imapfilter/imapfilter-src$ make all
cd src && make all
make[1]: Entering directory `/home/jocke/imapfilter/imapfilter-src/src'
cc -Wall -O -DMAKEFILE_SHAREDIR='"/usr/local/share/imapfilter"' -c -o auth.o auth.c
In file included from auth.c:4:
imapfilter.h:9:17: error: lua.h: No such file or directory
imapfilter.h:10:20: error: lualib.h: No such file or directory
In file included from auth.c:4:
imapfilter.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
imapfilter.h:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘get_option_number’
imapfilter.h:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘get_table_number’
imapfilter.h:164: error: expected declaration specifiers or ‘...’ before ‘lua_Number’
imapfilter.h:183: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
imapfilter.h:284: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
make[1]: *** [auth.o] Error 1
make[1]: Leaving directory `/home/jocke/imapfilter/imapfilter-src/src'
make: *** [all] Error 2
jocke@omg:~/imapfilter/imapfilter-src$ ls -alh src/lua*
-rw-r--r-- 1 jocke jocke 5.8K Jan 14 22:05 src/lua.c
-rw-r--r-- 1 jocke jocke 12K Jan 15 00:29 src/lua.h
-rw-r--r-- 1 jocke jocke 1.1K Jan 15 00:29 src/lualib.h
```

Anything I'm doing wrong?