Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting error while running the file...

Status
Not open for further replies.

prativa

Programmer
Joined
Aug 3, 2003
Messages
1
Location
KW
Hi

I am getting the below error while trying to run the file test.C. But I am able to compile the file without any error. Could anyone be able to tell me what could be the reason for this error.I am using make file for compilation.

The error is

253295:./test: /sbin/loader: Fatal Error: Cannot map library libstest.so

Please let me know if any detail information is required for debugging.

Thanks in advance
Prativa
 
Hi,
your LIBRARY sreach path which normally defaults to

.:/usr/lib

doesn't have this library in it. If this library is in the search path then the library image is probably corrupted.

try exeuting

file libstest.so

and see what it says. then try

file /usr/lib/libc*so*

and compare them. they should be the same.

Maybe you forgot the -G on the link line which tells the linker to make a SHARED library and so instead the linker generated a big .o with the name libstest.so. A BIG .o isn't loadable.


----
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top