From: pushkar@GRI.MsState.Edu (Pushkar Pradhan)
Date: Sun, 10 Aug 2003 21:40:40 -0500
Subject: [Tiff] Corection [was: ld.so.1, TIFFmalloc not found]
References: <143101c35efa$26b18930$320d1282@ercwin.erc.msstate.edu> <Pine.GSO.4.53.0308100124550.16398@sun06.ams.org> <143d01c35f03$c0548110$320d1282@ercwin.erc.msstate.edu> <Pine.GSO.4.53.0308100914460.15161@sun06.ams.org> <Pine.GSO.4.53.0308101158020.25825@sun06.ams.org>
Message-ID: <002b01c35fb1$f43eeac0$320d1282@ercwin.erc.msstate.edu>

Tom,
I'm still getting the same error, like you told I first set LDFLAGS:
Titan[16] pushkar$ env
LDFLAGS="-R/usr/local/lib -L/usr/local/lib -L`gcc -print-file-name=` -lgcc -
ltiff -lm"
This cmd prints out a lot of envi. variables and also at the end prints
this:
LDFLAGS=-R/usr/local/lib -L/usr/local/lib -L/usr/local/gnu/lib/gcc-lib/sparc
-sun-solaris2.8/2.95.3/ -lgcc -ltiff -lm

And when I run:
Titan[17] pushkar$ mpirun -np 2 main RGB.tif out.tif ld.so.1:
/rstc/user1/erc/pushkar/data-fusion/main: fatal: relocation error: file
/rstc/user1/erc/pushkar/data-fusion/main: symbol _TIFFmalloc: referenced
symbol not found
rm_l_1_1985:  p4_error: net_recv read:  probable EOF on socket: 1
bm_list_1975:  p4_error: net_recv read:  probable EOF on socket: 1
Broken Pipe

Have I set the LDFLAGS correctly?
Pushkar Pradhan
----- Original Message -----
From: "Tom Kacvinsky" <tjk@ams.org>
To: <tiff@remotesensing.org>
Sent: Sunday, August 10, 2003 11:00 AM
Subject: [Tiff] Corection [was: ld.so.1, TIFFmalloc not found]


> Correction:
>
> I took a look a the mpicc Bourne shell script, and it
> sets the LDFLAGS variable.  If I were you, I would do
> the following:
>
>    env LDFLAGS="-R/usr/local/lib -L/usr/local/lib \
>    -L`gcc -print-file-name=` -lgcc -ltiff -lm     \
>    mpicc -I/usr/local/include -o main main-mpi.c   \
>    Rgblhs.c
>
> Tom
>
> On Sun, 10 Aug 2003, Tom Kacvinsky wrote:
>
> > I usually put
> >
> >    -I/usr/local/include -R/usr/local/lib -L/usr/local/lib \
> >    -L`gcc -print-file-name=` -lgcc -ltiff -lm ...
> >
> > Out of curiousity, I see that you are using -L`gcc -print-file-name=`.
> > IS this because some of the libs were compiled with gcc, but you are
> > now using the Frte compilers for Solaris?
> >
> > Tom
> >
> > On Sun, 10 Aug 2003, Pushkar Pradhan wrote:
> >
> > > Tom,
> > > 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[261] 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
> > > main-mpi.c:
> > > Rgblhs.c:
> > >
> > > I also tried the -R/usr/local/lib/libtiff.so or -R,.......
> > > Can you tell how I should use this option? Thanks,
> > >
> > > Pushkar Pradhan
> > > ----- Original Message -----
> > > From: "Tom Kacvinsky" <tjk@ams.org>
> > > To: <tiff@remotesensing.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,
> > > >
> > > > Tom
> > > >
> > > > 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[240] pushkar$ mpicc -I/usr/local/include -ltiff -lm -o main
> > > main-mpi.c Rgblhs.c -L`gcc -print-file-name=` -lgcc
> > > > > main-mpi.c:
> > > > > Rgblhs.c:
> > > > > Titan[241] pushkar$
> > > > >
> > > > > When I'm trying to run it using mpirun I get link error:
> > > > > Titan[241] pushkar$ mpirun -np 2 main RGB.tif out.tif ld.so.1:
> > > /rstc/user1/erc/pushkar/data-fusion/main: fatal: relocation error:
file
> > > /rstc/user1/erc/pushkar/data-fusion/main: symbol _TIFFmalloc:
referenced
> > > symbol not found
> > > > > rm_l_1_26454:  p4_error: net_recv read:  probable EOF on socket: 1
> > > > > bm_list_26444:  p4_error: net_recv read:  probable EOF on socket:
1
> > > > > Broken Pipe
> > > > >
> > > > > 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?
> > > > >
> > > > > Thanks,
> > > > > Pushkar Pradhan
> > > > >
> > > > _______________________________________________
> > > > Tiff mailing list
> > > > Tiff@remotesensing.org
> > > > http://remotesensing.org/mailman/listinfo/tiff
> > > >
> > >
> > > _______________________________________________
> > > Tiff mailing list
> > > Tiff@remotesensing.org
> > > http://remotesensing.org/mailman/listinfo/tiff
> > >
> > _______________________________________________
> > Tiff mailing list
> > Tiff@remotesensing.org
> > http://remotesensing.org/mailman/listinfo/tiff
> >
> _______________________________________________
> Tiff mailing list
> Tiff@remotesensing.org
> http://remotesensing.org/mailman/listinfo/tiff
>


