Artifacts Associated With Ticket 1163896fffffffff
Ticket change [bacde0586c] (rid 129382) by heidibr on 2005-03-15 17:12:42:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I'm trying to use dynamically linked Tcl/Tk (v.8.4.9) libraries on a LynxOS version 4.0 operating system. I can get the dynamically linked libraries to work using C functions. But I can't get them to work in Tcl. There is a sample extension that we've been trying to use and we can get it to compile with the correct parameters (as per Welch book), but when we try to "load" it we get: dynamic loading is not currently available on this system When we use any type of command for dynamic loading we get this same message. Is there some global that needs to be set for operating systems that are not in your normal tcl.m4 checks?
- foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "heidibr"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to: "dynamic loading error on LynxOS"
- type initialized to: "Bug"
Ticket change [c391772401] (rid 111685) by kennykb on 2005-03-16 00:44:53:
- resolution changed to: "Remind"
Ticket change [08cb83213e] (rid 89621) by kennykb on 2005-03-16 00:44:54:
- icomment:
Logged In: YES user_id=99768 Looking at tcl.m4, it appears that nobody has attempted a LynxOS port. The [case] command that begins around line 890 of tcl.m4 is the place where the options that control dynamic loading get set. What needs to be added is a branch for LynxOS (or whatever 'uname -s' calls it) and code to set the flags: SHLIB_CFLAGS = Any extra compiler flags needed when building code to go in shared libraries (-fPIC, for instance) SHLIB_LD = The command to link a shared library (often ${CC} -shared) SHLIB_SUFFIX = The suffix for a shared library (.so for instance) SHLIB_LD_LIBS = The libraries to include when linking a shared library. DL_OBJS = Usually 'tclLoadDl.o' (use dlopen to load shared libraries). HPUX, AIX, and Windows all do it differently, I hope we don't need to invent one for LynxOS DL_LIBS = The library (libraries) needed in the base executable for it to find 'dlopen'. CC_SEARCH_FLAGS, LD_SEARCH_FLAGS = Flags needed to adjust the runtime search path for shared libraries. Often, CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' and LD_SEARCH_FLAGS='-rpath,${LIB_RUNTIME_DIR}' If you come up with a combination that works, I'll be happy to update the build system. I don't have access to a LynxOS system for testing, so I'll have to take your patch on faith. :) - login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [7bcf104ea1] (rid 96969) by kennykb on 2005-04-14 03:52:07:
- icomment:
Logged In: YES user_id=99768 downgrading the priority of this until original submitter (or someone else) can tell us what the correct combination of flags should be.
- login: "kennykb"
- mimetype: "text/plain"
- priority changed to: "3 Low"
- username: "kennykb"
- icomment:
Ticket change [c18ebd4de1] (rid 111340) by nobody on 2005-04-14 03:57:03:
- icomment:
Logged In: NO These aren't 100% thoroughly tested, but so far they are working for us. In the tc.m4 file, around line 890, add in the following code: Lynx*) SHLIB_CFLAGS="-fPIC" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" CFLAGS_OPTIMIZE=-02 SHLIB_LD="${CC} -shared " DL_OBJS="tclLoadDl.o" DL_LIBS="-mshared -ldl" LD_FLAGS="-Wl,--export-dynamic" CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' ;; - login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [c9559c59c1] (rid 122266) by heidibr on 2005-04-14 03:58:32:
- icomment:
Logged In: YES user_id=1239152 Hi Kennykb, I just added that last comment and forgot to log in first! Heidi
- login: "heidibr"
- mimetype: "text/plain"
- username: "heidibr"
- icomment:
Ticket change [a83cd17149] (rid 98944) by kennykb on 2005-11-05 03:42:47:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=99768 Fixed in 8.5. Jeff, can you backport into 8.4?
- login: "kennykb"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "kennykb"
Ticket change [0fb219ca02] (rid 94839) by dgp on 2005-11-05 04:40:27:
- status changed to: "Closed"
Ticket change [58e44e43dd] (rid 117878) by dgp on 2005-11-05 04:40:28:
- assignee changed to: "dgp"
- closedate changed to: "2005-11-04T21:40:28"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 backported for 8.4.12
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- username: "dgp"