Bug 106303 - science/cdo: Fix build on IA64 & Sparc64
Summary: science/cdo: Fix build on IA64 & Sparc64
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: Shaun Amott
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-04 10:30 UTC by Sunpoet Po-Chuan Hsieh
Modified: 2006-12-09 22:50 UTC (History)
0 users

See Also:


Attachments
file.diff (372 bytes, patch)
2006-12-04 10:30 UTC, Sunpoet Po-Chuan Hsieh
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sunpoet Po-Chuan Hsieh 2006-12-04 10:30:05 UTC
FP_FAST_FMA was defined in IA64 & Sparc64 with no value.
CDO assumes FP_FAST_FMA as an integer in its debug messages.
It causes a compilation error.

Cited from ${WRKSRC}/src/cdo.c:

#if defined (FP_FAST_FMA)
    fprintf(stderr, "FP_FAST_FMA         = %d\n", FP_FAST_FMA);
#endif

Cited from src/lib/msun/src/math.h:

#if defined(__ia64__) || defined(__sparc64__) 
#define FP_FAST_FMA  #define FP_FAST_FMA 
#endif  #endif

Fix: # cat /usr/ports/science/cdo/files/patch-src-cdo.c
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-12-04 11:28:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->shaun

shaun@ wants to have sparc64 and 4.x PRs
Comment 2 Shaun Amott freebsd_committer freebsd_triage 2006-12-09 22:47:46 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-12-09 22:48:17 UTC
shaun       2006-12-09 22:47:43 UTC

  FreeBSD ports repository

  Added files:
    science/cdo/files    patch-src-cdo.c 
  Log:
  Fix build on ia64 and sparc64.
  
  PR:             ports/106303
  Submitted by:   Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> (maintainer)
  
  Revision  Changes    Path
  1.1       +11 -0     ports/science/cdo/files/patch-src-cdo.c (new)
_______________________________________________
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"