Forum OpenACS Q&A: compiling pthread.c for AOLServer getting error

hi,
I am  installing OpenACS on my RedHat 9.0
PC. I have upgrated postgreql to v8.0.3  and
tcl/tk to 8.4.11 from devel RPM distributed at
http://bitwalk-hp.hp.infoseek.co.jp

I got AOLserver40.10 per instruction at
https://openacs.org/doc/current/aolserver4.html
and configured by
./configure --prefix=/usr/local/aolserver40r10 --with-tcl=/usr/lib
Then i typed make (i had to hack /usr/lib/tclConfig.sh
to change "tune" to "cpu" to compile further
but I think this is not related to the following problem)
now I get this problem:

-------quote error message--------
...[stuff deleted]
make[1]: Entering directory `/root/downloads/aolserver40r10/aolserver/nsthread'
/bin/rm -f libnsthread.so
gcc -pipe -shared -Wl,-soname,libnsthread.so -L../nsthread -L../nsd -o libnsthread.so error.o master.o memory.o mutex.o cslock.o rwlock.o reentrant.o sema.o thread.o tls.o signal.o compat.o time.o fork.o pthread.o  -L/usr/lib -ltcl8.4 -ldl  -lpthread -lieee -lm  -lz -lgcc_s
pthread.o(.text+0x0): In function `_init':
/root/downloads/aolserver40r10/aolserver/nsthread/pthread.c:70: multiple definition of `_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crti.o(.init+0x0):/usr/src/build/324954-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S:12: first defined here
collect2: ld returned 1 exit status
make[1]: *** [libnsthread.so] Error 1
make[1]: Leaving directory `/root/downloads/aolserver40r10/aolserver/nsthread'
make: *** [all] Error 1
------------cut-------------

Can anyone tell me how should i fix this "multiple def of _init" ?

thanks in advance!

Maohai

Collapse
Posted by Maohai H on
just to follow up myself... I decided to compile tcl/tk from
source and stalled them after I removed the BitWise RPMs.
Now AOLserver is compiled running.
- mh