From: SourceForge.net <no...@so...> - 2005-04-13 20:52:12
|
Bugs item #1163896, was opened at 2005-03-15 12:12 Message generated for change (Comment added) made by kennykb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1163896&group_id=10894 Category: 39. Dynamic Loading Group: current: 8.4.9 Status: Open Resolution: Remind >Priority: 3 Submitted By: Heidi (heidibr) Assigned to: Kevin B KENNY (kennykb) Summary: dynamic loading error on LynxOS Initial Comment: 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? ---------------------------------------------------------------------- >Comment By: Kevin B KENNY (kennykb) Date: 2005-04-13 16:52 Message: 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. ---------------------------------------------------------------------- Comment By: Kevin B KENNY (kennykb) Date: 2005-03-15 12:44 Message: 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. :) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1163896&group_id=10894 |