This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: gsl 0.8 compile error
- To: Ãֱ⿵ <xenus at physics dot hanyang dot ac dot kr>
- Subject: Re: gsl 0.8 compile error
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Mon, 25 Jun 2001 10:18:22 +0100 (BST)
- Cc: gsl-discuss at sources dot redhat dot com
- References: <20010625162824.A10447@physics.hanyang.ac.kr>
- Reply-To: gsl-discuss at sources dot redhat dot com
Ãֱ⿵ writes:
> 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
>
Thanks for reporting that problem. At the configure stage the
configure script defaults to using the ieee file for Freebsd for any
unknown BSD system (we don't have a corresponding file for Openbsd).
If you could find out what functions Openbsd uses to control rounding
mode and precision that could be added.
To work around the problem edit the file config.h and comment out the
line,
#define HAVE_FREEBSD_IEEE_INTERFACE 1
and you should then be able to compile the rest of the library.
regards
Brian Gough