Michael Wulff on Thu, 08 Mar 2012 13:57:54 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Math::Pari on AIX 7.1


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;

Regards, Michael