You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-dev@tcl.apache.org by Rani Ahmed <ra...@gmail.com> on 2014/01/03 15:22:29 UTC
Fwd: Compiling and Building error of websh: ../websh-3.6.0b5/src/unix/../generic/tclAppInit.c:173:
undefined reference to `Websh_Init'
---------- Forwarded message ----------
From: Rani Ahmed <ra...@gmail.com>
Date: Fri, Jan 3, 2014 at 12:25 PM
Subject: Compiling and Building error of websh:
../websh-3.6.0b5/src/unix/../generic/tclAppInit.c:173: undefined reference
to `Websh_Init'
To: websh-user@tcl.apache.org
I am using debian wheezy 7.3 updated with debian backports repository.
system is 64bit.
I use ActiveState Tcl 8.6 (latest on at this time of this writing it's
"ActiveTcl8.6.1.0.297577-linux-x86_64-threaded"
I have Apache 2
I have installed debian package "libapr1-dev" installed . its version is
1.4.6-3+deb7u1 to use in building.websh.
I have installed debian package "apache2-threaded-dev" , version
2.2.22-13, to use with building websh.
this is how I configured it:
./configure --with-tcl=/opt/ActiveTcl-8.6/lib/
--with-tclinclude=/opt/ActiveTcl-8.6/include/ --enable-threads
--with-aprinclude=/usr/include/apr-1.0/
and finally after the command "make" i finally get:
cc tclAppInit.o libwebsh3.6.0b5.so \
-L/opt/ActiveTcl-8.6/lib -ltcl8.6 -L/opt/ActiveTcl-8.6/lib -ltclstub8.6
-ldl -lz -lpthread -lieee -lm -Wl,--export-dynamic \
-o websh3.6.0b5
tclAppInit.o: In function `Tcl_AppInit':
/home/oracle/Downloads/websh-3.6.0b5/src/unix/../generic/tclAppInit.c:173:
undefined reference to `Websh_Init'
collect2: error: ld returned 1 exit status
make: *** [websh3.6.0b5] Error 1
Tell me please how this should patched or fixed. Thanks in advance.
=====
Rani Ahmad.
Re: Fwd: Compiling and Building error of websh:
../websh-3.6.0b5/src/unix/../generic/tclAppInit.c:173: undefined reference
to `Websh_Init'
Posted by Ronnie Brunner <ro...@netcetera.com>.
Hi Rani
Sorry for the delay.
> I use ActiveState Tcl 8.6 (latest on at this time of this writing it's
> "ActiveTcl8.6.1.0.297577-linux-x86_64-threaded"
> I have Apache 2
> I have installed debian package "libapr1-dev" installed . its version is
> 1.4.6-3+deb7u1 to use in building.websh.
> I have installed debian package "apache2-threaded-dev" , version
> 2.2.22-13, to use with building websh.
>
> this is how I configured it:
>
> ./configure --with-tcl=/opt/ActiveTcl-8.6/lib/
> --with-tclinclude=/opt/ActiveTcl-8.6/include/ --enable-threads
> --with-aprinclude=/usr/include/apr-1.0/
>
> and finally after the command "make" i finally get:
>
> cc tclAppInit.o libwebsh3.6.0b5.so \
> -L/opt/ActiveTcl-8.6/lib -ltcl8.6 -L/opt/ActiveTcl-8.6/lib -ltclstub8.6
> -ldl -lz -lpthread -lieee -lm -Wl,--export-dynamic \
> -o websh3.6.0b5
> tclAppInit.o: In function `Tcl_AppInit':
> /home/oracle/Downloads/websh-3.6.0b5/src/unix/../generic/tclAppInit.c:173:
> undefined reference to `Websh_Init'
> collect2: error: ld returned 1 exit status
> make: *** [websh3.6.0b5] Error 1
>
> Tell me please how this should patched or fixed. Thanks in advance.
Your Tcl 8.6 tclConfig.sh (likely) comes with a
TCL_EXTRA_CFLAGS=' -pipe -fvisibility=hidden '
This is inherited to the Websh config and I'd expect your Makefile to
have the following line:
TCL_EXTRA_CFLAGS=' -pipe -fvisibility=hidden '
Remove the visibility setting in your src/unix/Makefile like that:
TCL_EXTRA_CFLAGS=' -pipe '
and your make should now work.
hth
Ronnie
--
Ronnie Brunner | ronnie.brunner@netcetera.com | T +41 44 297 59 79 |
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.com |
---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org