From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 23 03:20:02 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B18D352 for ; Wed, 23 Apr 2014 03:20:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 658F6137B for ; Wed, 23 Apr 2014 03:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3N3K2sv051009 for ; Wed, 23 Apr 2014 03:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3N3K22V051008; Wed, 23 Apr 2014 03:20:02 GMT (envelope-from gnats) Resent-Date: Wed, 23 Apr 2014 03:20:02 GMT Resent-Message-Id: <201404230320.s3N3K22V051008@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jamie Landeg-Jones Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FE44FBA for ; Wed, 23 Apr 2014 03:16:42 +0000 (UTC) Received: from pacha.mail.dyslexicfish.net (space.mail.dyslexicfish.net [91.109.5.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E27CC1328 for ; Wed, 23 Apr 2014 03:16:41 +0000 (UTC) Received: from catnip.dyslexicfish.net (space.mail.dyslexicfish.net [91.109.5.35]) by pacha.mail.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id s3N3GXXQ028442 for ; Wed, 23 Apr 2014 04:16:33 +0100 (BST) (envelope-from jamie@catnip.dyslexicfish.net) Received: (from jamie@localhost) by catnip.dyslexicfish.net (8.14.5/8.14.5/Submit) id s3N3GXH4028441; Wed, 23 Apr 2014 04:16:33 +0100 (BST) (envelope-from jamie) Message-Id: <201404230316.s3N3GXH4028441@catnip.dyslexicfish.net> Date: Wed, 23 Apr 2014 04:16:33 +0100 (BST) From: Jamie Landeg-Jones To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/188903: Port "mail/dcc-dccd" fails to build if using sendmail from ports (fix included) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Jamie Landeg-Jones List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 03:20:02 -0000 >Number: 188903 >Category: ports >Synopsis: Port "mail/dcc-dccd" fails to build if using sendmail from ports (fix included) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 23 03:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Jamie Landeg-Jones >Release: FreeBSD 10.0-STABLE amd64 >Organization: >Environment: System: FreeBSD catnip.dyslexicfish.net 10.0-STABLE FreeBSD 10.0-STABLE #0: Wed Jan 22 09:10:20 GMT 2014 root@catflap.dyslexicfish.net:/usr/obj/usr/src/sys/CATFLAP amd64 >Description: /usr/local/include from CPPFLAGS is not added to CFLAGS, causing the build to fail, as it can't find included "${LOCALBASE}/libmilter/mfapi.h" The environment and the failure output is included below. | cd /usr/scratch/root/usr/ports/mail/dcc-dccd/work/dcc-1.3.141 | export TMPDIR="/temp/root" | export SHELL=/bin/sh | export NO_LINT=YES | export PREFIX=/usr/local | export LOCALBASE=/usr/local | export LIBDIR="/usr/lib" | export CC="cc" | export CFLAGS="-O2 -pipe -mtune=nocona -march=nocona -march=nocona -fno-strict-aliasing -I/usr/local/include" | export CFLAGS="-O2 -pipe -mtune=nocona -march=nocona -march=nocona -fno-strict-aliasing" | export CPP="cpp" | export CPPFLAGS="-I/usr/local/include" | export LDFLAGS=" -L/usr/local/lib" | export CXX="c++" | export CXXFLAGS="-O2 -pipe -mtune=nocona -march=nocona -march=nocona -fno-strict-aliasing" | export MANPREFIX="/usr/local" | export BSD_INSTALL_PROGRAM="install -s -o root -g wheel -m 555" | export BSD_INSTALL_LIB="install -s -o root -g wheel -m 444" | export BSD_INSTALL_SCRIPT="install -o root -g wheel -m 555" | export BSD_INSTALL_DATA="install -o root -g wheel -m 444" | export BSD_INSTALL_MAN="install -o root -g wheel -m 444" | /usr/bin/make -f Makefile -j1 all | ===> dccm (all) | cc -O2 -pipe -mtune=nocona -march=nocona -march=nocona -fno-strict-aliasing -mtune=nocona -march=nocona -march=nocona -I../thrlib -I../include -DNDEBUG -g -std=gnu99 -Qunused-arguments -fstack-protector -c dccm.c | dccm.c:41:10: fatal error: 'libmilter/mfapi.h' file not found | #include "libmilter/mfapi.h" | ^ | 1 error generated. | *** [dccm.o] Error code 1 | | make[3]: stopped in /usr/scratch/root/usr/ports/mail/dcc-dccd/work/dcc-1.3.141/dccm | 1 error | | make[3]: stopped in /usr/scratch/root/usr/ports/mail/dcc-dccd/work/dcc-1.3.141/dccm | *** [all] Error code 2 | | make[2]: stopped in /usr/scratch/root/usr/ports/mail/dcc-dccd/work/dcc-1.3.141 | 1 error | | make[2]: stopped in /usr/scratch/root/usr/ports/mail/dcc-dccd/work/dcc-1.3.141 | ===> Compilation failed unexpectedly. | Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to | the maintainer. | *** Error code 1 | | Stop. | make[1]: stopped in /usr/ports/mail/dcc-dccd | *** Error code 1 | | Stop. | make: stopped in /usr/ports/mail/dcc-dccd | >How-To-Repeat: Try to install mail/dcc-dccd on a machine with no base sendmail, but with sendmail from ports. >Fix: It seems to be that the makefile within the dccm does not honour CPPFLAGS. A fix to expicitly add the include-dir to the ports Makefile is attached, though you may prefer to alter the build-code within the tarball itself! Cheers, Jamie --- patch-Makefile begins here --- *** Makefile.orig 2014-01-22 17:00:46.000000000 +0000 --- Makefile 2014-04-23 03:29:55.000000000 +0100 *************** *** 114,119 **** --- 114,120 ---- MILTERLIB= ${MILTERBASE}/lib CPPFLAGS+= -I${MILTERINC} + CFLAGS+= -I${MILTERINC} LDFLAGS+= -L${MILTERLIB} CONFIGURE_ARGS+= --with-sendmail=yes --- patch-Makefile ends here --- >Release-Note: >Audit-Trail: >Unformatted: