can't find acap.h while building imapd-2.1.11
    Hack Kampbjorn 
    cyrus-info at hack.kampbjorn.com
       
    Mon Dec  9 18:00:10 EST 2002
    
    
  
Matt Selsky wrote:
> I'm trying to build imapd-2.1.11
> 
> I unpacked the source tarball into a direction and then I build from
> another directory (since I have multiple architectures).  I configured
> like this:
> 
> $ ../../src/configure \
>         --prefix=/opt/cyrus-imapd-2.1.11 \
>         --with-cyrus-prefix=/opt/cyrus-imap-2.1.11 \
>         --with-cyrus-user=cyrusadm \
>         --with-cyrus-group=mailer \
>         --with-dbdir=/opt/BerkeleyDB.3.3 \
>         --with-auth=unix \
>         --enable-murder \
>         --disable-sieve \
>         --enable-fulldirhash \
>         --with-openssl \
>         --with-sasl=/opt/local
> 
> $ make
> ....
> ### Making all in 
> /src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap
> make[1]: Entering directory `/src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap'
> gcc -c -I/opt/BerkeleyDB.3.3/include  -I/usr/local/include -I/opt/local/include -I. -I.. -I../lib -DHAVE_CONFIG_H -Wall -g -O2 \
> ../../../src/acap/acapsieve.c
> ../../../src/acap/acapsieve.c:20: acap.h: No such file or directory
> make[1]: *** [acapsieve.o] Error 1
> make[1]: Leaving directory 
> `/src/mail/cyrus/cyrus-imapd-2.1.11/obj/solaris9/acap'
> make: *** [all] Error 1
> 
> 
> acap.h does exist in ../../../src/acap/acap.h  Should configure have 
> added '$srcdir/.' to CPPFLAGS instead of '.' in the acap/Makefile?
> 
I had problems with the sieve and perl part too when trying to build out 
of the source directory. Acap and sieve were fixed with these patches, 
but I couldn't get the perl part to build. Seems I need to patch 
MakeMaker for this 8-(
$ diff -u acap/Makefile.in.orig acap/Makefile.in
--- acap/Makefile.in.orig       Sat May 25 21:57:41 2002
+++ acap/Makefile.in    Sat Dec  7 20:40:04 2002
@@ -51,7 +51,7 @@
  RANLIB = @RANLIB@
  DEFS = @DEFS@
-CPPFLAGS = @CPPFLAGS@ @SASLFLAGS@ -I. -I.. -I../lib
+CPPFLAGS = @CPPFLAGS@ @SASLFLAGS@ -I. -I.. -I$(srcdir) -I../lib
  LIBS = @LIBS@
  CFLAGS = @CFLAGS@
diff -u sieve/Makefile.in.orig sieve/Makefile.in
--- sieve/Makefile.in.orig      Sat Dec  7 20:31:59 2002
+++ sieve/Makefile.in   Sat Dec  7 20:32:47 2002
@@ -70,6 +70,8 @@
         mv -f y.tab.h sieve.h
  addr-lex.c: addr-lex.l addr.h
+       $(LEX) $(srcdir)/addr-lex.l
+       mv -f lex.addr.c addr-lex.c
  addr.c addr.h: addr.y
         $(YACC) $(YFLAGS) -p addr $(srcdir)/addr.y
-- 
Med venlig hilsen / Kind regards
Hack Kampbjørn
    
    
More information about the Info-cyrus
mailing list