On Sat, May 16, 2015 at 12:56:53PM +0200, Mark Kettenis wrote:
> Tries to link /usr/local/lib/libcom_err.a into shared library.  The
> static library isn't PIC, so that fails.
> 
> We actually do have shared libcom_err.  However, this is not picked up
> by the configure script because using the --with-com_err configure
> option forces the use of the static library.
> 
> Easiest way to fix this is to simply drop the --with-com_err option.
> The port already sets CPPFLAGS and LDFLAGS for CONFIGURE_ENV, so it
> will pick up the shared library automatically just fine.
> 
> ok?

OK but you need to add "com_err" to WANTLIB.

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/mail/cyrus-imapd/Makefile,v
> retrieving revision 1.88
> diff -u -p -r1.88 Makefile
> --- Makefile  24 Apr 2015 14:51:26 -0000      1.88
> +++ Makefile  16 May 2015 10:56:23 -0000
> @@ -11,6 +11,7 @@ COMMENT=    Cyrus IMAP server
>  
>  V=           2.5.1
>  DISTNAME=    cyrus-imapd-${V}
> +REVISION=    0
>  
>  SHARED_LIBS +=       cyrus                     0.0 # 0.0
>  SHARED_LIBS +=       cyrus_imap                0.0 # 0.0
> @@ -47,7 +48,6 @@ CONFIGURE_ENV=      CPPFLAGS="-I${LOCALBASE}/
>  CONFIGURE_ARGS=      --with-cyrus-prefix=${PREFIX}/cyrus \
>               --with-bdb-libdir=${LOCALBASE}/lib/db4 \
>               --with-bdb-incdir=${LOCALBASE}/include/db4 \
> -             --with-com_err=${LOCALBASE} \
>               --with-sasl=${LOCALBASE} \
>               --with-cyrus-group=_cyrus \
>               --with-cyrus-user=_cyrus \
> 

-- 
Antoine

Reply via email to