Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-03-25
01:31 • Closed ticket [2688159fff]: Thread module fails to build against 8.6b1 plus ... artifact: 8de2ee67d7 user: taylor_venable
2009-03-19
00:21 • Ticket [2688159fff]: 4 changes artifact: c023d9a7d4 user: dgp
2009-03-16
16:50 • Ticket [2688159fff]: 4 changes artifact: b2378d8cb8 user: dkf
02:58 • New ticket [2688159fff]. artifact: 24c6774d77 user: taylor_venable

Thread module fails to build against 8.6b1

Closed / Invalid2688159fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-03-16 02:58:07
The thread module version 2.6.5 fails to build against Tcl 8.6b1.  I have seen this on OpenBSD 4.5 i386 w/ --enable-threads configure option, and also on Ubuntu 8.10 x86_64 w/ --enable-threads --enable-64bit configure options.  The same error message in both cases is:

gcc -pipe -DPACKAGE_NAME=\"thread\" -DPACKAGE_TARNAME=\"thread\" -DPACKAGE_VERSION=\"2.6.5\" -DPACKAGE_STRING=\"thread\ 2.6.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DTCL_WIDE_INT_TYPE=long\ long -DUSE_TCL_STUBS=1   -I"/usr/local/include"    -O2 -Wall -Wno-implicit-int -fPIC -c `echo ./generic/threadSvCmd.c` -o threadSvCmd.o
generic/threadSvCmd.c: In function `SvLockObjCmd':
generic/threadSvCmd.c:2055: error: structure has no member named `errorLine'
generic/threadSvCmd.c: In function `Sv_Init':
generic/threadSvCmd.c:2156: warning: assignment discards qualifiers from pointer target type
generic/threadSvCmd.c:2157: warning: assignment discards qualifiers from pointer target type
generic/threadSvCmd.c:2158: warning: assignment discards qualifiers from pointer target type
generic/threadSvCmd.c:2159: warning: assignment discards qualifiers from pointer target type
generic/threadSvCmd.c:2160: warning: assignment discards qualifiers from pointer target type
generic/threadSvCmd.c: At top level:
generic/threadSvCmd.c:2236: warning: `SvFinalize' defined but not used
gmake: *** [threadSvCmd.o] Error 1

On the OpenBSD machine, this is the information in tcl_platform:

tcl_platform(byteOrder)     = littleEndian
tcl_platform(machine)       = i386
tcl_platform(os)            = OpenBSD
tcl_platform(osVersion)     = 4.5
tcl_platform(pathSeparator) = :
tcl_platform(platform)      = unix
tcl_platform(pointerSize)   = 4
tcl_platform(threaded)      = 1
tcl_platform(user)          = taylor
tcl_platform(wordSize)      = 4

(The Linux platform information is not specified because I don't have access to it at the moment.)  I can provide additional information or try other things upon request.
dkfplain2009-03-16 16:50:46
As an interim measure, define USE_INTERP_ERRORLINE when compiling.
dgpplain2009-03-19 00:21:46
Looks like this was fixed by
a commit on 2008-12-03 ?
taylor_venableplain2009-03-25 01:31:48
Sorry for the late reply; I just tried the version from CVS and it works as expected.  Thanks!  I'm going to close this ticket since it doesn't really apply to the development version of the code.
Log in (anonymous is fine) to add a comment.