Re: [AOLSERVER] Installing AOLServer 4.5.0 on amd64(Gentoo)

2007-11-09 Thread Alexander
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 
libnsthread.so
x86_64-pc-linux-gnu-gcc -pipe -shared -Wl,-soname,libnsthread.so  -o 
libnsthread.so 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'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o:(.init+0x0): 
first defined here

collect2: ld returned 1 exit status
gmake[1]: *** [libnsthread.so] 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.0 +0200
+++ aolserver4/configure2007-07-26 16:31:22.0 +0200
@@ -2520,11 +2520,7 @@
;;
 *) 
LDLIB="$TCL_SHLIB_LD"

-   case "$LDLIB" in
-   *gcc*)
-   LDLIB="$LDLIB -nostartfiles"
-   ;;
-   esac
+   LDLIB="$LDLIB -nostartfiles"
CCRPATH="\$(CCRFLAG)\$(INSTLIB)"
LDRPATH="\$(LDRFLAG)\$(INSTLIB)"
if test "$TCL_EXEC_PREFIX" != "$prefix"



  


That worked like a charm! Thank you very much :)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Installing AOLServer 4.5.0 on amd64(Gentoo)

2007-11-08 Thread Francesco P. Lovergine
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 
> libnsthread.so
> x86_64-pc-linux-gnu-gcc -pipe -shared -Wl,-soname,libnsthread.so  -o 
> libnsthread.so 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'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o:(.init+0x0): 
> first defined here
> collect2: ld returned 1 exit status
> gmake[1]: *** [libnsthread.so] 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.0 +0200
+++ aolserver4/configure2007-07-26 16:31:22.0 +0200
@@ -2520,11 +2520,7 @@
;;
 *) 
LDLIB="$TCL_SHLIB_LD"
-   case "$LDLIB" in
-   *gcc*)
-   LDLIB="$LDLIB -nostartfiles"
-   ;;
-   esac
+   LDLIB="$LDLIB -nostartfiles"
CCRPATH="\$(CCRFLAG)\$(INSTLIB)"
LDRPATH="\$(LDRFLAG)\$(INSTLIB)"
if test "$TCL_EXEC_PREFIX" != "$prefix"



-- 
Francesco P. Lovergine


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Installing AOLServer 4.5.0 on amd64(Gentoo)

2007-11-06 Thread Tom Jackson
Have you compiled Tcl with threads? You appear to be using a Tcl version 
in /usr/bin.

If this is what came with the system or OS, try downloading and installing Tcl 
8.4, and install it in the same prefix as your aolserver.

Here is my configure for Tcl, then AOLserver:

>From the unix/ subdirectory:

#!/bin/bash

./configure --prefix=/web/nsd45 \
  --enable-64bit \
  --enable-threads \
  --enable-shared


and for AOLserver:

#!/bin/bash

./configure --prefix=/web/nsd45 \
  --with-tcl=/web/nsd45/lib \
  --enable-threads \
  --enable-shared \
  --enable-debug \
  --enable-symbols


then run make/make install:

$ make TCLSH=/web/nsd45/bin/tclsh8.4
$ make TCLSH=/web/nsd45/bin/tclsh8.4 install



On Tuesday 06 November 2007 12:47, Alexander wrote:
> Hi folks,
>
>
> 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
> libnsthread.so
> x86_64-pc-linux-gnu-gcc -pipe -shared -Wl,-soname,libnsthread.so  -o
> libnsthread.so 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'
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o:(.init+0x0)
>: first defined here
> collect2: ld returned 1 exit status
> gmake[1]: *** [libnsthread.so] 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?
>
>
> Thanks,
>
> Alex.
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the
> email message. You can leave the Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.