Forum OpenACS Q&A: Re: aolserver 4 install errors

Posted by Cathy Sarisky on
Apologies for bumping the old thread, but it seems to pertain to my issues.

I'm trying to install AOLserver 4.0.9/10 (have tried both) with a thread-enabled tcl (8.4.15).

The error message I get is:
pthread.o(.text+0x0): In function `_init':
: multiple definition of `_init'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crti.o(.init+0x0):/usr/src/build/237294-i386/BUILD/glibc-2.3.2-200304020432/build-i386-linux/csu/crti.S:12: first defined here

while compiling nsthread.

I did ./configure --prefix=/usr/local/aolserver40r9 --with-tcl=/usr/local/lib/. I've confirmed that is in /usr/local/lib, and that tclsh shows that threads are enabled.

Any ideas?

Posted by Tom Jackson on
If you have trouble compiling AOLserver you should post to the AOLserver list:

Unfortunately there is no substitute for asking your question in the right forum. If the problem is AOLserver, ask there.

Generally developers don't have problems compiling AOLserver or other required modules, so either you have discovered a unique issue, or you need specific help. The best advice is available at the AOLserver list and anyone using AOLserver should at least subscribe.

Posted by Malte Sussdorff on
Though I would ask myself what the specific reason is of not using 4.5 😊
Posted by Cathy Sarisky on
Tom, sorry, I'll take the question there.

Malte, I was following along with the directions. Is AOLserver 4.5 compatible with OpenACS 5.2? The compatibility matrix in the docs doesn't seem to have been updated recently, so I figured I was playing it safe by using the version specified. (Although it hasn't done me any good, thanks!)

Posted by Cathy Sarisky on
Just to follow up, in case it helps, the problem was tcl version 8.4.15, as described here ( I needed to downgrade to 8.4.12.
Posted by Orzenil Silva Junior on

there is no need to downgrade tcl to old versions. I am using aolserver40r10 with thread-enable tcl-8.4.15.

Just do:

CPPFLAGS="-nostartfiles" ./configure --prefix=/usr/local/aolserver40r10 --with-tcl=/usr/local/lib

to avoid error message

pthread.o(.text+0x0): In function `_init':: multiple definition of `_init'

You'd consider check your OS to prevent other related pthreads error. Before compiling check for GNU_LIBPTHREAD_VERSION at command prompt


If return is "NPTL"+version you also need comment out line


in nsd/unix.c

Posted by Eduardo Palacio on
Solution for this aolServer issue

i´m installing aolserver4.5.0, postgresql-7.4.19.tar.gz & tcl8.4.18-src.tar.gz

The aolserver gives me the same problem (see below) and the solution proposed at the end works fine.

a copy of message text======================================

On Tue, Nov 06, 2007 at 03:47:10PM -0500, Alexander wrote:

I'm trying to install aolserver-4.5.0 on a new machine that runs under
gentoo-amd64, and I am getting this error:

/usr/bin/tclsh ./util/nsmakeall.tcl install nsthread nsd nstclsh
make install: nsthread
gmake[1]: Entering directory `/usr/local/src/aolserver-4.5.0/nsthread'
/usr/bin/tclsh /usr/local/src/aolserver-4.5.0/util/nsremove.tcl
x86_64-pc-linux-gnu-gcc -pipe -shared -Wl,-soname, -o error.o master.o memory.o mutex.o cslock.o rwlock.o
reentrant.o sema.o thread.o tls.o compat.o time.o pthread.o fork.o signal.o
nsthread_libinit.o \
-L/usr/lib64 -ltcl8.4 -ldl -lpthread -lieee -lm -lgcc_s
-Wl,-rpath,:/usr/lib64/usr/local/aolserver/lib -Wl,-rpath,:/usr/lib64/lib
nsthread_libinit.o: In function `_init':
nslibinit.c:(.text+0x0): multiple definition of `_init'
first defined here
collect2: ld returned 1 exit status
gmake[1]: *** [] Error 1
gmake[1]: Leaving directory `/usr/local/src/aolserver-4.5.0/nsthread'
make: *** [install-bins] Error 1

Does anyone has faced similar problem?
Any ideas what could I do about it?

This is a known issue for aolserver 4.5 with a resonably recent Tcl.
You need to patch a bit. I use something like this on Debian:

diff -urNad aolserver4~/configure aolserver4/configure
--- aolserver4~/configure 2007-04-22 19:19:35.000000000 +0200
+++ aolserver4/configure 2007-07-26 16:31:22.000000000 +0200
@@ -2520,11 +2520,7 @@
- case "$LDLIB" in
- *gcc*)
- LDLIB="$LDLIB -nostartfiles"
- ;;
- esac
+ LDLIB="$LDLIB -nostartfiles"
if test "$TCL_EXEC_PREFIX" != "$prefix"

Francesco P. Lovergine
end of message text===============================

bye, bye