AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2003.08.08 19:20 "[Tiff] linking errors in mpi environment", by Pushkar Pradhan

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=` -lgcc

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

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/user1/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