When using this make command line: env TARGET_ARCH=amd64 make or this command line: env TARGET_ARCH=i386 make The make process generate a bad compilation line and failed by displaying this message: ===> Building for ssmtp-2.62.3 cc -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1 -DINET6=1 -DSSMTPCONFDIR=\"/usr/local/etc/ssmtp\" -DCONFIGURATION_FILE=\"/usr/local/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/usr/local/etc/ssmtp/revaliases\" -O2 -pipe -march=native -I/usr/include -DUSERPREFS -fno-strict-aliasing amd64 -c -o ssmtp.o ssmtp.c cc: amd64: No such file or directory gmake: *** [ssmtp.o] Erreur 1 *** Error code 1 We can notice that the value of the variable TARGET_ARCH is put just after the "-fno-strict-aliasing" and before the "-c -o ssmtp.o" options: Something missing. How-To-Repeat: When using this make command line: env TARGET_ARCH=amd64 make or this command line: env TARGET_ARCH=i386 make
Maintainer of mail/ssmtp, Please note that PR ports/147853 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147853 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
This seems to be occurring due to GNU make's Implicit Rules: http://www.makelinux.net/make3/make3-CHP-3-SECT-8.html Attached patch will simply override that variable.
State Changed From-To: feedback->closed Fix committed.
stefan 2010-07-01 12:16:21 UTC FreeBSD ports repository Modified files: mail/ssmtp Makefile Log: Explicitly empty TARGET_ARCH to prevent build problems. PR: 147853 Submitted by: Olivier Cochard-Labbé <olivier@cochard.me> Patch by: maintainer Feature safe: yes Revision Changes Path 1.32 +1 -0 ports/mail/ssmtp/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"