Make fails for Expect 5.43 with Tcl 8.5a5

Oliver Strnad ostrnad at gmx.de
Mon Feb 12 01:36:59 PST 2007


Hello!

I started building my LFS today. Everything went fine, until I tried to build
Expect.

I built and installed Tcl the following way:
1. Downloaded the latest sources (version 8.5a5) from Sourceforge
2. Changed to the unix directorz inside the source
3. ./configure --prefix=/tools && make && make install
4. make install-private-headers
5. ln -sv tclsh8.4 /tools/bin/tclsh

Tcl installed without complaining. So I tried to install Expect:
1. Downloaded the source from expect.nist.gov (version 5.43)
2. Inside the source-directory of Expect I called ./configure --prefix=/tools 
--with-tcl=/tools/lib --with-tclinclude=/tools/include --with-x=no
3. configure runs fine without complaining
4. I type make and there comes the following error:

lfs:/mnt/lfs/sources/expect-5.43$ make
gcc -pipe -c  -I. -I. -I/tools/include   -DEXP_VERSION=\"5.43.0\"
-DSCRIPTDIR=\"/tools/expect5.43\" -DEXECSCRIPTDIR=\"/tools/lib/expect5.43\" 
-DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" 
expect.c
In file included from /tools/include/tclPort.h:27,
from exp_command.h:26,
from expect.c:34:
/tools/include/tclUnixPort.h:666: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'struct'
/tools/include/tclUnixPort.h:667: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'struct'
/tools/include/tclUnixPort.h:668: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'struct'
/tools/include/tclUnixPort.h:669: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'struct'
/tools/include/tclUnixPort.h:670: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'struct'
/tools/include/tclUnixPort.h:671: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'struct'
expect.c: In function 'exp_eval_with_one_arg':
expect.c:346: warning: assignment discards qualifiers from pointer target type 
make: *** [expect.o] Error 1

Is there something wrong with the Tcl-version I am using? Perhaps corrupted 
headers? I already tried to search for this error, but I could only one another 
person having the same problem.

I am using the Live CD as the host system and I am compiling for the  
686-platform.

I hope you guys can help me out.

Thanks in advance,
Oliver




More information about the lfs-support mailing list