Subject: Re: problems building mail/cyrus-imapd 2.1.9
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 11/10/2002 12:28:38
[ On Sunday, November 10, 2002 at 12:16:50 (-0500), Greg A. Woods wrote: ]
> Subject: problems building mail/cyrus-imapd 2.1.9
>
> It looks like they're trying to use a very cheap CPP hack to make the
> snmp*() calls "disappear" by turning them into macros with no body.
> However that's clearly not working. Is this a bug in my CPP?
>
> $ cpp -v
> GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (80386, BSD syntax)
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/include
> End of search list.
> # 1 ""
> ^D
>
Yup, that seems to be the problem. Adding the following to the Makfile
eventually fixed it:
Index: Makefile
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/mail/cyrus-imapd21/Makefile,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile
*** Makefile 27 Oct 2002 16:08:52 -0000 1.1.1.1
--- Makefile 10 Nov 2002 17:16:31 -0000
***************
*** 12,17 ****
--- 12,19 ----
USE_BUILDLINK2= YES
GNU_CONFIGURE= YES
+ USE_GMAKE= YES
+ USE_PKGSRC_GCC= YES
.include "../../mk/bsd.prefs.mk"
***************
*** 109,113 ****
--- 111,116 ----
.include "../../security/cyrus-sasl2/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"
+ .include "../../lang/gcc/buildlink2.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
There must be a better fix than requiring a certain C compiler.....
--
Greg A. Woods
+1 416 218-0098; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>