Compiling plugins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling plugins

Juan Asensio Sánchez
Hi

I use Debian Etch 4.0r3. I am trying to compile antispam plugin, but i
have no idea about how to do it cause i have never done so. I have
compiled source packages for Debian with some instructions in some
pages, but i can not compile this plugin separately. Can anyone help
me or give some tips to do this (yes, i have google'd it yet, but no
good results).

This is the result trying to compile antispam plugin:

----------------------------------------------------
pdc-server:~/tmp/antispam# ls -l ../dovecot-1.1.rc5/
total 3508
-rw-r--r--  1 root root  322488 2008-05-05 00:30 aclocal.m4
-rw-r--r--  1 root root     551 2008-03-10 23:23 AUTHORS
-rw-r--r--  1 root root     804 2008-05-05 01:01 autogen.sh
-rw-r--r--  1 root root 1470323 2008-05-05 00:31 ChangeLog
-rwxr-xr-x  1 root root    3707 2008-03-10 23:23 compile
-rwxr-xr-x  1 root root   44892 2008-02-17 21:10 config.guess
-rw-r--r--  1 root root   14778 2008-05-05 00:31 config.h
-rw-r--r--  1 root root   13687 2008-05-05 00:31 config.h.in
-rwxr-xr-x  1 root root   18343 2008-05-04 12:13 config.rpath
-rwxr-xr-x  1 root root   33387 2008-02-17 21:10 config.sub
-rwxr-xr-x  1 root root 1086089 2008-05-05 00:30 configure
-rw-r--r--  1 root root   56429 2008-05-05 00:30 configure.in
-rw-r--r--  1 root root    3980 2008-03-10 23:23 COPYING
-rw-r--r--  1 root root   26536 2008-03-10 23:23 COPYING.LGPL
-rw-r--r--  1 root root    1023 2008-03-10 23:23 COPYING.MIT
drwxr-xr-x  4 root root    4096 2008-05-05 01:01 debian
-rwxr-xr-x  1 root root   15936 2008-03-10 23:23 depcomp
drwxrwxrwx  3 root root    4096 2008-05-05 01:01 doc
-rw-r--r--  1 root root     187 2008-03-10 23:23 dovecot-config.in.in
-rw-r--r--  1 root root   46655 2008-05-05 00:30 dovecot-example.conf
drwxr-xr-x  3 root root    4096 2008-05-05 01:01 dovecot-managesieve
drwxr-xr-x  3 root root    4096 2008-05-05 01:01 dovecot-sieve
-rw-r--r--  1 root root    1235 2008-03-10 23:23 INSTALL
-rwxr-xr-x  1 root root    9233 2008-03-10 23:23 install-sh
-rw-r--r--  1 root root  199984 2008-04-05 19:05 ltmain.sh
-rw-r--r--  1 root root     656 2008-03-10 23:23 Makefile.am
-rw-r--r--  1 root root   24492 2008-05-05 00:30 Makefile.in
-rwxr-xr-x  1 root root   11014 2008-03-10 23:23 missing
-rw-r--r--  1 root root   71910 2008-05-05 00:30 NEWS
-rw-r--r--  1 root root    1344 2008-03-16 10:58 README
drwxrwxrwx 26 root root    4096 2008-05-05 00:32 src
-rw-r--r--  1 root root       0 2008-03-10 23:23 stamp.h.in
-rw-r--r--  1 root root   14980 2008-05-05 00:30 TODO
pdc-server:~/tmp/antispam# ls -l
total 144
-rw-r--r-- 1 root root  7359 2008-05-05 00:31 antispam.7
-rw-r--r-- 1 root root  4864 2008-05-05 00:31 antispam-plugin.c
-rw-r--r-- 1 root root  2418 2008-05-05 00:31 antispam-plugin.h
-rw-r--r-- 1 root root 13279 2008-05-05 00:31 antispam-storage-1.0.c
-rwxr-xr-x 1 root root 14026 2008-05-05 00:58 antispam-storage-1.1
-rw-r--r-- 1 root root 14308 2008-05-05 00:31 antispam-storage-1.1.c
-rw-r--r-- 1 root root 18101 2008-05-05 00:31 COPYING
-rw-r--r-- 1 root root  4351 2008-05-05 00:31 crm114-exec.c
-rw-r--r-- 1 root root   547 2008-05-05 00:31 debug.c
-rw-r--r-- 1 root root  1854 2008-05-05 00:31 defconfig
-rw-r--r-- 1 root root  5087 2008-05-05 00:31 dspam-exec.c
-rw-r--r-- 1 root root  7631 2008-05-05 00:31 mailtrain.c
-rw-r--r-- 1 root root  2244 2008-05-05 00:31 Makefile
-rw-r--r-- 1 root root   372 2008-05-05 00:31 NOTES
-rw-r--r-- 1 root root    23 2008-05-05 00:31 README
-rw-r--r-- 1 root root  1855 2008-05-05 00:31 signature.c
-rw-r--r-- 1 root root   617 2008-05-05 00:31 signature.h
-rw-r--r-- 1 root root  3859 2008-05-05 00:31 signature-log.c
pdc-server:~/tmp/antispam# grep -v '^ *\(#.*\)\?$' .config
DOVECOT=/root/tmp/dovecot-1.1.rc5
DOVECOT_VERSION=1.1 # CURRENTLY BROKEN
BACKEND=dspam-exec
INSTALLDIR=/usr/lib/dovecot/modules/imap
USER=root
GROUP=root
PLUGINNAME=antispam
pdc-server:~/tmp/antispam# make install
cc      -o .o
cc: no input files
make: *** [.o] Error 1
pdc-server:~/tmp/antispam#
----------------------------------------------------

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Compiling plugins

Juan Asensio Sánchez
More info:

Changed BACKEND to "mailtrain" and DEBUG to "stderr", getting this
(the same error, more info):

pdc-server:~/tmp/antispam# grep -v '^ *\(#.*\)\?$' .config
DOVECOT=/root/tmp/dovecot-1.1.rc5
DOVECOT_VERSION=1.1 # CURRENTLY BROKEN
BACKEND=mailtrain
INSTALLDIR=/usr/lib/dovecot/modules/imap
USER=root
GROUP=root
DEBUG=stderr
PLUGINNAME=antispam
pdc-server:~/tmp/antispam# make install
cc -c  -DHAVE_CONFIG_H -I/root/tmp/dovecot-1.1.rc5/
-I/root/tmp/dovecot-1.1.rc5/src/ -I/root/tmp/dovecot-1.1.rc5/src/lib/
-I/root/tmp/dovecot-1.1.rc5/src/lib-storage/
-I/root/tmp/dovecot-1.1.rc5/src/lib-mail/
-I/root/tmp/dovecot-1.1.rc5/src/lib-imap/
-I/root/tmp/dovecot-1.1.rc5/src/lib-dict/
-I/root/tmp/dovecot-1.1.rc5/src/lib-index/
-I/root/tmp/dovecot-1.1.rc5/src/imap/ -DCONFIG_DEBUG -DDEBUG_STDERR
-DCONFIG_DOVECOT_11 "-Dmempool_unref(x)=pool_unref(x)" -fPIC -shared
-Wall -Wextra -DPLUGINNAME=antispam -o debug.o debug.c
cc      -o .o
cc: no input files
make: *** [.o] Error 1
pdc-server:~/tmp/antispam#



2008/5/5 Juan Asensio Sánchez <[hidden email]>:

> Hi
>
>  I use Debian Etch 4.0r3. I am trying to compile antispam plugin, but i
>  have no idea about how to do it cause i have never done so. I have
>  compiled source packages for Debian with some instructions in some
>  pages, but i can not compile this plugin separately. Can anyone help
>  me or give some tips to do this (yes, i have google'd it yet, but no
>  good results).
>
>  This is the result trying to compile antispam plugin:
>
>  ----------------------------------------------------
>  pdc-server:~/tmp/antispam# ls -l ../dovecot-1.1.rc5/
>  total 3508
>  -rw-r--r--  1 root root  322488 2008-05-05 00:30 aclocal.m4
>  -rw-r--r--  1 root root     551 2008-03-10 23:23 AUTHORS
>  -rw-r--r--  1 root root     804 2008-05-05 01:01 autogen.sh
>  -rw-r--r--  1 root root 1470323 2008-05-05 00:31 ChangeLog
>  -rwxr-xr-x  1 root root    3707 2008-03-10 23:23 compile
>  -rwxr-xr-x  1 root root   44892 2008-02-17 21:10 config.guess
>  -rw-r--r--  1 root root   14778 2008-05-05 00:31 config.h
>  -rw-r--r--  1 root root   13687 2008-05-05 00:31 config.h.in
>  -rwxr-xr-x  1 root root   18343 2008-05-04 12:13 config.rpath
>  -rwxr-xr-x  1 root root   33387 2008-02-17 21:10 config.sub
>  -rwxr-xr-x  1 root root 1086089 2008-05-05 00:30 configure
>  -rw-r--r--  1 root root   56429 2008-05-05 00:30 configure.in
>  -rw-r--r--  1 root root    3980 2008-03-10 23:23 COPYING
>  -rw-r--r--  1 root root   26536 2008-03-10 23:23 COPYING.LGPL
>  -rw-r--r--  1 root root    1023 2008-03-10 23:23 COPYING.MIT
>  drwxr-xr-x  4 root root    4096 2008-05-05 01:01 debian
>  -rwxr-xr-x  1 root root   15936 2008-03-10 23:23 depcomp
>  drwxrwxrwx  3 root root    4096 2008-05-05 01:01 doc
>  -rw-r--r--  1 root root     187 2008-03-10 23:23 dovecot-config.in.in
>  -rw-r--r--  1 root root   46655 2008-05-05 00:30 dovecot-example.conf
>  drwxr-xr-x  3 root root    4096 2008-05-05 01:01 dovecot-managesieve
>  drwxr-xr-x  3 root root    4096 2008-05-05 01:01 dovecot-sieve
>  -rw-r--r--  1 root root    1235 2008-03-10 23:23 INSTALL
>  -rwxr-xr-x  1 root root    9233 2008-03-10 23:23 install-sh
>  -rw-r--r--  1 root root  199984 2008-04-05 19:05 ltmain.sh
>  -rw-r--r--  1 root root     656 2008-03-10 23:23 Makefile.am
>  -rw-r--r--  1 root root   24492 2008-05-05 00:30 Makefile.in
>  -rwxr-xr-x  1 root root   11014 2008-03-10 23:23 missing
>  -rw-r--r--  1 root root   71910 2008-05-05 00:30 NEWS
>  -rw-r--r--  1 root root    1344 2008-03-16 10:58 README
>  drwxrwxrwx 26 root root    4096 2008-05-05 00:32 src
>  -rw-r--r--  1 root root       0 2008-03-10 23:23 stamp.h.in
>  -rw-r--r--  1 root root   14980 2008-05-05 00:30 TODO
>  pdc-server:~/tmp/antispam# ls -l
>  total 144
>  -rw-r--r-- 1 root root  7359 2008-05-05 00:31 antispam.7
>  -rw-r--r-- 1 root root  4864 2008-05-05 00:31 antispam-plugin.c
>  -rw-r--r-- 1 root root  2418 2008-05-05 00:31 antispam-plugin.h
>  -rw-r--r-- 1 root root 13279 2008-05-05 00:31 antispam-storage-1.0.c
>  -rwxr-xr-x 1 root root 14026 2008-05-05 00:58 antispam-storage-1.1
>  -rw-r--r-- 1 root root 14308 2008-05-05 00:31 antispam-storage-1.1.c
>  -rw-r--r-- 1 root root 18101 2008-05-05 00:31 COPYING
>  -rw-r--r-- 1 root root  4351 2008-05-05 00:31 crm114-exec.c
>  -rw-r--r-- 1 root root   547 2008-05-05 00:31 debug.c
>  -rw-r--r-- 1 root root  1854 2008-05-05 00:31 defconfig
>  -rw-r--r-- 1 root root  5087 2008-05-05 00:31 dspam-exec.c
>  -rw-r--r-- 1 root root  7631 2008-05-05 00:31 mailtrain.c
>  -rw-r--r-- 1 root root  2244 2008-05-05 00:31 Makefile
>  -rw-r--r-- 1 root root   372 2008-05-05 00:31 NOTES
>  -rw-r--r-- 1 root root    23 2008-05-05 00:31 README
>  -rw-r--r-- 1 root root  1855 2008-05-05 00:31 signature.c
>  -rw-r--r-- 1 root root   617 2008-05-05 00:31 signature.h
>  -rw-r--r-- 1 root root  3859 2008-05-05 00:31 signature-log.c
>  pdc-server:~/tmp/antispam# grep -v '^ *\(#.*\)\?$' .config
>  DOVECOT=/root/tmp/dovecot-1.1.rc5
>  DOVECOT_VERSION=1.1     # CURRENTLY BROKEN
>  BACKEND=dspam-exec
>  INSTALLDIR=/usr/lib/dovecot/modules/imap
>  USER=root
>  GROUP=root
>  PLUGINNAME=antispam
>  pdc-server:~/tmp/antispam# make install
>  cc      -o .o
>  cc: no input files
>  make: *** [.o] Error 1
>  pdc-server:~/tmp/antispam#
>  ----------------------------------------------------
>
>  Thanks in advance.
>