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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shared Library - Serious(ly Strange) Problem

Status
Not open for further replies.

brianon

Programmer
Feb 6, 2002
22
0
0
IE
Hi,

I created a shared library a while ago and its been running fine for months. Now suddenly it has stopped working, but only on one machine (Sun Ultra 10) !

The C Shared Library is being called from some C++ code and had been working fine until tested on this one particular machine. Nothing has changed since the last build other than testing on this machine for the first time.

The _init() is performed perfectly as is the _fini().
However the library has two functions also... one called from the C++ and another called from within this.
The first function was being called ok but just quitting (in mid air! seemingly) before calling the second and just returns -1.
Today however, the first one is being called from C++ but just immediately returning -1 !

Anybody got any ideas ? I am seriously stumped.

Regards,.
Brian.
 
Use ldd on your executable to see which libraries your program thinks it is loading. Possibly something has happened to your LD_LIBRARY_PATH and it is possibly picking up the wrong library.

Alternatively, you may have a template problem. Only way around this one is to rebuild the library.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top