[petsc-users] ./a.out: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

Satish Balay balay at mcs.anl.gov
Fri Oct 31 10:07:02 CDT 2014


On Fri, 31 Oct 2014, TAY wee-beng wrote:

> Hi,
> 
> I have no problem building PETSc 3.5.2. However, during building of my code,
> it gives the warning:
> 
> /ipo: warning #11021: unresolved XauDisposeAuth//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libX11.so//
> //ipo: warning #11021: unresolved XauGetBestAuthByAddr//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libX11.so//
> //ipo: warning #11021: unresolved XdmcpWrap//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libX11.so//
> //ipo: warning #11021: unresolved inflateEnd//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
> //ipo: warning #11021: unresolved deflate//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
> //ipo: warning #11021: unresolved deflateInit_//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
> //ipo: warning #11021: unresolved inflate//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
> //ipo: warning #11021: unresolved deflateEnd//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
> //ipo: warning #11021: unresolved inflateInit_//
> //        Referenced in
> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
> //ipo: remark #11000: performing multi-file optimizations/

IPO is not always useful. You should check if it actually helps or not - and crank
down the optimization options a bit.

> 
> The a.out is still created. However, when running the job, it gives the error:
> 
> /./a.out: error while loading shared libraries: libX11.so.6: cannot open
> shared object file: No such file or directory/
> 
> I checked and found libX11.so.6 in the /usr/lib64 directory. However, using:
> 
> --with-x-lib=/usr/lib64 --with-x-include=/usr/include/X11
> 
> can't work.
> 
> Btw, I already added --with-x=1 during the building of PETSc.
> 
> Also, the a.out works if I run interactively. But if I send the job using
> scheduler, it can't work.

It means that your compute nodes don't have libX11.so.6 installed [but the front end node
has it installed. You can request your sysadmin to make sure the same software is installed
on all nodes.

Or you can rebuild PETSc with --with-x=0 --with-ssl=0

Satish

> 
> It seems that I must statically link the X11 files, is that so?
> 
> Do you have a solution?
> 
> 



More information about the petsc-users mailing list