This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: Building SID under Linux - HELP - !
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Stefano Gallina <warx_sg at yahoo dot com>
- Cc: sid at sources dot redhat dot com
- Date: Mon, 27 Jan 2003 13:22:45 -0500
- Subject: Re: Building SID under Linux - HELP - !
- References: <20030127175401.82236.qmail@web41108.mail.yahoo.com>
Hi -
> [...]
> Well, is anybody able to build Sid without getting
> error messages ?
Sure, generally.
> My aim is simulate a serial port to test some assembly
> code written for ARM processor.
> I have been advised to use SID with Ecos.
> Is there any way to get this aim of mine without using
> Sid ? Using Ecos ?
SID is by no means the only way of doing this, but once
you get the system built and familiarized with, it's decent.
> [...]
> The error i got is:
> gcc -shared compTcl.lo -L/home/src/build/tcl/unix
> -ltcl8.3 -L/home/src/build/tk/unix -ltk8.3
> -L/usr/X11R6/lib -lSM -lICE -lX11 -ldl -lm -lc
> [...]
> /usr/bin/ld: cannot find -ltk8.3
It looks like tcl/tk was updated to version 8.4 in the
sourceware repository, but a bit of sid configury wasn't
changed along with it. That's not normally a problem since
the sid configury backs down to plain -ltk / -ltcl, and
should find OS-supplied libraries. I wonder why it doesn't
do this in your case.
You could try applying the following patch to sources
within sid/component/tcl, then try to configure/build again.
- FChE
Index: configure
===================================================================
RCS file: /cvs/cvsfiles/devo/sid/component/tcl/configure,v
retrieving revision 1.32
diff -r1.32 configure
2266c2266
< with_tcl_lib="-L../../../tcl/$tcl_hostdir -ltcl8${tcl_libdot}3"
---
> with_tcl_lib="-L../../../tcl/$tcl_hostdir -ltcl8${tcl_libdot}4"
2277c2277
< with_tk_lib="-L../../../tk/$tcl_hostdir -ltk8${tcl_libdot}3"
---
> with_tk_lib="-L../../../tk/$tcl_hostdir -ltk8${tcl_libdot}4"
3632,3634c3632,3634
< echo $ac_n "checking for Tcl_Init in -ltcl8${tcl_libdot}3""... $ac_c" 1>&6
< echo "configure:3634: checking for Tcl_Init in -ltcl8${tcl_libdot}3" >&5
< ac_lib_var=`echo tcl8${tcl_libdot}3'_'Tcl_Init | sed 'y%./+-%__p_%'`
---
> echo $ac_n "checking for Tcl_Init in -ltcl8${tcl_libdot}4""... $ac_c" 1>&6
> echo "configure:3634: checking for Tcl_Init in -ltcl8${tcl_libdot}4" >&5
> ac_lib_var=`echo tcl8${tcl_libdot}4'_'Tcl_Init | sed 'y%./+-%__p_%'`
3639c3639
< LIBS="-ltcl8${tcl_libdot}3 $LIBS"
---
> LIBS="-ltcl8${tcl_libdot}4 $LIBS"
3670c3670
< ac_tr_lib=HAVE_LIB`echo tcl8${tcl_libdot}3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
---
> ac_tr_lib=HAVE_LIB`echo tcl8${tcl_libdot}4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3676c3676
< LIBS="-ltcl8${tcl_libdot}3 $LIBS"
---
> LIBS="-ltcl8${tcl_libdot}4 $LIBS"
3735,3737c3735,3737
< echo $ac_n "checking for Tk_Init in -ltk8${tcl_libdot}3""... $ac_c" 1>&6
< echo "configure:3737: checking for Tk_Init in -ltk8${tcl_libdot}3" >&5
< ac_lib_var=`echo tk8${tcl_libdot}3'_'Tk_Init | sed 'y%./+-%__p_%'`
---
> echo $ac_n "checking for Tk_Init in -ltk8${tcl_libdot}4""... $ac_c" 1>&6
> echo "configure:3737: checking for Tk_Init in -ltk8${tcl_libdot}4" >&5
> ac_lib_var=`echo tk8${tcl_libdot}4'_'Tk_Init | sed 'y%./+-%__p_%'`
3742c3742
< LIBS="-ltk8${tcl_libdot}3 $LIBS"
---
> LIBS="-ltk8${tcl_libdot}4 $LIBS"
3773c3773
< ac_tr_lib=HAVE_LIB`echo tk8${tcl_libdot}3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
---
> ac_tr_lib=HAVE_LIB`echo tk8${tcl_libdot}4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3779c3779
< LIBS="-ltk8${tcl_libdot}3 $LIBS"
---
> LIBS="-ltk8${tcl_libdot}4 $LIBS"
Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/devo/sid/component/tcl/configure.in,v
retrieving revision 1.24
diff -r1.24 configure.in
43c43
< with_tcl_lib="-L../../../tcl/$tcl_hostdir -ltcl8${tcl_libdot}3"
---
> with_tcl_lib="-L../../../tcl/$tcl_hostdir -ltcl8${tcl_libdot}4"
53c53
< with_tk_lib="-L../../../tk/$tcl_hostdir -ltk8${tcl_libdot}3"
---
> with_tk_lib="-L../../../tk/$tcl_hostdir -ltk8${tcl_libdot}4"
103c103
< AC_CHECK_LIB(tcl8${tcl_libdot}3, Tcl_Init,[],[
---
> AC_CHECK_LIB(tcl8${tcl_libdot}4, Tcl_Init,[],[
107c107
< AC_CHECK_LIB(tk8${tcl_libdot}3, Tk_Init,[],[
---
> AC_CHECK_LIB(tk8${tcl_libdot}4, Tk_Init,[],[