2003.08.10 05:53 "[Tiff] ld.so.1, TIFFmalloc not found", by Pushkar Pradhan
My system is solaris 5.8. I'm using mpich. I tried the -R but getting same errors, I think I'm not using this option in correct way: Titan pushkar$ mpicc -I/usr/local/include -ltiff -lm -o main main-mpi.c Rgblhs.c -L`gcc -print-file-name=` -lgcc -R/usr/local/lib/libtiff
I also tried the -R/usr/local/lib/libtiff.so or -R,....... Can you tell how I should use this option? Thanks,
----- Original Message -----
From: "Tom Kacvinsky" <firstname.lastname@example.org>
Sent: Sunday, August 10, 2003 12:39 AM
Subject: Re: [Tiff] ld.so.1, TIFFmalloc not found
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
/rstc/user1/erc/pushkar/data-fusion/main: symbol _TIFFmalloc: referenced symbol not found
> 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?
> Tiff mailing list