2003.08.10 05:39 "[Tiff] ld.so.1, TIFFmalloc not found", by Tom Kacvinsky
For this type of problem, it helps to know what platform and operating
system you are using. Also, what flavor of MPI are you using? There
are several different versions.
However, my best guess is that mpirun (documented as being a shell
script) is doing something funky with LD_LIBRARY_PATH and so you are
losing out on those library search paths.
I usually try to circumvent this problem on the Solaris boxes I work
on by specifying -R/path/to/libtiff on the link line, which then
records this path for ld.so.1 to use at runtime linking. On Digital
UNIX, use -rpath, and if using gcc, -Wl,-R,/path/to/lib or whatever is
suitable for your platform.
Hope that helps,
On Sat, 9 Aug 2003, Pushkar Pradhan wrote:
I'm getting run time errors due to TIFFmalloc in my mpi program,
I compile my program like this:
> Titan pushkar$ mpicc -I/usr/local/include -ltiff -lm -o main main-mpi.c Rgblhs.c -L`gcc -print-file-name=` -lgcc
> bm_list_26444: p4_error: net_recv read: probable EOF on socket: 1
> I've tiff libraries libtiff.so, libtiff.a in 2 dirs. /usr/local/lib and /usr/openwin/lib on my system, both paths are in my $LD_LIBRARY_PATH so why is tiffmalloc still not found?