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

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