View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] problem compiling xotcl-0.9.4 on Linux

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Mon, 8 Jul 2002 14:04:07 +0200

On Saturday 06 July 2002 10:22, Catherine Letondal wrote:
> Hi,
>
> I get an error when compiling on Linux (debian potato):
>
> make[1]: Entering directory
> `/usr/local/packages/xotcl-full-0.9.4/xotcl-0.9.4/unix' cc -DUSE_TCL_STUBS
> -DVERSION=\"0.9\" -DXOTCL_LIBRARY=\"/usr/local/lib/xotcl0.9/library\"
> -I/usr/local/include/tcl8.2/generic -I/usr/local/include/tcl8.2/unix
> -I"./../generic" -I"./../unix" -I"/usr/local/include" -g -O2
> -D__NO_STRING_INLINES -D__NO_MATH_INLINES -fPIC -g
> -DXOLIBPKG=\"/usr/local/lib/xotcl0.9\" -DXOTCLVERSION=\"0.9\"
> -DXOTCLPATCHLEVEL=\".4\" -c `echo ../generic/xotcl.c` -o so/xotcl.o
> ../generic/xotcl.c: In function `TclCommands':
> ../generic/xotcl.c:9271: syntax error before `initMutex'
> ../generic/xotcl.c:9275: `initMutex' undeclared (first use in this
> function) ../generic/xotcl.c:9275: (Each undeclared identifier is reported
> only once ../generic/xotcl.c:9275: for each function it appears in.)
> ../generic/xotcl.c:9278: `rc' undeclared (first use in this function)
> make[1]: *** [so/xotcl.o] Error 1
> make[1]: Leaving directory
> `/usr/local/packages/xotcl-full-0.9.4/xotcl-0.9.4/unix' make: *** [libs]
> Error 1
>
> Thanks in advance for any help,


 Dear Catherine,

 please change in xotclnt.h
 the section defining XOTclMutex
 to the following.
 
#if !defined(PRE83) && defined(TCL_THREADS)
# define XOTclMutex Tcl_Mutex
# define XOTclMutexLock(a) Tcl_MutexLock(a)
# define XOTclMutexUnlock(a) Tcl_MutexUnlock(a)
#else
# define XOTclMutex int
# define XOTclMutexLock(a) (*(a))++
# define XOTclMutexUnlock(a) (*(a))--
#endif

 this should help.
-gustaf
PS: how comes that debian still uses Tcl 8.2?