ports/51913: [math/gnuplot+] cannot build on alpha

NAKAJI Hiroyuki nakaji at jp.freebsd.org
Wed May 7 06:40:02 UTC 2003


>Number:         51913
>Category:       ports
>Synopsis:       [math/gnuplot+] cannot build on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 06 23:40:00 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     NAKAJI Hiroyuki
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD boggy.acest.tutrp.tut.ac.jp 5.0-CURRENT FreeBSD 5.0-CURRENT #94: Mon May 5 14:11:09 JST 2003 root at boggy.acest.tutrp.tut.ac.jp:/usr/obj/usr/src/sys/NAKAJI i386



>Description:
	Math/gnuplot+ cannot be built on alpha and so on because of loss
of some IEEE fp* functions.

	It seems that only i386 and amd64 have such IEEE floating point
functions (macros) as fpsetmask() etc.

	This PR is addition to ports/51912.

>How-To-Repeat:
	You can see build log for alpha at
http://bento.freebsd.org/errorlogs/alpha-5-latest/gnuplot371+-1.2.0.log

>Fix:
	Files/patch-za must be changed.

Index: files/patch-za
===================================================================
RCS file: /home/ncvs/ports/math/gnuplot+/files/patch-za,v
retrieving revision 1.1
diff -u -r1.1 patch-za
--- files/patch-za	24 Jan 2000 06:19:03 -0000	1.1
+++ files/patch-za	7 May 2003 05:57:04 -0000
@@ -1,10 +1,10 @@
---- gplt_x11.c.ORIG	Thu Dec  2 17:02:05 1999
-+++ gplt_x11.c	Thu Dec  2 17:02:54 1999
+--- gplt_x11.c.orig	Wed May  7 14:21:25 2003
++++ gplt_x11.c	Wed May  7 14:55:22 2003
 @@ -169,6 +169,10 @@
  # define EINTR	E_ILLFNC
  #endif
  
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
 +# include <floatingpoint.h>
 +#endif
 +
@@ -15,7 +15,7 @@
  int argc;
  char *argv[];
  {
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
 +  /* allow divide by zero -- Inf */
 +  fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV));
 +#endif
@@ -27,7 +27,7 @@
      }
      XCloseDisplay(dpy);
 +
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
 +  fpresetsticky(FP_X_DZ | FP_X_INV);
 +  fpsetmask(fpgetmask() | (FP_X_DZ | FP_X_INV));
 +#endif
@@ -35,13 +35,13 @@
  
      FPRINTF((stderr, "exiting\n"));
  
---- plot.c.ORIG	Thu Dec  2 17:02:05 1999
-+++ plot.c	Thu Dec  2 17:02:54 1999
+--- plot.c.orig	Wed May  7 14:21:25 2003
++++ plot.c	Wed May  7 14:45:09 2003
 @@ -73,6 +73,10 @@
  # endif
  #endif /* _Windows */
  
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
 +# include <floatingpoint.h>
 +#endif
 +
@@ -52,7 +52,7 @@
      _control87(MCW_EM, MCW_EM);
  #endif
  
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
 +  /* allow divide by zero -- Inf */
 +  fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV));
 +#endif
@@ -66,7 +66,7 @@
  	RexxDeregisterSubcom("GNUPLOT", NULL);
 +#endif
 +
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
 +  fpresetsticky(FP_X_DZ | FP_X_INV);
 +  fpsetmask(fpgetmask() | (FP_X_DZ | FP_X_INV));
  #endif



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list