Problem using Tcl library for my application
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Problem using Tcl library for my application

From: <n_jyth@yahoo.co.in>
Date: Thu Dec 22 2005 - 08:39:17 CET

Hi

I need to build a shared library for the Tcl/Tk version 8.0p2 on AIX
5.1
platform. I am facing the the following errors while using the compiler
'gcc' and the linker as

SHLIB_LD = /tcldist/tcl8.0/unix/ldAix /bin/ld -G -bhalt:4 -bM:SRE
-bE:lib.exp -H512 -T512 -bnoentry -bexpall

It is giving core dump when I am trying to run some other application
with
it.

Using 'gdb' on the core dump gives the following:

"Core was generated by `wish8.3'.
Program terminated with signal 4, Illegal instruction.
#0 0x0 in ?? () from (unknown load module)

#0 0x0 in ?? () from (unknown load module)
#1 0xd4fd4dec in process_variable ()
#2 0xd4fd59d8 in process_files ()
#3 0xd4fd4aa0 in process_endinclude ()
#4 0xd4fd50dc in process_text ()
#5 0xd4fd5568 in process_files ()
#6 0xd4fd5ed8 in ProcessJobCmd ()
#7 0xd36a4ff4 in TclInvokeStringCommand ()
#8 0xd36dffe8 in EvalObjv ()
#9 0xd36e19f0 in Tcl_EvalObjv ()
#10 0xd36a55c8 in Tcl_EvalObjEx ()
#11 0xd36aeb30 in Tcl_UplevelObjCmd ()
#12 0xd369c5e4 in TclExecuteByteCode ()
#13 0xd36a5920 in Tcl_EvalObjEx ()
#14 0xd36af560 in TclObjInterpProc ()
#15 0xd369c5e4 in TclExecuteByteCode ()
#16 0xd36a5920 in Tcl_EvalObjEx ()
#17 0xd36af560 in TclObjInterpProc ()
#18 0xd36dffe8 in EvalObjv ()
#19 0xd36e1c64 in Tcl_EvalEx ()
#20 0xd36e2110 in Tcl_Eval ()
#21 0xd36a6010 in Tcl_GlobalEval ()
#22 0xd374c290 in Tk_BindEvent ()
#23 0xd373f288 in TkBindEventProc ()
#24 0xd3741a20 in Tk_HandleEvent ()
#25 0xd3740a0c in WindowEventProc ()
#26 0xd36d3e5c in Tcl_ServiceEvent ()
#27 0xd36d41c8 in Tcl_DoOneEvent ()
#28 0xd3741ee8 in Tk_MainLoop ()
#29 0xd37f6144 in Tk_MainEx ()
#30 0x10000358 in main (argc=0, argv=0x0) at ./tkAppInit.c:51
#31 0x100001b4 in __start ()"

Part of the Loader Symbol Table Information for the library is as
follows:

The [135] 0x00000000 undef IMP DS EXTref libbsd.a(shr.o)
fcntl
[136] 0x00000000 undef IMP DS EXTref libbsd.a(shr.o)
signal
[137] 0x00000000 undef IMP DS EXTref libbsd.a(shr.o)
vfork
[138] 0x00000000 .data EXP RW Ldef [noIMid]
panicProc
[139] 0x00000008 .data EXP RW Ldef [noIMid]
tclNsNameType
[140] 0x00000020 .data EXP RW Ldef [noIMid]
tclFreeObjList
[141] 0x00000024 .data EXP RW Ldef [noIMid]
tclEmptyStringRep
[142] 0x00000028 .data EXP RW Ldef [noIMid]
tclBooleanType
[143] 0x0000003c .data EXP RW Ldef [noIMid]
tclDoubleType
[144] 0x00000050 .data EXP RW Ldef [noIMid]
tclIntType
[145] 0x00000068 .data EXP RW Ldef [noIMid]
tclStringType
[146] 0x00000080 .data EXP RW Ldef [noIMid]
tclListType
[147] 0x00000098 .data EXP RW Ldef [noIMid]
tclTraceCompile
[148] 0x0000009c .data EXP RW Ldef [noIMid]
instructionTable
[149] 0x00000664 .data EXP RW Ldef [noIMid]
tclTypeTable
[150] 0x000007e4 .data EXP RW Ldef [noIMid]
tclByteCodeType
[151] 0x00000848 .data EXP RW Ldef [noIMid]
tclIndexType
[152] 0x00000860 .data EXP RW Ldef [noIMid]
tclTraceExec
[153] 0x00000864 .data EXP RW Ldef [noIMid]
tcl_MathInProgress
[154] 0x00000868 .data EXP RW Ldef [noIMid]
tclMatherrPtr
[155] 0x0000086c .data EXP RW Ldef [noIMid]
builtinFuncTable
[156] 0x00000c14 .data EXP RW Ldef [noIMid]
tclCmdNameType
[157] 0x00000d68 .data EXP RW SECdef [noIMid]
guesses
[158] 0x00001138 .data EXP RW SECdef [noIMid]
tantab
[159] 0x00007fe8 .data EXP RW Ldef [noIMid]
tclPlatform
[160] 0x00007ff0 .data EXP RW Ldef [noIMid]
tclExecutableName

I know it is not supposed to give 'noIMid'. But nothing seems to be
working here.

Please let me know if anyone knows how I can resolve this error.

I need to use only 'gcc' or 'xlc' compiler, so please give the
solution with this compiler alone, as this is reqd for my application
to
run.

Regards
Jyothi
Received on Fri Dec 23 19:02:54 2005