Unix Programming - Shared library version problem

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2004 > Shared library version problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Shared library version problem
Michael

2004-11-28, 8:47 pm

I am compiling a program on Solaris 9 and running it on a different
machine also running Solaris 9.
When I run the program, the message below is printed:
"ld.so.1.: <executable name>: fatal: libm.so.1: version 'SUNW_1/1/1'
not found (required by file <executable name> )
Killed"

Does anyone know what I am doing wrong? I have tried using the same
version of the libm shared library on the machine that I execute the
program but the same message is received.

Thank you.
Paul Pluzhnikov

2004-11-29, 2:48 am

msh@mindless.com (Michael) writes:

> I am compiling a program on Solaris 9 and running it on a different
> machine also running Solaris 9.
> When I run the program, the message below is printed:
> "ld.so.1.: <executable name>: fatal: libm.so.1: version 'SUNW_1/1/1'
> not found (required by file <executable name> )
> Killed"


Sounds like your program is corrupting its own version strings
(which reside in the .dynstr section of the executable).

Run "elfdump -v exename', you should see something like this:
....
libm.so.1 SUNW_1.1.1

Do you have some code in your program that replaces '.'s with '/'s ?
If so, see if that code performs replacements in strings that do
not belong to you.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com