error when patching cyrus-imapd-2.3.11 port



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

<snip>

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'

<around 30 more undefined reference errors>

*** 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


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Maple troubles with SMP -- solved. How to contribute this to the FBSD documentation now?
    ... >I have hacked and patched some Maple shell scripts, ... >the native FreeBSD JDK which I have compiled from the Ports, ... >When I have fully tested this, I would like to update the FreeBSD ... and include the patches I've written. ...
    (freebsd-questions)
  • Re: Resired features/wish list for FreeBSD
    ... On Thu, 2004-10-28 at 16:07, Patrick Dung wrote: ... > discuss possible improvement for FreeBSD. ... even more interested in seeing patches. ... Submit patches that fix the ports in question. ...
    (freebsd-questions)
  • Re: Announce Broken Ports
    ... > As seen in several messages to this and other lists, the PORTS ... > I have read about some patches and possible solutions, ... > temporary solution, ... It is announced clearly on the FreeBSD website that old FreeBSD ...
    (freebsd-questions)
  • Re: Good mirror for WoW patches?
    ... info and like the others, after it gets it, will not allow you to download ... If anybody uses PF on FreeBSD, I will be glad to supply what I did to allow ... My ISP throttles the standard bittorrent ports, ... It's amazing how a free service manages to be more reliable for patches ...
    (alt.games.warcraft)
  • Re: for understanding correctly -- Up-to-date - Upgread ..
    ... announcements of new security patches. ... > really easy to update ports with portupgrade because ports also have ... Yes -- security advisories will contain patches for the base system, ... I want to ask When I have high-profile production server Does ...
    (freebsd-questions)