Newsgroups: comp.parallel.pvm
From: hyang@ringer.cs.utsa.edu (Haixu Yang)
Subject: pvm link problem
Organization: The University of Texas at San Antonio
Date: 1 Sep 1994 22:19:45 -0500
Message-ID: <3465kh$hdt@ringer.cs.utsa.edu>


Environment: Running pvm3.3.3 on Sun Solaris 2.

I am trying to run BLACS testing program which I downloaded from netlib.
The testing program is writen in Fortran.

Because one of library (libucb.a) I need to use, have confilct 
(same variable names define in these two library) with another library (libc.a),
I can not link libucb.a statically, I have to link this library dynamically.
This method works in the linking time.
But the program spawned in another machine can't be loaded, because the dynamic linked library can't be located. I have tried to setup the environment variable
LD_LIBRARY_PATH point to that directory in my .cshrc file, but this not works. I guess the .chsrc file is not executed when pvm spanw a process on another machine.

My question is how can I let this dynamic linked library be founded, or at leastis there any way to resolve libucb.a and libc.a confilict if I link them statically?

--------------------------------------------------------------
The following is the actual error I got:
(1) link library ucb  statically
f77  -g -o sbtest ../sbtest.f  ../erinit.f     -L/usr/ucblib 
						^^^^^^^^^^^^
-L/home/hyang/pvm3/lib/SUN4SOL2 -lfpvm3  -lgpvm3 -lpvm3 -lnsl -lsocket   /home/hyang/SCALAPACK/tools_sun4.a /home/hyang/SCALAPACK/blacs_sun4.a /home/hyang/SCALAPACK/blas.a -Bstatic -lucb
	    ^^^^^^^^^^^^^^

Linking:
ld: fatal: symbol `_mkarglst' is multiply defined:
	(file /usr/ucblib/libucb.a(doprnt.o) and file /usr/lib/libc.a(doprnt.o));
ld: fatal: symbol `_doprnt' is multiply defined:
	(file /usr/ucblib/libucb.a(doprnt.o) and file /usr/lib/libc.a(doprnt.o));
ld: fatal: symbol `_getarg' is multiply defined:
	(file /usr/ucblib/libucb.a(doprnt.o) and file /usr/lib/libc.a(doprnt.o));
ld: fatal: File processing errors.  No output written to sbtest
make: *** [sbtest] Error 1
---------------------------------------------------------------
(2) link library ucb  dynamically
f77  -g -o sbtest ../sbtest.f  ../erinit.f     -L/usr/ucblib 
						^^^^^^^^^^^^
-L/home/hyang/pvm3/lib/SUN4SOL2 -lfpvm3  -lgpvm3 -lpvm3 -lnsl -lsocket   /home/hyang/SCALAPACK/tools_sun4.a /home/hyang/SCALAPACK/blacs_sun4.a /home/hyang/SCALAPACK/blas.a  -lucb
	    ^^^^^^
comment:no error at comile time.>

comment :error during starting the program
[t80040000] [tc0001] ld.so.1: pvm3/bin/SUN4SOL2/sbtest: fatal: libucb.so.1: can't open file: errno=2
[t80040000] [t140001] ld.so.1: pvm3/bin/SUN4SOL2/sbtest: fatal: libucb.so.1: can't open file: errno=2
[t80040000] [t80001] ld.so.1: pvm3/bin/SUN4SOL2/sbtest: fatal: libucb.so.1: can't open file: errno=2
[t80040000] [t80002] ld.so.1: pvm3/bin/SUN4SOL2/sbtest: fatal: libucb.so.1: can't open file: errno=2
[t80040000] [t100001] ld.so.1: pvm3/bin/SUN4SOL2/sbtest: fatal: libucb.so.1: can't open file: errno=2
[t80040000] [tc0002] ld.so.1: pvm3/bin/SUN4SOL2/sbtest: fatal: libucb.so.1: can't open file: errno=2


Any suggestion will be greatly appreciated


Thanks.



