SpecTcl / tcl/tk on Solaris 2.4 
Author Message
 SpecTcl / tcl/tk on Solaris 2.4

Has anyone gotten spectcl0.1 to run under solaris 2.4?
 I have gotten tcl7.5b1 and tk4.1b1 to configure/compile/install with
no problems. When I try the same on the modified BLT sources, it
complains about not finding a file called 'configInfo'. I can't find it
anywhere. Can anyone help?


Mon, 27 Jul 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4


Quote:
>Has anyone gotten spectcl0.1 to run under solaris 2.4?
> I have gotten tcl7.5b1 and tk4.1b1 to configure/compile/install with
>no problems. When I try the same on the modified BLT sources, it
>complains about not finding a file called 'configInfo'. I can't find it

configInfo is at $TCL_LIB_DIR/configInfo, which tcl is >= v7.5.  That
particular configure script (for the modified BLT) is a little perverse, but
I suspect (read: hope) that now that 4.1b1 is out with the 'grid' officially
part of Tk, we'll see a new beta SpecTcl that doesn't require such an
awkward installation.  Although it probably won't be of much help, the
blt_table in BLT-1.9.0 is compatible with SpecTcl, and the configure script
is a little more traditional.
--
     Jeffrey Hobbs                           Office: 541/346-3998

                URL: http://www.cs.uoregon.edu/~jhobbs/


Mon, 27 Jul 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4


Quote:
 (Jeffrey Hobbs) writes:


> >Has anyone gotten spectcl0.1 to run under solaris 2.4?
> > I have gotten tcl7.5b1 and tk4.1b1 to configure/compile/install with
> >no problems. When I try the same on the modified BLT sources, it
> >complains about not finding a file called 'configInfo'. I can't find it

        I tried similar installation under Solaris 2.5... and I got the same
problem.

Quote:
> configInfo is at $TCL_LIB_DIR/configInfo, which tcl is >= v7.5.  That

        I am afraid this is no longer true. A glance at the change files in
the Tcl7.5b1 distribution (the one I got) shows :

----------------- Released 7.5a1, 9/15/95 -----------------------
[SNIP]
9/29/95 (new feature) Changed to install "configInfo" file in same
directory as library scripts.  It didn't used to get installed. (JO)
[SNIP]
----------------- Released 7.5a2, 10/6/95 -----------------------
[SNIP]
11/24/95 (feature change) Replaced "configInfo" file with tclConfig.sh,
which is more complete and uses slightly different names.  Also
arranged for tclConfig.sh to be installed in the platform-specific
library directory instead of Tcl's script library directory. (JO)
*** POTENTIAL INCOMPATIBILITY with Tcl 7.5a2, but not with Tcl 7.4 ***

----------------- Released patch 7.4p3, 11/28/95 -----------------------
<<<<<<<<

        So you do not have $TCL_LIB_DIR/configInfo ... but tclConfig.sh (in
$TCL_LIB_DIR parent directory).

        As configure does ". $TCLCONFIGINFO/configInfo". I tried to fool
configure by creating a symbolic link configInfo->tclConfig.sh.
        Configure does not complain and generates a Makefile... that you
have anyway to edit a little bit.

        I actually just managed to run SpecTcl 0.1, so I guess it might help
you to have a look at my Solaris 2.5 Makefile, assuming that on my system :
        /usr/local/lib containt libtk and libtcl
        Both Tcl and Tk distributions are under /home/people/gilles/Tcl
        I compile with gcc.

# Generated automatically from Makefile.in by configure.
# This Makefile is used to create several test cases for Tcl's load
# command.  It also illustrates how to take advantage of configuration
# exported by Tcl to set up Makefiles for shared libraries.

SHLIB_CFLAGS =          -L/usr/local/lib/ -ltk -ltcl
SHLIB_LD =              gcc
SHLIB_SUFFIX =          .so
CC = gcc
SRC_DIR =               /home/people/gilles/Tcl/
VERSION =               b1
START=.

OBJS = bltTable.o bltList.o bltUtil.o
SRCS = bltTable.c bltList.c bltUtil.c
HEADERS= blt.h bltConfig.h.in bltList.h
OTHER = README Makefile Makefile.in table.man man.macros configure configure.in
AC_FLAGS =      -DHAVE_CONFIG_H

CFLAGS = -g \
        -I${SRC_DIR}/tcl7.5${VERSION}/generic \
        -I${SRC_DIR}/tcl7.5${VERSION}/unix \
        -I${SRC_DIR}/tcl7.5${VERSION} \
        -I${SRC_DIR}/tk4.1${VERSION}/generic \
        -I${SRC_DIR}/tk4.1${VERSION}/unix \
        -I/usr/openwin/include \
         ${SHLIB_CFLAGS} $(AC_FLAGS)

all: Blt${SHLIB_SUFFIX}

Blt${SHLIB_SUFFIX}: $(OBJS)
        ${SHLIB_LD} $(OBJS) $(SHLIB_CFLAGS) -o Blt${SHLIB_SUFFIX}

list:

        echo  "$(START)/$$i"; \
        done

clean:
        rm -f *.o *${SHLIB_SUFFIX} config.cache config.log config.status

--
--
  +------------------>    Gilles GOULLET    <-------------------------+
  | Combitech MC2 - 4 ch Malacher - ZIRST 4401   F-38944 MEYLAN Cedex |
  |                       Tel: +33 76 90 22 00   Fax: +33 76 41 14 61 |
  +-------------------------------------------------------------------+



Mon, 03 Aug 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4
Hi:

 After finished compiling blt_table and got "Blt.so", I ran
 "spectcl" and i got a window with an error message:

   "SpecTcl requires the 'blt_table' geometry manager"

 Do you have any idea how to make 'spectcl' sees my "Blt.so"
 under 'blt_table' directory?

 Another thing is that I also installed 'libBLT.a' under /usr/local/lib.
 I compiled and installed the complete package of BLT 1.9.  
 Will "spectcl" be able to use it?

 Many thanks in advance.

-anek



Thu, 06 Aug 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4

Quote:
> Hi:

>  After finished compiling blt_table and got "Blt.so", I ran
>  "spectcl" and i got a window with an error message:

>    "SpecTcl requires the 'blt_table' geometry manager"

You probably just need to add the proper 'load' line into
your tclIndex file.. like this:
blt_table       "load $tklibary/Blt.so Blt"

Quote:
>  Do you have any idea how to make 'spectcl' sees my "Blt.so"
>  under 'blt_table' directory?

>  Another thing is that I also installed 'libBLT.a' under /usr/local/lib.
>  I compiled and installed the complete package of BLT 1.9.  
>  Will "spectcl" be able to use it?

>  Many thanks in advance.

You have a couple of options.
1) install the BLT included with spectcl as a separate and distinctly
named libary in the $tk_libary directory (what we do).
2) Try to get your existing BLT installation to work with Spectcl.

I think #2 is a waste of time because: spectcl is rapidly going to
lose blt_table in place of the built-in grid functionality of
tcl7.5b1/tk4.1b1. It's based on the Blt table widget. I've used it.
I LIKE it. :)

Anyway, go for the quickest fix you can, because the blt_table
thing is going to drop out entirely, probably in the next version
of SpecTcl. At least, that's my prediction.
____________________________________________________________________________
Doug Hughes                                     Engineering Network Services
System/Net Admin                                Auburn University

                Pro is to Con as progress is to congress



Thu, 06 Aug 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4


Quote:

>  Do you have any idea how to make 'spectcl' sees my "Blt.so"
>  under 'blt_table' directory?

        As you work under Solaris 2.4, I would use the environment variable
LD_LIBRARY_PATH, that points a path of directories in which the dynamic
loader has to search the shared objects.

Quote:
>  Another thing is that I also installed 'libBLT.a' under /usr/local/lib.
>  I compiled and installed the complete package of BLT 1.9.  
>  Will "spectcl" be able to use it?

        libBLT.a is a "static" library to be included in the final binary
during linking step. If you specify "-L/usr/local/lib" to your compiler,
then there is no reason why it does not "user" /usr/local/lib/libBLT.a
(except if you have other libBLT.a in other directories searched during
linking).

        Actually, these are not real TCL or TK questions...

--
--
  +------------------>    Gilles GOULLET    <-------------------------+
  | Combitech MC2 - 4 ch Malacher - ZIRST 4401   F-38944 MEYLAN Cedex |
  |                       Tel: +33 76 90 22 00   Fax: +33 76 41 14 61 |
  +-------------------------------------------------------------------+



Fri, 07 Aug 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4

Quote:

> After finished compiling blt_table and got "Blt.so", I ran
> "spectcl" and i got a window with an error message:
        ...
> Another thing is that I also installed 'libBLT.a' under /usr/local/lib.
> I compiled and installed the complete package of BLT 1.9.  

SpecTcl will work with BLT-1.9, but you have to either run SpecTcl with
the blt_wish, or make sure that you make it as a shared library (with
'make sharedlib') and have it dynamically load as you would Blt.so above.

You are probably getting the error message because the SpecTcl script is not
finding the loadable library in the correct directory.  If you edit the
script, it's pretty obvious (near the top of the script) where it tries to
find Blt.so (or an equivalent).
--
     Jeffrey Hobbs                           Office: 541/346-3998

                URL: http://www.cs.uoregon.edu/~jhobbs/



Fri, 07 Aug 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4

Under Solaris 2.x, libraries must have the name libBlt.so for instance or
at least libBlt.so.1 .  So you must a) rename the .so, and b) make sure that
the .so is in a directory which the binary knows.  To do that, make sure that
you have a -R{directory} flag anywhere you have a -L{directory} flag.
--

:s <URL:http://www.teraform.com/%7Elvirden/> <*>
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.



Sat, 08 Aug 1998 03:00:00 GMT  
 SpecTcl / tcl/tk on Solaris 2.4


:       Actually, these are not real TCL or TK questions...

However, they are questions that are appropriate for this group, since
the folk here using SpecTcl are the ones most likely to have already solved
the problem before.

--

:s <URL:http://www.teraform.com/%7Elvirden/> <*>
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.



Sun, 09 Aug 1998 03:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. compiling tcl/tk on Solaris 2.4 x86

2. Compiling Tcl/Tk 8.0 on Sun Solaris 2.4

3. Black and White of Tcl/Tk in Solaris 2.4

4. tcl-7.4p1 and tk-4.0p1 patches for Solaris 2.3 and 2.4

5. tcl/tk on Solaris 2.4

6. Anyone compile Tcl/Tk on Solaris 2.4 for the PC

7. Tk 8.0b2 test results for Solaris 2.4/SPARC/Sun compiler

8. Tk on solaris 2.4 (Heeeelp !)

9. Tk configure fails on Solaris 2.4

10. Tk 4.1 + exmh 1.6.7 core dump on Solaris 2.4 (sun4m)

11. Problems w/dynamic loading of Tk under Solaris 2.4

12. Tk 4.1 Solaris 2.4 linking problem

 

 
Powered by phpBB® Forum Software