This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Build problem on ABM AIX + solution
- To: gsl-discuss at sources dot redhat dot com
- Subject: Build problem on ABM AIX + solution
- From: eric dot van dot der dot velde at nl dot fortisbank dot com
- Date: Thu, 27 Sep 2001 08:36:36 +0100
Trying to make gsl on an IBM AIX 4.3 (xlc) system failed in the file
test/results.c (problems concerning the va_list)
The problem is that __STDC__ is not defined on an AIX system (which should
be), and the prepocessor takes the 'wrong' decision.
To solve this problem I modified the test/results file all the occurences
of
#ifdef __STDC__
to
#if defined(__STDC__) || defined(AIX)
Then I added -DAIX to the CFLAGS and ran ./configure again (followed by a
make)
I hope this can solve you build problems on AIX in the future
Here some info on the AIX compiler:
the IBM C compiler doesn't define __STDC__ (despite the fact
that its entirely ANSI compatible - actually it does define __STDC__ if
you put it in "strict" mode, but then it treats an allocation of an "int"
to an "unsigned int" as a severe error and stops. Thus nobody uses the
strict mode, thus __STDC__ is rarely defined. In addition it generates an
error message if you define __STDC__ manually....) Therefore could you put
in a || defined (AIX) to all your #ifdef __STDC__...?
Eric
___________________________________________________________________________
This e-mail is sent for the sole attention of the identified addressee and its
contents are provided for information purposes only. Fortis Bank makes no
warranty or representation as to the accuracy and completeness of any
information and does not assume whatever commitment hereby. Legally binding
obligation can only arise for, or be entered into on behalf of, Fortis Bank by
means of a written instrument, signed by two duly authorised representatives of
Fortis Bank. Fortis Bank excludes any liability whatsoever for any direct or
consequential loss arising from the use, or reliance on, this e-mail or its
contents.
___________________________________________________________________________