amd64-build problems//now problem with TCL

blux.net at lineone.net blux.net at lineone.net
Sun Jan 6 14:21:26 PST 2008


On Sunday 06 January 2008 19:54:00 Ken Moffat wrote:
> Re: amd64-build problems//now problem with TCL
>  Date: Today 19:54:00
>  From: Ken Moffat <ken at linuxfromscratch.org>
>  To: "blux.net at lineone.net" <blux.net at lineone.net>, LFS Support List
> <lfs-support at linuxfromscratch.org> Reply to: LFS Support List
> <lfs-support at linuxfromscratch.org>
>
> On Sun, Jan 06, 2008 at 08:00:52PM +0100, blux.net at lineone.net 
wrote:
> > ####first good news  tcl 8.5 now compiles  when link correctly 
made as
> > in:
> >
> > cd   /tools/lib/lib64  
> > ln -s /tools/lib/ld-2.7.so  ld-linux-x86-64.so.2
> >
> > tcl-8.4.16  STILL DOES NOT COMPILE.
> >
> > ### now the not so good:  expect will not compile and patches 
only  
> > after repeated efforts as below:
> >
> > ########## expect-5.43 file compile  (fails)
> > exp_inter.c: In function 'intMatch':
> > exp_inter.c:294: error: 'TCL_REG_BOSONLY' undeclared (first use in
> > this function)
> > exp_inter.c:294: error: (Each undeclared identifier is reported 
only
> > once
> > exp_inter.c:294: error: for each function it appears in.)
> > exp_inter.c: In function 'Exp_InteractObjCmd':
> > exp_inter.c:866: error: 'TCL_REG_BOSONLY' undeclared (first use in
> > this function)
> > make: *** [exp_inter.o] Error 1
> > lfs:/mnt/lfs/sourcesTSjn08/expect-5.43$
>
>  Does the sed to exper_inter.c that Matt posted in trac earlier this
> afternoon help ?
> http://wiki.linuxfromscratch.org/lfs/ticket/2126


#######  expect  2nd  (most recent TCL-8.5)  sed mentioned in the link 
above applied:
cp exp_inter.c{,.bak}
sed 's/tcl.h/tclInt.h/' exp_inter.c.bak > exp_inter.c

##### make yields
/tools/include/tclUnixPort.h:109:33: error: ../compat/unistd.h: No 
such file or directory

########### edit /tools/include/tclUnixPort.h
#   include "../compat/unistd.h"
to # include "unistd.h"

########  make then yields
gcc -pipe -m64   -Wl,--export-dynamic  -o expect exp_main_exp.o 
libexpect5.43.a -L/mnt/lfs/sourcesTSjn08/tcl8.5.0/unix -ltcl8.5  -ldl  -
lieee -lm -lutil -Wl,-rpath,/tools/lib:/tools/lib
libexpect5.43.a(exp_command.o): In function `Exp_CloseObjCmd':
exp_command.c:(.text+0x38d9): undefined reference to `Tcl_CloseObjCmd'
libexpect5.43.a(exp_command.o): In function `Exp_InterReturnObjCmd':
exp_command.c:(.text+0x484a): undefined reference to 
`Tcl_ReturnObjCmd'
collect2: ld returned 1 exit status
make: *** [expect] Error 1
lfs:/mnt/lfs/sourcesTSjn08/expect-5.43$

I will have alook in svn,    suggestions are still welcomed


==
blux



__________________________________________________
Get up to £150 by recycling your old mobile - visit www.tiscali.co.uk/recycle




More information about the lfs-support mailing list