From owner-freebsd-questions@FreeBSD.ORG Sun Mar 30 16:08:49 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E42531065670 for ; Sun, 30 Mar 2008 16:08:49 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail.networktest.com (mail.networktest.com [207.181.8.134]) by mx1.freebsd.org (Postfix) with ESMTP id C58638FC16 for ; Sun, 30 Mar 2008 16:08:49 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: by mail.networktest.com (Postfix, from userid 1002) id CB98978C66; Sun, 30 Mar 2008 09:08:33 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail.networktest.com X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from levi.local (cpe-75-82-195-55.socal.res.rr.com [75.82.195.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.networktest.com (Postfix) with ESMTPSA id 3CE5E78C5E for ; Sun, 30 Mar 2008 09:08:31 -0700 (PDT) Message-ID: <47EFBB0E.2080301@networktest.com> Date: Sun, 30 Mar 2008 09:08:46 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: error when patching cyrus-imapd-2.3.11 port 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: Sun, 30 Mar 2008 16:08:50 -0000 Greetings. I'm building a cyrus-imapd 2.3.11 server from ports on FreeBSD 7.0/i386. I'm also using these two University of Athens patches: http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.11/cyrus-imapd-2.3.11-autocreate-0.10-0.diff http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.11/cyrus-imapd-2.3.11-autosieve-0.6.0.diff The following steps produced the error output pasted below. Thanks in advance for any help in debugging and fixing this. cd /usr/ports/mail/cyrus-imapd23/ make patch cd work/cyrus-imapd-2.3.11/ patch -p1 < ~/cyrus-imapd-2.3.11-autocreate-0.10-0.diff patch -p1 < ~/cyrus-imapd-2.3.11-autosieve-0.6.0.diff cd ../.. make cc -L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib -rpath=/usr/lib:/usr/local/lib -o imapd ../master/service.o pushstats.o imapd.o proxy.o imap_proxy.o index.o version.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/local/lib -R/usr/local/lib -lsasl2 -lgssapi -lkrb5 -lasn1 -lroken -lcrypt -lcom_err -lfl -L/usr/local/lib -R/usr/local/lib -ldb41 -lssl -lcrypto -lmd ../com_err/et/libcom_err.a -lwrap libimap.a(autosieve.o)(.text+0x598): In function `autoadd_sieve': : undefined reference to `sieve_interp_alloc' libimap.a(autosieve.o)(.text+0x77f): In function `autoadd_sieve': : undefined reference to `sieve_register_redirect' *** Error code 1 Stop in /usr/ports/mail/cyrus-imapd23/work/cyrus-imapd-2.3.11/imap. I emailed the author of the patches, and he replied: "This is a bit of a known issue. The FreeBSD ports system changes the Makefiles for their own build system, and the autocreate patch has to change the makefiles since the sieve libraries are needed also in other places (because of the autocreate functionality). If you follow the normal patch procedure and you add the autocreate patch in the patches that are in the ports build system, then the autocreate patch will not be applied successfully since there will be conflicts in the makefiles again. (The rules apply also to autosieve if i remember correctly). Unfortunately i don't have a freeBSD system at hand to see the changed that are needed (which are not backward compatible with the vanilla cyrus distribution), and it is quite hard for us to produce different patches for different operating systems. (that's why we have all the uoa patches against the vanilla cyrus distribution)." I'm reluctant to build from the cyrus-imapd sources as I don't know enough about possible differences in file locations (and maybe code?) between the two distributions. Ports would be much better for me, provided I can correct the missing library reference. Again, thanks for any help in debugging this. dn