From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cd922e43161a3f1d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-22 10:27:14 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!bigboote.WPI.EDU!nntp!john From: john@avante.WPI.EDU (John Stoffel) Newsgroups: comp.unix.osf.osf1 Subject: Re: Problem with shared libraries Date: 22 Jul 1994 17:18:52 GMT Organization: Worcester Polytechnic Institute Message-ID: References: NNTP-Posting-Host: avante.wpi.edu In-reply-to: rwp@nmti.com's message of Fri, 22 Jul 1994 16:30:57 GMT >>>>> "roland" == roland pringle writes: In article rwp@nmti.com (roland pringle) writes: roland> I am working on an Alpha 3000/410 using OSF/1 v 3.02. I am roland> trying to link together a mixture of C and Fortran modules. I roland> have gotten a C main to link and load properly using shared roland> libraries. However, my Fortran main program will not load. roland> Every time I try to execute it the message roland> 9786: /dbl100/: /sbin/loader: Fatal error; cannot map librca.so It looks to me that your program was compiled to use a shared library which is now can't find. If you have librca.so outside of the default search path for loader, which is: /usr/shlib, /usr/ccs/lib, /usr/lib/cmplrs/cc, /usr/lib, /usr/local/lib, /var/shlib. To modify the search path, you can do: setenv LD_LIBRARY_PATH "/path/to/librca.so or you can try this when compiling your code: ld -rpath "/path/to/librca.so" main.o -o main -L/path/to" -lrca I haven't tested this myself, but that's how I read the man page for loader.