Bill Allombert on Sun, 26 Feb 2012 20:20:16 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Compiling PARI on AIX 7.1 |
On Fri, Feb 24, 2012 at 11:35:54AM +0000, Michael Wulff wrote: > On 22 Feb 2012, at 21:09, Bill Allombert wrote: > > > > > Yes, you should just remove --export-dynamic and > > -rpath > > "/usr/local/source/pari-2.5.0"/Oaix-ppc:"/usr/local/lib":/usr/lib > > -L"/usr/local/source/pari-2.5.0/Oaix-ppc" from the compiler option. > > Thank you, Bill. I removed the --export-dynamic option and set RUNPTH to nothing in the Makefile. But now I run into the following error: > > /usr/vac/bin/cc -o gp-dyn -L"/usr/local/source/pari-2.5.1/Oaix-ppc" -O2 -qtune=auto -qmaxmem=8192 -qlanglvl=ansi gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plotX.o plotport.o -lpari -L/usr/lib -lX11 -lm > ld: 0706-006 Cannot find or open library file: -l pari > ld:open(): A file or directory in the path name does not exist. > make: 1254-004 The error code from the last command is 255. > > Stop. > make: 1254-004 The error code from the last command is 2. You should still be able to build gp-sta: cd Oaix-ppc; make gp-sta Maybe the support for building the PARI shared library is broken. We do not have access to an AIX system to test it. > > What linker are you using ? > > We are using the standard linker on AIX located at /usr/ccs/bin/ld. But Configure says: Dynamic Lib linker is /usr/bin/ld -r so this can explain the confusion. Maybe you can try: env LD=/usr/ccs/bin/ld ./Configure or even env LD=/usr/ccs/bin/ld ./Configure --static Cheers, Bill.