public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* gsl 0.8 compile error
@ 2001-12-19 13:20 Ãֱ⿵
  2001-12-19 13:20 ` Brian Gough
  0 siblings, 1 reply; 10+ messages in thread
From: Ãֱ⿵ @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

I have tried to compile gsl 0.8 at OpenBSD 2.9/sparc
But I gained this error messge. 

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O2 -c fp.c  -fPIC -DPIC -o .libs/fp.lo
In file included from fp.c:26:
fp-freebsd.c: In function `gsl_ieee_set_mode':
fp-freebsd.c:27: syntax error before `prec'
fp-freebsd.c:34: `prec' undeclared (first use in this function)
fp-freebsd.c:34: (Each undeclared identifier is reported only once
fp-freebsd.c:34: for each function it appears in.)
fp-freebsd.c:34: `FP_PS' undeclared (first use in this function)
fp-freebsd.c:38: `FP_PD' undeclared (first use in this function)
fp-freebsd.c:42: `FP_PE' undeclared (first use in this function)
fp-freebsd.c:50: `rnd' undeclared (first use in this function)
fp-freebsd.c:72: `mode' undeclared (first use in this function)
fp-freebsd.c:72: `FP_X_DNML' undeclared (first use in this function)
*** Error code 1

Stop in /home/I01/xenus/gsl-0.8/ieee-utils.
*** Error code 1

Stop in /home/I01/xenus/gsl-0.8 (line 356 of Makefile).
*** Error code 1

Stop in /home/I01/xenus/gsl-0.8 (line 486 of Makefile).


What is this meaning?

-- 
===========================================================
Ki-young, CHOI    : xenus@physics.hanyang.ac.kr
PHYSICS dept. HYU : http://physics.hanyang.ac.kr
HOME PHONE        : +82-2-2298-1807
CELLULAR          : +82-11-9987-8666
HOMEPAGE          : http://physics.hanyang.ac.kr/~xenus
===========================================================
We run GNU!
http://korea.gnu.org

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <E15Eoib-0004ar-00@navy.csi.cam.ac.uk>]
* Re: gsl 0.8 compile error
@ 2001-12-19 13:20 Jason Beegan
  0 siblings, 0 replies; 10+ messages in thread
From: Jason Beegan @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

Sorry, there was a stray #else in the included diff.  Here is a fixed diff.


--- fp-netbsd.c~	Tue Jun 26 10:34:25 2001
+++ fp-netbsd.c	Tue Jun 26 10:32:07 2001
@@ -18,7 +18,6 @@
  */
 
 #include <ieeefp.h>
-#include <sys/param.h>
 #include <gsl/gsl_ieee_utils.h>
 #include <gsl/gsl_errno.h>
 
@@ -68,12 +67,11 @@
     }
 
 /* Turn on all available exceptions apart from 'inexact'.
-   Denormalized operand exception not available on all ports. */
+   Denormalized operand exception not available on all platforms. */
 
-#ifdef FP_X_DNML
-  mode = FP_X_INV | FP_X_DNML | FP_X_DZ | FP_X_OFL | FP_X_UFL;
-#else
   mode = FP_X_INV | FP_X_DZ | FP_X_OFL | FP_X_UFL;
+#ifdef FP_X_DNML
+  mode = mode | FP_X_DNML
 #endif
 
   if (exception_mask & GSL_IEEE_MASK_INVALID)
@@ -83,7 +81,7 @@
 #ifdef FP_X_DNML
     mode &= ~ FP_X_DNML;
 #else
-  GSL_ERROR ("netbsd-" MACHINE " does not support the denormalized operand exception. "
+  GSL_ERROR ("NetBSD does not support the denormalized operand exception on this platform. "
 	     "Use 'mask-denormalized' to work around this.",
 	     GSL_EUNSUP);
 #endif

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 gsl 0.8 compile error Ãֱ⿵
2001-12-19 13:20 ` Brian Gough
2001-12-19 13:20   ` Toby White
2001-12-19 13:20     ` Brian Gough
2001-12-19 13:20       ` Toby White
     [not found]         ` <200106260901.f5Q91HJ21090@ultra16.uk2net.com>
2001-12-19 13:20           ` Brian Gough
2001-12-19 13:20         ` Jason Beegan
     [not found] <E15Eoib-0004ar-00@navy.csi.cam.ac.uk>
2001-12-19 13:20 ` Toby White
2001-12-19 13:20   ` Brian Gough
2001-12-19 13:20 Jason Beegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).