itaps-parallel FronTier tutorial

Mark Miller miller86 at llnl.gov
Mon Nov 10 13:24:34 CST 2008


Hi All,

FYI, I tested a modification to Ryan's Makeile to use '-static' on both
creation of .o (compile) and creation of executable (link). That
resulted in odd error for '-lgcc_s' (which I assume is probably needed
for shared libs maybe?). After I removed '-lgcc_s' and added '-
lz' (which is needed because hdf5 lib is compiled with zlib depdnence),
I got a static executable but with following warning...

/usr/local/hdf5serial/lib/libhdf5.a(H5FDstream.o): In function `H5FD_stream_open':
H5FDstream.c:(.text+0x125e): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

However, the static executable behaved identically to the shared
executable. I still get 

mcmiller at mesh:~$ ./HelloFronTier
error type 3 in: iMesh_load

Mark


On Sun, 2008-11-09 at 19:44 -0800, Mark Miller wrote:
> Hi Ryan and Martin,
> 
> Ok, I tried it and got further after finding hdf5 libs...
> 
> ./HelloFronTier: error while loading shared libraries: libiMesh.so.0: cannot open shared object file: No such file or directory
> mcmiller at mesh:~$ env LD_LIBRARY_PATH=/usr/local/itaps/MOABser/lib ./HelloFronTier
> ./HelloFronTier: error while loading shared libraries: libhdf5.so.0: cannot open shared object file: No such file or directory
> mcmiller at mesh:~$ env LD_LIBRARY_PATH=/usr/local/itaps/MOABser/lib:/usr/local/hdf5serial/lib ./HelloFronTier
> error type 3 in: iMesh_load
> 
> mcmiller at mesh:~$ env LD_LIBRARY_PATH=/usr/local/itaps/MOABser/lib:/usr/local/hdf5serial/lib ./HelloFronTier /usr/local/itaps/FronTier_tutorial/vtk_files/circle.vtk -o vtk
> Usage: example -o output
> 
> Also, as I am sure you are probably already thinking, it is probably
> best to force static linking whenever possible at least where tutorials
> are concerned as you can eliminate issues with finding shared libs.
> 
> Mark
> 
> 
> On Fri, 2008-11-07 at 20:21, isenburg1 at llnl.gov wrote:
> > hi ryan,
> > 
> > i tried running your tutorial. there is some issue with libhdf5.so.0  
> > libraries. are they missing or is an obvious path missing?
> > 
> > isenburg at mesh:~/FronTier_tutorial$ ./HelloFronTier
> > ./HelloFronTier: error while loading shared libraries: libiMesh.so.0:  
> > cannot open shared object file: No such file or directory
> > 
> > isenburg at mesh:~/FronTier_tutorial$ echo $LD_LIBRARY_PATH
> > /usr/local/itaps/FMDB_iMeshP/lib/
> > 
> > isenburg at mesh:~/FronTier_tutorial$  export  
> > LD_LIBRARY_PATH=/usr/local/itaps/MOABser/lib:${LD_LIBRARY_PATH}
> > 
> > isenburg at mesh:~/FronTier_tutorial$ echo $LD_LIBRARY_PATH
> > /usr/local/itaps/MOABser/lib:/usr/local/itaps/FMDB_iMeshP/lib/
> > 
> > isenburg at mesh:~/FronTier_tutorial$ ./HelloFronTier
> > ./HelloFronTier: error while loading shared libraries: libhdf5.so.0:  
> > cannot open shared object file: No such file or directory
> > 
> > cheers
> > 
> > martin
-- 
Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86 at llnl.gov
(M/T/W) (925)-423-5901 (!!LLNL BUSINESS ONLY!!)
(Th/F)  (530)-753-8511 (!!LLNL BUSINESS ONLY!!)




More information about the itaps-parallel mailing list