--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
According to the README (section 3c) the correct way to build
aolserver 4.5.1 is not calling configure yourself, but in the top
level of the unpacked tarball to run "tclsh nsconfig.tcl -install /
path/to/wherever" which itself runs configure and drives the rest of
the process. First time I tried to build 4.5.1, I ran configure myself
and later was unable to successfully complete the build (I don't
recall the specific error), but running nsconfig.tcl instead did work.
I never bothered looking inside to see what it's setting up
differently, but there's obviously something.
It looks like the specific problem you're having is the build system
can't find or isn't trying to link against libpthread. Try the
documented build process and see if that helps with setting up a
working build environment.
cheers
Russell
Did you compile Tcl with --enable-threads, or did you just edit
tclConfig.sh and set TCL_THREADS=1?
It appears that you need -lpthreads but it's not being included in your
LIBS and linker step. There's something strange going on ... do you
have libpthreads installed?
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
I cant recollect editing TCL_THREADS=1
How do i find if 'libpthreads' is installed?
Nitin
>>>
>>> I have a fresh installation of FC10, with gcc 4.3.2, kerrnel 2.6.27,
>>> on a P4 1.8GHz, 256 DDR RAM, with Python 2.6.2 (--enable-shared,
>>> --with-threads, /opt/python262), Tcl / Tk 8.5 installed as part of the
>>> distro (/usr/lib), tclConfig.sh has TCL_THREADS=1
>
> Did you compile Tcl with --enable-threads, or did you just edit
> tclConfig.sh and set TCL_THREADS=1?
>
> It appears that you need -lpthreads but it's not being included in your
> LIBS and linker step. There's something strange going on ... do you
> have libpthreads installed?
>
--
You said you're on Fedora FC10, right? I'm guessing something like this:
$ rpm -qa | grep pthreads
might work.
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
No pthreads
[root@mi aolserver-4.5.1]# rpm -qa | grep pthreads
[root@mi aolserver-4.5.1]#
Reg
Nitin
# yum install pthreads
[root@mi aolserver-4.5.1]# yum install pthreads
Loaded plugins: refresh-packagekit
fedora
| 2.8 kB 00:00
updates
| 3.4 kB 00:00
updates/primary_db
| 4.6 MB 01:26
Setting up Install Process
Parsing package install arguments
No package pthreads available.
Nothing to do
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
Reg
Nitin
On Fri, Oct 16, 2009 at 10:39 PM, Dossy Shiobara <do...@panoptic.com> wrote:
> Sorry, it appears that pthreads should be part of glibc and glibc-devel.
> Check for those.
>
>
How do i integrate that.
Reg
Nitin
and it installed pth-devel
now what ?
Reg
Nitin
$ yum install pth
??? Not really sure - I'm not a big fan of yum/RPM.
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
I imagine you should "make clean" and then re-configure and re-make
AOLserver.
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
"tclsh nsconfig.tcl -install /path/to/wherever"
> which itself runs configure and drives the rest of the process. First time I
> tried to build 4.5.1, I ran configure myself and later was unable to
> successfully complete the build (I don't recall the specific error), but
> running nsconfig.tcl instead did work. I never bothered looking inside to
> see what it's setting up differently, but there's obviously something.
The main problem is you have to use the correct tclsh for AOLserver.
Build tcl first, then make sure that tclsh is found first. Or append
TCLSH=... to each command you execute.
> It looks like the specific problem you're having is the build system can't
> find or isn't trying to link against libpthread. Try the documented build
> process and see if that helps with setting up a working build environment.
TCLSH must be set, otherwise crap in crap out.
tom jackson
pthread.c has
#include "thread.h" ;;; is there in nsthread/
#include <pthread.h> ;;; is not there in nsthread/, if its calling
from OS.... then i
;;; stand corrected.
>
> "tclsh nsconfig.tcl -install /path/to/wherever"
>
Ran this command ...... finishes without any error and creating
include/ns.mak
[aolserver-4.5.1]# tclsh nsconfig.tcl -install /opt/aolserver451
I can build Tcl / Tk ... but then i have installed python 2.6.2 from
source... with preinstlled tcl8.5 / tk8.5 .... which is a part of
FFTW3, LAPACK-LITE, ATLAS, NumPy & SciPy....
If i install ... or are left with no other option.... then i reinstall
all the above .... which incidently took me approx 2months...and lot
of sleepless nights ......will take less time now as i have documented
all the steps .... still ....
How do i know which tclsh is correct?
so that leaves
trying out TCLSH= . How do i set TCLSH? ....and should i give commands like
# TCLSH=./configure --prefix=/opt/aolserver451 --with-tcl=/usr/lib
--enable-threads | tee\ aol451_config.log
and then
# TCLSH=make | tee aol451_make.log
#TCLSH=make install | tee aol451_install.log
Reg
Nitin
What? Any vaguely normal Linux system is certainly going to have
POSIX threads support, so looking at that stuff is a waste of time.
What the original poster needs is:
1. A Tcl correctly configured and built using --enable-threads. He
absolutely definitely needs this.
2. Optionally, the Tcl Thread Extension, for the enhanced
AOLserver-compatible tsv support, etc. This stuff:
http://tcl.cvs.sourceforge.net/viewvc/tcl/thread/doc/html/
http://tcl.cvs.sourceforge.net/viewvc/*checkout*/tcl/thread/doc/html/tsv.html?revision=1.16
On Ubuntu the Thread Extension is the "tclthread" package.
Your distribution might have #1 available as a pre-built binary
package, or it might not. If not, you need to compile Tcl yourself,
either from source in the normal cross-platform Tcl manner, or by
rebuilding your distribution's source package with different options.
Recent versions of Ubuntu build Tcl with thread support, but
historically, most Linux and Unix systems built Tcl single-threaded.
--
Andrew Piskorski <a...@piskorski.com>
http://www.piskorski.com/
Or download ActiveTcl 8.5, which is built with --enable-threads across
all platforms and comes with the Thread extension:
http://www.activestate.com/tcl
Jeff
> How do i know which tclsh is correct?
One thing that would help to know is to check whether your tclsh is in
fact built with thread support or not. I'm not actually sure what the
best way is to do that; perhaps Tcl has some command to tell you that
directly, but if so I don't know it. However, this will probably
answer that question:
$ ldd /usr/bin/tclsh8.4
linux-gate.so.1 => (0xb7f93000)
libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0xb7ec7000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ec3000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ea9000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e83000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d20000)
/lib/ld-linux.so.2 (0xb7f94000)
Note the "libpthread.so". That means that this particular tclsh
binary is liked against the system pthread library, which strongly
implies that this tclsh was built multi-threaded.
Remember that you may have multiple Tcl binaries and libraries
installed on your box, you need to make sure you are building
AOLserver against the correct one. In older (4.0.x and earlier)
versions of AOLserver, you'd do that with a configure option of
"--with-tcl=/usr/lib/tcl8.4" or the like. The newer 4.5.x AOLserver
build system might require something slightly different, but it should
be in the install instructions.
--
Andrew Piskorski <a...@piskorski.com>
http://www.piskorski.com/
Fedora's TCL rpm is not thread enabled. It used to be but they
switched it back a few releases ago.
./configure --enable-threads --enable-shared --prefix=/opt/tcl
On the aolserver side,
./configure --with-tcl=/opt/tcl --prefix=/opt/aolserver
Daniel
--
| ---------------------------------------------------------------
| Daniel P. Stasinski | http://www.saidsimple.com
| dan...@avenues.org | http://www.disabilities-r-us.com
| XMMP: mooo...@avenues.org | http://www.avenues.org
| Google Talk: mooooooo | http://www.scriptkitties.com
the TCLSH environment var needs to be the full path plus executable.
Assume you install Tcl with --prefix=/web/tnt
Then I install AOLserver in, say /web/tnt, here is what I use:
$ make TCLSH=/web/tnt/bin/tclsh8.4
$ make TCLSH=/web/tnt/bin/tclsh8.4 install
...
or
$ ./configure TCHSH=/web/bin/tclsh8.4
or
$ /web/bin/tclsh8.4 nsconfig.tcl
But I usually create a new configure file called my-configure:
#!/bin/bash
export TCLSH=/web/tnt/bin/tclsh8.4
./configure --prefix=/web/tnt \
--with-tcl=/web/tnt/lib \
--enable-threads \
--enable-shared \
--enable-debug
The problem with nsconfig.tcl is it assumes you are installing in the
Tcl prefix. This is a good idea, it is best to keep your AOLserver and
Tcl installs combined, so you can maintain the Tcl setup for that
specific AOLserver.
Once you do nsconfig.tcl, you must use the TCLSH on each command line,
or export the var, as I did in the my-configure script. Also, when
you do a "make clean", you also need the TCLSH var set.
tom jackson
I have a fresh installation of FC10, with gcc 4.3.2, kerrnel 2.6.27,
on a P4 1.8GHz, 256 DDR RAM, with Python 2.6.2 (--enable-shared,
--with-threads, /opt/python262), Tcl / Tk 8.5 installed as part of the
distro (/usr/lib), tclConfig.sh has TCL_THREADS=1
This is my test installations and for R&D. Looking to develop app. /
solution with PyWX+PostgreSQL on AoLserver with OpenSSL.
following steps were taken for installation:
# tar zxvf aolserver-4.5.1-src.tar.gz
# cd aolserver-4.5.1
# ./configure --prefix=/opt/aolserver --with-tcl=/usr/lib\
--enable-threads | tee aol451_config.log
===========XXXX=============
script files util/nsmakeall.tcl, util/nsinstall.tcl,
util/nsremove.tcl, first, are not given appropriate permissions for
execution (x) and, second, they are neither handed over to tclsh by
make nor come with a shebang.
1> "chmod u+x" on all of the scripts mentioned above.
2> add shebangs (e.g., #!/usr/bin/tclsh) on the top of the scripts.
=============XXXXXXX==============
# make > aol451_make.log
TIA
Nitin