From: pushkar@GRI.MsState.Edu (Pushkar Pradhan)
Date: Fri, 8 Aug 2003 14:20:42 -0500
Subject: [Tiff] linking errors in mpi environment
Message-ID: <132101c35de2$303a8740$320d1282@ercwin.erc.msstate.edu>
Content-Type: multipart/alternative;
      boundary="----=_NextPart_000_131E_01C35DB8.400438D0"

This is a multi-part message in MIME format.

------=_NextPart_000_131E_01C35DB8.400438D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I've compiled a mpi program using tiff libraries like this:
Titan[199] pushkar$ mpicc -I/usr/local/include -ltiff -lm -o main =
main-mpi.c Rgblhs.c -L`gcc -print-file-name=3D` -lgcc          =20
main-mpi.c:
Rgblhs.c:

When I try to run my program I'm getting a linker error saying it can't =
find _TIFFmalloc:
Titan[197] pushkar$ mpirun -np 2 main RGB.tif out.tif      =20
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_10127:  p4_error: net_recv read:  probable EOF on socket: 1
bm_list_10117:  p4_error: net_recv read:  probable EOF on socket: 1
Broken Pipe

I checked my LD_LIBRARY_PATH and libtiff.so does exist in one of the =
paths /usr/local/lib specifed in it.
Titan[196] pushkar$ echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:/usr/local/gnu/lib:/=
opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/local/netpbm/lib:/rstc/use=
r1/erc/pushkar/gdal-1.1.5:/rstc/user1/erc/pushkar/php-4.0.6/lib

Can any one tell why I'm still getting linker errors? Thanks,

Pushkar Pradhan

------=_NextPart_000_131E_01C35DB8.400438D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3502.5390" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I've compiled a mpi program using tiff =
libraries=20
like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Titan[199] pushkar$ mpicc =
-I/usr/local/include=20
-ltiff -lm -o main main-mpi.c Rgblhs.c -L`gcc -print-file-name=3D`=20
-lgcc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>main-mpi.c:<BR>Rgblhs.c:<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When I try to run my program I'm =
getting a linker=20
error saying it can't find _TIFFmalloc:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Titan[197] pushkar$ mpirun -np 2 main =
RGB.tif=20
out.tif&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>ld.so.1:=20
/rstc/user1/erc/pushkar/data-fusion/main: fatal: relocation error: file=20
/rstc/user1/erc/pushkar/data-fusion/main: symbol _TIFFmalloc: referenced =
symbol=20
not found<BR>rm_l_1_10127:&nbsp; p4_error: net_recv read:&nbsp; probable =
EOF on=20
socket: 1<BR>bm_list_10117:&nbsp; p4_error: net_recv read:&nbsp; =
probable EOF on=20
socket: 1<BR>Broken Pipe</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I checked my LD_LIBRARY_PATH and =
libtiff.so does=20
exist in one of the paths /usr/local/lib specifed in it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Titan[196] pushkar$ echo=20
$LD_LIBRARY_PATH<BR>/usr/lib:/usr/local/lib:/usr/dt/lib:/usr/openwin/lib:=
/usr/local/gnu/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/ucblib:/usr/local/=
netpbm/lib:/rstc/user1/erc/pushkar/gdal-1.1.5:/rstc/user1/erc/pushkar/php=
-4.0.6/lib<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Can any one tell why I'm still getting =
linker=20
errors? Thanks,<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Pushkar =
Pradhan</FONT></DIV></BODY></HTML>

------=_NextPart_000_131E_01C35DB8.400438D0--


