Subject: Re: WooHoo: README: Merge plan for nathanw_sa branch
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Tom Ivar Helbekkmo <tih@eunetnorge.no>
List: current-users
Date: 01/22/2003 10:30:38
Tom Ivar Helbekkmo <tih@eunetnorge.no> writes:

> As noted in another thread, the problem goes away if I disable my
> second CPU, so it's some interaction between pthreads and SMP.

So now I'm running xmms and Mozilla, and they're both happy, like me.

But you said to TEST, TEST, TEST, right?  ;-)

However, trying to build TCL 8.4.1 fails, thus:

% mkdir build
% cd build
% ../unix/configure --enable-threads
[...]
% make
[...]
gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int -fPIC  -I../unix/../generic -I../unix  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1          -DTCL_SHLIB_EXT=\".so\" ../unix/../unix/tclUnixThrd.c
../unix/../unix/tclUnixThrd.c: In function `Tcl_CreateThread':
../unix/../unix/tclUnixThrd.c:99: warning: implicit declaration of function `pthread_attr_setscope'
../unix/../unix/tclUnixThrd.c:99: `PTHREAD_SCOPE_SYSTEM' undeclared (first use in this function)
../unix/../unix/tclUnixThrd.c:99: (Each undeclared identifier is reported only once
../unix/../unix/tclUnixThrd.c:99: for each function it appears in.)

I'm building this in order to build AOLserver, so I just removed the
use of pthread_attr_setscope() from TCL (shouldn't be a big deal), and
continued.  Then, however, the AOLserver build failed, and that one is
a bit worse:

gcc -pipe -L../nsthread -L../nsd  -o nsthreadtest nsthreadtest.o libnsthread.so -L/usr/local/aolserver/lib -ltcl84   -lpthread -lm  -Wl,-rpath,/usr/local/aolserver/lib
libnsthread.so: undefined reference to `sigwait'

-tih
-- 
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway
www.eunet.no  T: +47-22092958 M: +47-93013940 F: +47-22092901