From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Gough To: Ãֱ⿵ Cc: gsl-discuss@sources.redhat.com Subject: Re: gsl 0.8 compile error Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <15159.478.675073.342587@debian> References: <20010625162824.A10447@physics.hanyang.ac.kr> X-SW-Source: 2001/msg00242.html Ãֱ⿵ 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