3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] pcre Linking Error . . .
FromSent OnAttachments
Jason FlattSep 22, 2005 7:44 pm 
Andreas WinkelmannSep 22, 2005 11:17 pm 
Jason FlattSep 28, 2005 10:55 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] pcre Linking Error . . .Actions...
From:Andreas Winkelmann (ml@awinkelmann.de)
Date:Sep 22, 2005 11:17:41 pm
List:net.sourceforge.lists.courier-maildrop

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?