AIX 7.1 shared library issue

Emmanuel Thomé Emmanuel.Thome at normalesup.org
Thu Jul 4 14:14:12 CEST 2013


Hi,

I'm encoutering problems trying to install gmp-5.1.2 on power7-AIX 7.1.

Gmp compiles and passes make check successfully. The compiler is
gcc-4.8.1. However make install does not seem to install the shared
library, and I am left only with:

-bash-4.2$ find ~/Packages/ -type f
/home/thome/Packages/gmp-5.1.2/include/gmp.h
/home/thome/Packages/gmp-5.1.2/lib/libgmp.a
/home/thome/Packages/gmp-5.1.2/lib/libgmp.la
/home/thome/Packages/gmp-5.1.2/share/info/dir
/home/thome/Packages/gmp-5.1.2/share/info/gmp.info
/home/thome/Packages/gmp-5.1.2/share/info/gmp.info-1
/home/thome/Packages/gmp-5.1.2/share/info/gmp.info-2

(a complete build&install transcript is attached)

Upon further inspection, this machine setup is missing some bits, as
gcc is unable to build static binaries. Hello world gives:

-bash-4.2$ gcc -std=gnu99 -static hello.c
ld: 0706-003 Cannot find or read import file: /lib/syscalls.exp
        ld:accessx(): A file or directory in the path name does not exist.
collect2: error: ld returned 255 exit status

This does not prevent gmp from compiling, though. Given the above,
configure expectedly decides to avoid static libs:

checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

Nevertheless, both kinds of libraries are built:

-bash-4.2$ ls -l .libs/libgmp*
-rw-r--r--    1 thome    usr          759963 Jul 04 04:30 .libs/libgmp.a
-rw-r--r--    1 thome    usr            9821 Jul 04 04:30 .libs/libgmp.exp
lrwxrwxrwx    1 thome    usr              12 Jul 04 04:30
.libs/libgmp.la -> ../libgmp.la
-rw-r--r--    1 thome    usr             904 Jul 04 04:30 .libs/libgmp.lai
-rwxr-xr-x    1 thome    usr          729807 Jul 04 04:30 .libs/libgmp.so.10

And as said above, libgmp.so never gets installed.

Exact same situation with xlc.

I understand that the oddities I am bound to encounter downhill can
probably be blamed on the missing bits in the machine setup (the
/lib/syscalls.exp is in some system package, as google finds). Yet, I
have the impression that gmp in this situation is not behaving
correctly, as I would expect to be able to install a shared library.
Could this be fixed ?

Best regards,

E.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: do-gmp.log.gz
Type: application/x-gzip
Size: 23952 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20130704/19ff07ba/attachment-0001.bin>


More information about the gmp-bugs mailing list