Michael Wulff on Fri, 24 Feb 2012 12:36:03 +0100


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

Re: Compiling PARI on AIX 7.1


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.

Stop.

> What linker are you using ?

We are using the standard linker on AIX located at /usr/ccs/bin/ld.

> Could you send us the whole output of Configure ?
> This would allow us to improve support for AIX.

Configuring pari-2.5.1 (STABLE) 
Checking echo to see how to suppress newlines...
...using \c
Looking for some tools first ...
...ld is /usr/bin/ld
...zcat is /usr/bin/zcat
...gzip is /usr/bin/gzip
...ranlib is /usr/bin/ranlib
...perl is /usr/bin/perl
Looking for the compilers ...
...cc is /usr/vac/bin/cc
...I could not find gcc.
Given the previous choices, sizeof(long) is 4 chars.
The internal word representation of a double is l[0], l[1].
==========================================================================
Building for: PowerPC running aix (PPC/GMP kernel) 32-bit version
==========================================================================
C compiler is          /usr/vac/bin/cc -O2 -qtune=auto -qmaxmem=8192 -qlanglvl=ansi   
Executable linker is   /usr/vac/bin/cc  -O2 -qtune=auto -qmaxmem=8192 -qlanglvl=ansi   --export-dynamic 
Dynamic Lib linker is  /usr/bin/ld  -r 
Looking in C lib for some symbols...
...Found exp2.
...Found log2.
...Found strftime.
...Found getrusage.
...Found sigaction.
...I did not find TIOCGWINSZ.
...Found getrlimit.
...Found stat.
...Found vsnprintf.
...Found waitpid.
...Found setsid.
...Found getenv.
...Found isatty.
...Found alarm.
...Found dlopen.
Checking for optional libraries and headers...
### Building without GNU MP support
...Found libX11 in /usr/lib
...Found X11 header files in /usr/include/X11
...Extra Libraries are  
Hi-Res Graphics: X11
...Found libreadline in /usr/lib/
...But no header file has been found
### Building without GNU readline support
Installation prefix ? [/usr/local]
...for architecture-independent files (share-prefix) ? [/usr/local/share]
Installation directories for:
...executables (gp, gphelp) ? [/usr/local/bin]
...libraries (libpari) ? [/usr/local/lib]
...include files ? [/usr/local/include]
...manual pages ? [/usr/local/share/man/man1]
...other system-dependent data ? [/usr/local/lib/pari]
...other system-independent data ? [/usr/local/share/pari]
Default is dynamic executable and shared library
==========================================================================
Extracting examples/Makefile.aix-ppc
Extracting Oaix-ppc/Makefile
Extracting Makefile
Extracting Oaix-ppc/paricfg.h
Extracting Oaix-ppc/../Odos/paricfg.h
Extracting scripts and macros
...in doc
...in misc
==========================================================================
Shall we try to build pari 2.5.1 (released) now (y/n)? [n]
Ok. Type "make install" when you are ready

Regards,

Michael
Bye !