Problems recompiling tcl/tk for Sicstus 3.6 on a RH 5.2

Problems recompiling tcl/tk for Sicstus 3.6 on a RH 5.2

Post by fiora.. » Sat, 22 May 1999 04:00:00



Hello friends,
I'm trying to reconfigure SICStus release 3 #6 to work on my
linux box with RedHat 5.2 and kernel 2.2.4.
I changed the file ./conf.site according to my needs then
I typed:
export bla bla ...
./configure --cache-file=/dev/null
which gave me the following warning:
checking binary format... a.out
configure: warning: a.out binary format is not verified

configure was trying to build
libraries in such an old format because it didn't find a library:

echo "configure:906: checking binary format" >&5
        if test -f /lib/libc.so.5; then
                        ^^^^^^^^^
            echo "$ac_t""ELF" 1>&6
            : ${LDFLAGS='-rdynamic -ldl'}
            : ${SHLD='gcc'}
            : ${SHLDFLAGS='-shared'}
            : ${INCR_CFLAGS='-fPIC'}
        else
            echo "$ac_t""a.out" 1>&6
            echo "configure: warning: a.out binary format is not
verified" 1>&2
            : ${LDFLAGS='-static'}
        fi

So I changed the line
        if test -f /lib/libc.so.5; then
to
        if test -f /lib/libc.so.6; then
the warning disappeared but I got the same error:
{ERROR: segmentation violation}
{ERROR: segmentation violation}

I thought the problem was in the libc version so I tried

        if test -f /path/to/libc.so.5; then

instead.

make install_bin
make tcltk

all seems ok, but when I load the tcltk library...
| ?- use_module(library(tcltk)).
{compiling /usr/local/lib/sicstus/library/tcltk.pl...}
{ERROR: segmentation violation}
{ERROR: segmentation violation}
and it dies.
Any hints?

Here follows part of the output of configure
---
Compiler and linker:
CC=gcc
CFLAGS=-g -O2
INCR_CFLAGS=-fPIC
LDFLAGS=-ldl -lnsl
LDFLAGS2=
SHLD=/usr/bin/ld
SHLDFLAGS=-shared
SHSFX=so
STSFX=s.o
PLFLAGS=compactcode
M4=/usr/bin/m4 -G
OLDPROLOG=sicstus

Libraries and paths:
SYSTEMLIB=
SOCKETLIB=
TCLLIB=-L/usr/lib -L/usr/X11R6/lib -ltk8.0 -ltcl8.0 -lX11 -lm
TCLINC=-I/usr/include -I/usr/X11R6/include/X11
DBLIB=
SP_BIN=/usr/local/bin
SP_LIB=/usr/local/lib/sicstus
SP_INC=/usr/local/include

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

 
 
 

Problems recompiling tcl/tk for Sicstus 3.6 on a RH 5.2

Post by Juergen Stube » Sat, 22 May 1999 04:00:00



> I'm trying to reconfigure SICStus release 3 #6 to work on my
> linux box with RedHat 5.2 and kernel 2.2.4.
> I changed the file ./conf.site according to my needs then
> I typed:
> export bla bla ...
> ./configure --cache-file=/dev/null
> which gave me the following warning:
> checking binary format... a.out
> configure: warning: a.out binary format is not verified

> configure was trying to build
> libraries in such an old format because it didn't find a library:

> [...]

> and it dies.
> Any hints?

I think the Sicstus configure doesn't detect glibc (libc6) correctly.
Try changing the relevant line in config.h to

#define SP_LINUX_LIBCVERSION 6

I did this and got 3.7.1 with tcltk up and running on a Debian
Linux 2.0 with glibc.  Jasper (the Java interface) is still a
problem, Sicstus crashes when loading library(jasper) under JDK
1.1.7.

Jrgen

--

http://www.mpi-sb.mpg.de/~juergen/

 
 
 

Problems recompiling tcl/tk for Sicstus 3.6 on a RH 5.2

Post by fiora.. » Wed, 26 May 1999 04:00:00




Quote:

> I think the Sicstus configure doesn't detect glibc (libc6) correctly.
> Try changing the relevant line in config.h to

> #define SP_LINUX_LIBCVERSION 6

> I did this and got 3.7.1 with tcltk up and running on a Debian
> Linux 2.0 with glibc.  Jasper (the Java interface) is still a
> problem, Sicstus crashes when loading library(jasper) under JDK
> 1.1.7.

unfortunately the relevant line in config.h does not exist,
probably my 3.6 is too old...
I tried to add it in config.h.in with no results.
I hope one day...

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

 
 
 

1. TK/tcl gurus: wrong version of Tk loaded (3.6): need 4.x?

Hi:

I'm trying to run tkHTML 2.3, and when it loads, it gives an error:

Tcl_AppInit failed: wrong version of Tk loaded (3.6): need 4.x

According to glint (I've installed RH 3.0.3), I've got tcl version
7.4-5 and tk version 4.0-5.  Why does tkHTML seem to think my tk is
version 3.6 and not 4.0?  

I'm not a tk/tcl guru nor do I play one on TV.  So if anyone out there
is, please let me know what I can do.  After it (tkHTML) loads, none
of the menus work, it's basically broken, and I get error messages like:

tkerror failed to handle background error.
    Original error: invalid command name "tk_butEnter"
    Error in tkerror: unknown option "-wraplength"
tkerror failed to handle background error.
    Original error: invalid command name "tk_butLeave"
    Error in tkerror: unknown option "-wraplength"
etc.

Thanks in advance for any info.

Mark

--
****************************************************************

Committee on Social Thought, University of Chicago

****************************************************************

2. Multiple IP addresses on the same interface.

3. XF2.3 and tcl 7.3 & tk 3.6

4. IBM 350 ir port adapter

5. Wish(TCL/Tk 3.6 )

6. /etc/passwd file paser to check validy, can anyonr help?

7. tcl/tk/tclx 7.3,3.6

8. Configuration Options for NS

9. Wish(TCL/Tk 3.6 )

10. NAT (Network Address Translator) on RH 5.2 or Slackware 3.6

11. What dev? RedHat 5.2 or SlackWare 3.6?

12. FTP RH 5.2 -> RH 5.2 = NFT (No File Transfer)

13. Another Perl/Tk RH 5.2 question