[Trilinos-Users] [EXTERNAL] hdf5

Eligiusz Postek ewpostek at googlemail.com
Sun Nov 12 16:00:47 EST 2017


Hi,
The hdf5/netcdf libs are linked.
Thank you for your good avice.

It appeared a new problem, but with X
1) tri_x/Trilinos.git> cd  build
getline_int.c:(.text+0x49e8): warning: Using 'getpwuid' in statically
linked applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib64/libX11.a(GetDflt.o): In function `GetHomeDir':
/usr/src/packages/BUILD/libX11-1.1.5/src/GetDflt.c:133: warning: Using
'getpwnam_r' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/src/packages/BUILD/libX11-1.1.5/src/GetDflt.c:135: warning: Using
'getpwuid_r' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
The option -static does not help

2) There is an error:
/usr/lib64/libX11.a(ClDisplay.o): In function `XCloseDisplay':
/usr/src/packages/BUILD/libX11-1.1.5/src/ClDisplay.c:78: undefined reference
to `xcb_disconnect'
/usr/lib64/libX11.a(OpenDis.o): In function `OutOfMemory':
/usr/src/packages/BUILD/libX11-1.1.5/src/OpenDis.c:929: undefined reference
to `xcb_disconnect'
/usr/lib64/libX11.a(OpenDis.o): In function `XOpenDisplay':
/usr/src/packages/BUILD/libX11-1.1.5/src/OpenDis.c:366: undefined reference
to `xcb_get_setup'
/usr/src/packages/BUILD/libX11-1.1.5/src/OpenDis.c:676: undefined reference
to `xcb_get_maximum_request_length'
/usr/lib64/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
/usr/src/packages/BUILD/libX11-1.1.5/src/xcb_lock.c:181: undefined
reference to `xcb_get_request_sent'
/usr/lib64/libX11.a(xcb_lock.o): In function `issue_complete_request':

and more of this kind,

Could you still give a hand ?

Thank you, Elek



On Sun, Nov 12, 2017 at 3:04 PM, Lofstead, Gerald F II <gflofst at sandia.gov>
wrote:

> Hi Elek,
>
>
>
> Did you get it working?
>
>
>
> Best,
>
>
>
> Jay
>
>
>
> *From: *Eligiusz Postek <ewpostek at googlemail.com>
> *Date: *Thursday, November 9, 2017 at 6:18 PM
> *To: *"Lofstead, Gerald F II" <gflofst at sandia.gov>
> *Subject: *Re: [EXTERNAL] [Trilinos-Users] hdf5
>
>
>
> Sorry about second mail on this topic.
>
> It finds the static libs, but  there are shared as well.
>
> In consequence, there is the error.
>
> Could help with "how to" ?
>
> Thank you, Elek
>
>
> - HDF5_LIBRARY_NAMES='hdf5;z;hdf5_hl'
> -- Searching for libs in HDF5_LIBRARY_DIRS='/opt/cray/
> hdf5/1.8.16/GNU/5.1/lib'
> -- Searching for a lib in the set "hdf5":
> --   Searching for lib 'hdf5' ...
> --     Found lib '/opt/cray/hdf5/1.8.16/GNU/5.1/lib/libhdf5.a'
> -- Searching for a lib in the set "z":
> --   Searching for lib 'z' ...
> --     Found lib '/usr/lib64/libz.a'
>
>
>
> On Fri, Nov 10, 2017 at 2:07 AM, Eligiusz Postek <ewpostek at googlemail.com>
> wrote:
>
> Hi Jay,
>
> Yes, it looks.
>
>
> I have such lines now. However, it does not change anything.
>
> -D CMAKE_CXX_FLAGS:STRING="-O2 -ansi -std=c++11 -shared-libgcc -ftrapv
> -pedantic -Wall -Wno-long-long" \
>
> -D BUILD_SHARED_LIBS:BOOL=ON \
>
> Can you give a hint ?
>
> Best, Elek
>
>
>
> On Fri, Nov 10, 2017 at 1:38 AM, Lofstead, Gerald F II <gflofst at sandia.gov>
> wrote:
>
> Hi Elek,
>
>
>
> It looks to me like the HDF5 library was built assuming shared libraries
> only and you are trying to link just statically. Is that the case?
>
>
>
> Best,
>
>
>
> Jay
>
>
>
> *From: *Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of
> Eligiusz Postek <ewpostek at googlemail.com>
> *Date: *Thursday, November 9, 2017 at 5:35 PM
> *To: *"trilinos-users at trilinos.org" <trilinos-users at trilinos.org>
> *Subject: *[EXTERNAL] [Trilinos-Users] hdf5
>
>
>
> Hello,
>
> Could it mean that the cray libs (hdf5) are incomplete ?
>
> Is there any other error ?
>
> best regards, Elek
>
>
>
> [ 34%] Building CXX object packages/teuchos/parameterlist/src/CMakeFiles/
> teuchosparameterlist.dir/Teuchos_StringInputStream.cpp.o
> /opt/cray/hdf5/1.8.16/GNU/5.1/lib/libhdf5.a(H5PL.o): In function
> `H5PL_load':
> H5PL.c:(.text+0x634): warning: Using 'dlopen' in statically linked
> applications requires at runtime the shared libraries from the glibc
> version used for linking
> /opt/cray/hdf5/1.8.16/GNU/5.1/lib/libhdf5_hl.a(H5LT.o): In function
> `H5LT_dtype_to_text':
> H5LT.c:(.text+0x2871): undefined reference to `H5Tget_tag'
> /opt/cray/hdf5/1.8.16/GNU/5.1/lib/libhdf5_hl.a(H5LTparse.o): In function
> `H5LTyyparse':
> H5LTparse.c:(.text+0x108d): undefined reference to `H5Tset_tag'
> collect2: error: ld returned 1 exit status
> make[2]: *** [packages/seacas/applications/nem_slice/nem_slice] Error 1
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20171112/25e717ff/attachment.html>


More information about the Trilinos-Users mailing list