Bill Allombert on Thu, 08 Mar 2012 19:10:24 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Math::Pari on AIX 7.1 |
On Thu, Mar 08, 2012 at 12:57:45PM +0000, Michael Wulff wrote: > Hello, > > I am trying to build the perl module Math::Pari in a Perl 5.14.2 environment on AIX > 7.1 TL01 64 Bit using vac compiler v11.1.0.8. > > When running `make' I get the following error from the paricfg.c file: > > xlc_r -q64 -c -I ../../pari-2.5.1/src -I ../../pari-2.5.1/src/headers -I ../../pari-2.5.1/src/graph -I . -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -q64 -DUSE_64_BIT_ALL -q64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_err -DDYNAMIC_PLOTTING -o paricfg.o ../../pari-2.5.1/src/language/paricfg.c > "../../pari-2.5.1/src/language/paricfg.c", line 18.31: 1506-221 (S) Initializer must be a valid constant expression. > "../../pari-2.5.1/src/language/paricfg.c", line 19.33: 1506-221 (S) Initializer must be a valid constant expression. > "../../pari-2.5.1/src/language/paricfg.c", line 21.34: 1506-221 (S) Initializer must be a valid constant expression. > make: 1254-004 The error code from the last command is 1. > > Stop. > make: 1254-004 The error code from the last command is 2. > > Stop. > > Does the IBM compiler have a problem with the const declarations? > > +17 const char *paricfg_datadir = GPDATADIR; > +18 const char *paricfg_version = PARIVERSION; > +19 const char *paricfg_buildinfo = PARIINFO; > +20 const long paricfg_version_code = PARI_VERSION_CODE; > +21 const char *paricfg_vcsversion = PARI_VCSVERSION; No. The problem is that it uses an incorrect paricfg.h file that is missing the definition of PARIVERSION, etc. However, Math::PARI is not developed by us and is using a different configure system, so we cannot really help you. Cheers, Bill.