load fails to load a .so file on Solaris/Sparc with Tcl 8.5Hi
- From: Kish Shen <kishshen@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 13:59:21 +0100
Hi,
I downloaded the sources for Tcl/Tk 8.5.2 a couple of days ago because I wanted to upgrade the application we are developing from using Tcl/Tk 8.4 to 8.5.
Our application loads several dynamic libraries (.so files in most Unix systems) from Tcl using the load command. Unfortunatel, for the Solaris (for Sparc) version, I get an error from Tcl 8.5.
In fact, I found that I am unable to load any .so file on Solaris from Tcl 8.5, even a simple dummy one that just has one dummy procedure in it:
% load [file join . foo.so]
couldn't load file "./foo.so": ld.so.1: /homes/kish/TclTk/sparc_sunos5/bin/tclsh8.5: fatal: relocation error: file ./foo.so: symbol main: referenced symbol not found
This is the same error (missing main symbol) as the one I get from the actual .so files I want to load.
I am able to load the dynamic libraries for other platforms (I have tried Linux, both 32 and 64 bits, x86) with Tcl 8.5, and for all platforms with Tcl 8.4.
I did an nm on the so files, and it seems all the .so files in Solaris have an undefined main in them (U main), but this was not a problem for 8.4, and I certainly did not intend to have a main procedure in a library file.
Any ideas what the problem might be, and how I could work around/fix it?
Thanks in advance for any information!
--Kish Shen
.
- Follow-Ups:
- Re: load fails to load a .so file on Solaris/Sparc with Tcl 8.5Hi
- From: Larry W. Virden
- Re: load fails to load a .so file on Solaris/Sparc with Tcl 8.5Hi
- Prev by Date: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Next by Date: Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
- Previous by thread: Free YouTube Video Downloader Software
- Next by thread: Re: load fails to load a .so file on Solaris/Sparc with Tcl 8.5Hi
- Index(es):
Relevant Pages
|