tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronnie Brunner <ronnie.brun...@netcetera.com>
Subject Re: Fwd: Compiling and Building error of websh: ../websh-3.6.0b5/src/unix/../generic/tclAppInit.c:173: undefined reference to `Websh_Init'
Date Mon, 06 Jan 2014 14:23:12 GMT
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


Mime
View raw message