Am Friday 23 September 2005 04:42 schrieb Jason Flatt:
I am attempting to compile the 2.0.0 version of maildrop and I keep getting
the following errors:
Compiling testmaildirfilter.c
Linking testmaildirfilter
make[2]: Leaving directory `/usr/src/maildrop-2.0.0/maildir'
./.libs/libmaildir.a(maildirfilter.o): In function
`maildir_filter_ruleupdate':
maildirfilter.c:(.text+0x167f): undefined reference to `pcre_compile'
maildirfilter.c:(.text+0x1698): undefined reference to `pcre_free'
collect2: ld returned 1 exit status
make[2]: *** [testmaildirfilter] Error 1
I have tried it with both the 6.3 and the 6.4 versions of PCRE, but I get
the same results. Also, courier and courier-imap compile and install
without those errors (if that matters at all).
Does anyone have any suggestions on what I can check, change or do to get
this working? I have been trying every suggestion I have found, no matter
how unlikely they are to fix the problem. Thank you.
libpcre does not like to be linked static. After ./configure remove the
"-static" in maildir/Makefile from "testmaildirfilter_LDFLAGS" and run make.
Which OS do you use?