Bug 147853 - mail/ssmtp: setting TARGET_ARCH variable prevent to compile
Summary: mail/ssmtp: setting TARGET_ARCH variable prevent to compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 16:30 UTC by olivier
Modified: 2010-07-01 13:20 UTC (History)
0 users

See Also:


Attachments
ssmtp.diff (221 bytes, patch)
2010-06-14 17:50 UTC, Aragon Gouveia
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description olivier 2010-06-14 16:30:02 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-06-14 16:30:12 UTC
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
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-06-14 16:30:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Aragon Gouveia 2010-06-14 17:50:57 UTC
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.
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2010-07-01 13:16:31 UTC
State Changed
From-To: feedback->closed

Fix committed.
Comment 5 dfilter service freebsd_committer freebsd_triage 2010-07-01 13:16:32 UTC
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"