[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] `fprnd_t' undeclared - can't this be solved with autoconf?
From: |
Dr. David Kirkby |
Subject: |
Re: [Bug-gsl] `fprnd_t' undeclared - can't this be solved with autoconf? |
Date: |
Tue, 12 Oct 2010 18:00:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100214 Thunderbird/3.0.1 |
On 10/12/10 03:05 PM, Brian Gough wrote:
At Tue, 28 Sep 2010 02:27:10 +0100,
Dr. David Kirkby wrote:
That is enough to get the code to compile on AIX 5.3, but it is not building the
library properly - see below. I'm pretty new to AIX, so don't have a lot of
experience in knowing what these errors might be.
I'm happy to apply a patch for that if you have one. If it is mostly
in fp-aix.c it shouldn't affect anything else.
Have you see these sorts of errors on other platforms, and might have a clue
what they mean?
I've never seen that error before.
ld: 0711-593 SEVERE ERROR: Symbol C_BSTAT (entry 635) in object siman_tsp.o:
The symbol refers to a csect with symbol number 0, which was not
found. The new symbol cannot be associated with a csect and
is being ignored.
Give me a day or two. I'll fire up the AIX box and give you a patch which will
allow gsl to compile, but not link.
I suspect the linking problem is nothing to do with GSL, as I've seen similar
issues on other things.
FWIW, I asked on the autconf mailing list if the way to check for "fprnd_t" was
AC_CHECK_DECLS(fprnd_t,,,[#include <float.h>])
which is the way it's done in your configure.ac for similar things. The reply I
got was:
======= From autoconf mailing list. =================
Get in the habit of proper m4 quoting:
AC_CHECK_DECLS([fprnd_t],,,[[#include <float.h>]])
(the last argument is double-quoted because it is a literal string with no m4
macro contents, and because it contains a # which can cause problems in various
other macros when not double-quoted, even if AC_CHECK_DECLS is immune to those
problems).
================================================
So basically the only changes are to add
1) Add
AC_CHECK_DECLS([fprnd_t],,,[[#include <float.h>]])
to configure.ac
2) Stuff a few things in fp-aix.c which just define about 4 things if they are
not already defined. The definitions I took from the /usr/include/float.h from
my RS/6000 which as I said runs AIX 5.3.
Dave