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-25 10:08:22 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!rwp From: rwp@nmti.com (roland pringle) Subject: Re: Problem with shared libraries Message-ID: Sender: rwp@nmti.com (roland pringle) Organization: Network Management Technology, Inc. References: Date: Mon, 25 Jul 1994 15:45:23 GMT In article , John Stoffel wrote: >>>>>> "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. John, thanks for the reply. I did have the LD_LIBRARY_PATH environmental variable set. I have also tried the -rpath compile flag and I still am unable to get a fortran main program to load with shared libraries. Perhaps if any DEC representative is listening to this newsgroup, s/he could lend a suggestion or two. Thanks Roland -- Roland Pringle (rwp@nmti.com) Network Management Technology, Inc. 1601 Industrial Blvd. Sugar Land, Texas 77487 +1 713 274-5084