On Tue, 31 Dec 2002 [EMAIL PROTECTED] wrote: > I am trying to compile the latest version of Cyrus IMAPD and have some > problems already with the make depend, as you can see here in my output: > > gmake[1]: Leaving directory `/opt/source/cyrus-imapd-2.1.11/imtest' > ### Making depend in /opt/source/cyrus-imapd-2.1.11/perl > gmake[1]: Entering directory `/opt/source/cyrus-imapd-2.1.11/perl' > ### Making depend in /opt/source/cyrus-imapd-2.1.11/perl/sieve > gmake[2]: Entering directory `/opt/source/cyrus-imapd-2.1.11/perl/sieve' > gmake[2]: *** No rule to make target `depend'. Stop. > gmake[2]: Leaving directory `/opt/source/cyrus-imapd-2.1.11/perl/sieve' > gmake[1]: *** [depend] Error 1 > gmake[1]: Leaving directory `/opt/source/cyrus-imapd-2.1.11/perl' > gmake: *** [depend] Error 1 > > Does anyone have an idea what the problem could be ??? I am using standard > GNU tools on Solaris 9.
Are you using the --disable-sieve configure option? It's broken and will produce this error, but the attached patch (tested on Solaris 8 with GNU tools) fixes the problem. -- Simon Brady mailto:[EMAIL PROTECTED] ITS Technical Services University of Otago, Dunedin, New Zealand
diff -ru cyrus-imapd-2.1.11.orig/configure.in cyrus-imapd-2.1.11/configure.in --- cyrus-imapd-2.1.11.orig/configure.in Sun Nov 17 05:31:54 2002 +++ cyrus-imapd-2.1.11/configure.in Wed Jan 1 13:37:32 2003 @@ -871,7 +871,10 @@ EXTRA_OUTPUT="${EXTRA_OUTPUT} timsieved/Makefile notifyd/Makefile" PERL_SUBDIRS="${PERL_SUBDIRS} sieve" + PERL_DEPSUBDIRS="sieve" EXTRA_OUTPUT="${EXTRA_OUTPUT} perl/sieve/Makefile perl/sieve/lib/Makefile" +else + PERL_DEPSUBDIRS="none" fi dnl Check for MD5 functions @@ -941,6 +944,7 @@ dnl fi dnl ], perl=$PERL; with_perl=$with_perl; prefix=$prefix; SASL_LIB="$LIB_SASL"; SASL_INC="$SASLFLAGS"; export SASL_LIB SASL_INC) AC_SUBST(PERL_SUBDIRS) +AC_SUBST(PERL_DEPSUBDIRS) AC_SUBST(PERL) dnl make sure that Makefile is the last thing output diff -ru cyrus-imapd-2.1.11.orig/perl/Makefile.in cyrus-imapd-2.1.11/perl/Makefile.in --- cyrus-imapd-2.1.11.orig/perl/Makefile.in Tue Jul 23 04:16:05 2002 +++ cyrus-imapd-2.1.11/perl/Makefile.in Wed Jan 1 13:37:55 2003 @@ -44,7 +44,7 @@ SUBDIRS = @PERL_SUBDIRS@ -DEPSUBDIRS = sieve +DEPSUBDIRS = @PERL_DEPSUBDIRS@ srcdir = @srcdir@ VPATH = @srcdir@ @@ -107,11 +107,13 @@ rm -f Makefile Makefile.bak config.status config.log config.cache depend:: - @for d in $(DEPSUBDIRS); \ - do \ - (cd $$d; echo "### Making" depend "in" `pwd`; \ - $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) depend) || exit 1; \ - done + @if test "$(DEPSUBDIRS)" != "none"; then \ + for d in $(DEPSUBDIRS); \ + do \ + (cd $$d; echo "### Making" depend "in" `pwd`; \ + $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) depend) || exit +1; \ + done; \ + fi checkdepend::