From owner-freebsd-questions@FreeBSD.ORG Mon Jun 5 12:41:08 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07FA816A7C7 for ; Mon, 5 Jun 2006 12:41:08 +0000 (UTC) (envelope-from lordboink@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9421443D48 for ; Mon, 5 Jun 2006 12:41:06 +0000 (GMT) (envelope-from lordboink@gmail.com) Received: by nz-out-0102.google.com with SMTP id m7so1013776nzf for ; Mon, 05 Jun 2006 05:41:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FJ/1++Ycx8ZPhE7bpkeNs8IuHmGPfOje095HWPokkeY+uNP8QqaqvYNMJRInMP6GSi24Us+FvgpCgtwaKLwmOuZSjFwOIsGXEnBw9UwUekxptKn64MJXntRcFK4ngUR/pejM7wDQjYyW8epoDBVehv4n5xP2Bg1fXdnUnWcDQOk= Received: by 10.36.247.54 with SMTP id u54mr6263606nzh; Mon, 05 Jun 2006 05:41:05 -0700 (PDT) Received: by 10.36.55.17 with HTTP; Mon, 5 Jun 2006 05:41:05 -0700 (PDT) Message-ID: <73cb07950606050541l5ae80462l119bfeba72c3b2fc@mail.gmail.com> Date: Mon, 5 Jun 2006 14:41:05 +0200 From: boink To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Compile courier-imap 4.1.1 fails (/usr/bin/ld: cannot find -lpcre) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 12:41:19 -0000 Dear all, I'm building a pop toaster, have qmail up and running, vpopmail too, now trying to get courier-imap-4.1.1 working. Platform: FreeBSD 6.0_RELEASE, GENERIC kernel. Problem: when installing from source, ./configure works OK (non-root, as advised): $./configure --without-authdaemon --with-authvchkpw --enable-unicode=iso-8859-1,iso-8859-15,utf-8 but... $make check Linking maildirmake Linking testmaildirfilter /usr/bin/ld: cannot find -lpcre *** Error code 1 Stop in /usr/download/qmail/courier-imap-4.1.1/maildir. *** Error code 1 Stop in /usr/download/qmail/courier-imap-4.1.1/maildir. *** Error code 1 maildir/Makefile has: ... CPPFLAGS = -I/usr/local/include -I/usr/local/include ... CXXFLAGS = -I/usr/local/include -I/usr/local/include -Wall ... LDFLAGS = -L/usr/local/lib -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib ... Is there any reason these should be specified twice? Why doesn't LDFLAGS mention /usr/local/include - which is where my pcre.h is? Still working with the source, I tried: $ env -v "LDFLAGS=-L/usr/local/lib -L/usr/local/include -rpath=/usr/lib:/usr/local/lib:/usr/local/include" ./configure --without-authdaemon --with-authvchkpw --enable-unicode=iso-8859-1,iso-8859-15,utf-8 which fails with: checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking pcre/pcre.h usability... no checking pcre/pcre.h presence... no checking for pcre/pcre.h... no checking for pcre.h... (cached) yes checking for pcre/pcre.h... (cached) no checking for FAMOpen in -lfam... yes checking for fam.h... (cached) no configure: WARNING: The development header files and libraries for fam, configure: WARNING: the File Alteration Monitor, are not installed. configure: WARNING: You appear to have the FAM runtime libraries installed, configure: WARNING: so you need to simply install the additional development configure: WARNING: package for your operating system. configure: error: FAM development libraries not found. configure: error: /usr/local/bin/bash './configure' failed for maildir # locate fam.h /usr/local/include/fam.h Furthermore, when using the port, the installation completes without any warnings, but in /usr/ports/mail/courier-imap/work/courier-imap-4.1.1/maildir/config.log, I see: ... | #include configure:21219: result: no configure:21223: checking pcre/pcre.h presence configure:21233: cc -E -I/usr/local/include -I/usr/local/include conftest.c conftest.c:33:23: pcre/pcre.h: No such file or directory configure:21239: $? = 1 configure: failed program was: | /* confdefs.h. */ ... ...so I presume that anything that relies on pcre will fail with the port, too. After hours of fruitless Googling, I'm completely stuck. I don't want to use the port, ignore the error, and have problems later. Can someone help me out? With thanks in advance, boink PS - I was unable to subscribe to the courier-mta list at Sourceforge (no confirmation received), hence the post here.