From: jma@cse.ucsc.edu (Jim Alexander)
Subject: Re: /sbin/loader "cannot map" shareable object?
Date: 1996/09/30 [thread overview]
Message-ID: <52p0od$ogk@darkstar.ucsc.edu> (raw)
In-Reply-To: 52offv$30k@worf.qntm.com
In article <52offv$30k@worf.qntm.com>,
only 171 days 'til spring! <shelin@jupitr.enet.qntm.com> 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.
prev parent reply other threads:[~1996-09-30 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-30 4:00 /sbin/loader "cannot map" shareable object? only 171 days 'til spring!
1996-09-30 4:00 ` Jim Alexander [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox