lefcha/imapfilter — Issue #32: Cannot compile from source using ubuntu 10.04
Author: schmidi
Created: 2012-03-05 17:04:02+00:00
State: open

After updating my ubuntu server 10.04, i get the bug described on launchpad: https://bugs.launchpad.net/ubuntu/+source/imapfilter/+bug/868314

So i tried to compile the latest version from the git repo.

First I got this error https://github.com/lefcha/imapfilter/issues/26. With the given solution I could solve the error but I also get a new one.

```
make
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o lua.o lua.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o memory.o memory.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o misc.o misc.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o namespace.o namespace.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o pcre.o pcre.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o regexp.o regexp.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o request.o request.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o response.o response.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o session.o session.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o signal.o signal.c
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o socket.o socket.c
socket.c: In function ‘open_secure_connection’:
socket.c:98: warning: passing argument 1 of ‘SSL_CTX_new’ discards qualifiers from pointer target type
/usr/include/openssl/ssl.h:1333: note: expected ‘struct SSL_METHOD *’ but argument is of type ‘const struct SSL_METHOD *’
cc -Wall -O -DCONFIG_SHAREDIR='"/usr/local/share/imapfilter"' -I/usr/include/lua5.1 -c -o system.o system.c
system.c: In function ‘ifsys_daemon’:
system.c:280: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
cc -o imapfilter auth.o buffer.o cert.o core.o file.o imapfilter.o list.o log.o lua.o memory.o misc.o namespace.o pcre.o regexp.o request.o response.o session.o signal.o socket.o system.o -lm -llua -lpcre -lssl -lcrypto
/usr/bin/ld: cannot find -llua
collect2: ld returned 1 exit status
make: *** [imapfilter] Fehler 1
```
I installed the following packages:
```
liblua5.1-0-dev 5.1.4-5 Simple, extensible, embeddable programming language
libssl-dev 0.9.8k-7ubuntu8.8 SSL development libraries, header files and document
libpcre3-dev 7.8-3build1 Perl 5 Compatible Regular Expression Library - devel
```

How can I can solve this problem?