From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,15ad85f45d82adbe X-Google-Attributes: gidfee84,public From: jma@cse.ucsc.edu (Jim Alexander) Subject: Re: /sbin/loader "cannot map" shareable object? Date: 1996/09/30 Message-ID: <52p0od$ogk@darkstar.ucsc.edu>#1/1 X-Deja-AN: 186269193 references: <52offv$30k@worf.qntm.com> organization: UC Santa Cruz CIS/CE newsgroups: comp.unix.osf.osf1 In article <52offv$30k@worf.qntm.com>, only 171 days 'til spring! wrote: }i have a run time error during program startup: } } "/sbin/loader: Fatal Error: cannot map X" } }where X is a 3rd party shareable object linked in with the application i'm }trying to run. } }i'm new to UNIX, it's an alpha system running DEC OSF1. i tried building }the application with the archive libraries instead of the shareable objects }(the source is C) but the linker barks with undefined symbols. } }i'd be grateful to anyone who might provide some insight here. } }thank you! } }karl shelin I assume this library lives in a nonstandard place, i.e. not in /usr/shlib. The Digital UNIX linker does not include anything but the standard library paths in the runtime shared object search path by default. You need to use the -rpath linker flag to add more directories to the search path (read about this in the ld man page). Basically, what you need to do is add this to the end of your link line: -Wl,-rpath,/directory/where/shared/lib/lives (this is not the only way to do it, but I think it's the best way). -- -------------------------------------------------------------------- Jim Alexander | Meddle not in the affairs of dragons, for jma@cse.ucsc.edu | you are crunchy and taste good with catsup.