[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] Re: Problem compiling gsl 1.8 on AIX 5.2
From: |
Juergen Henge-Ernst |
Subject: |
[Bug-gsl] Re: Problem compiling gsl 1.8 on AIX 5.2 |
Date: |
Wed, 28 Jun 2006 16:26:02 +0200 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.0.4-cvs) |
Hi,
Quoting Juergen Henge-Ernst <address@hidden>:
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -g -O2 -c -o fp.lo fp.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -c fp.c -DPIC -o .libs/fp.o
In file included from fp.c:22:
fp-aix.c: In function `gsl_ieee_set_mode':
fp-aix.c:30: error: `fprnd_t' undeclared (first use in this function)
fp-aix.c:30: error: (Each undeclared identifier is reported only once
fp-aix.c:30: error: for each function it appears in.)
fp-aix.c:30: error: parse error before "rnd"
fp-aix.c:55: error: `rnd' undeclared (first use in this function)
fp-aix.c:55: error: `FP_RND_RN' undeclared (first use in this function)
fp-aix.c:59: error: `FP_RND_RM' undeclared (first use in this function)
fp-aix.c:63: error: `FP_RND_RP' undeclared (first use in this function)
fp-aix.c:67: error: `FP_RND_RZ' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.
used gcc was gcc (GCC) 3.3.2
I tracked down the problem and found a solution that works for me. The
problem is that /usr/includes/float.h is not used, instead the float.h
of the installed gcc (/opt/freware/...) is used. In that float.h no
such structs are defined. So I copied the missing parts (all between
#ifdef _ALL_SOURCE and its #endif from /usr/includes/float.h into a
aix_float.h which I include in fp-aix.c
So the compilation works, but its not a portable AIX solution.
Greeting
Jürgen Henge-Ernst
--
interexa AG
Software für Risiko- und Chancen-Management
An der Fahrt 13
D-55124 Mainz
Tel.: +49-(0)-6131-14407-42
Fax.: +49-(0)-6131-14407-01
eMail: address@hidden
Internet: http://www.interexa.de/