#2126: Tcl-8.4.17/Tcl-8.5.0
------------------------------------------+---------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
     Type:  enhancement                   |       Status:  new                  
        
 Priority:  normal                        |    Milestone:  7.0                  
        
Component:  Book                          |      Version:  SVN                  
        
 Severity:  normal                        |   Resolution:                       
        
 Keywords:                                |  
------------------------------------------+---------------------------------
Comment (by [EMAIL PROTECTED]):

 Thanks Randy.  I'd forgotten we don't actually install Expect or Tcl in
 chapter 6.  The first problem I encountered is that Expect doesn't build
 against Tcl-8.5.0.  See
 
https://sourceforge.net/tracker/?func=detail&atid=113179&aid=1634110&group_id=13179
 for the upstream report.  The fix is simply:

 {{{
 cp exp_inter.c{,.bak}
 sed 's/tcl.h/tclInt.h/' exp_inter.c.bak > exp_inter.c
 }}}

 This is already fixed upstream, so on the next release of Expect, whenever
 that might be, the workaround can be dropped.

 Now I've got a problem in that when compiling Dbg.c I get the following:

 gcc -c  -I. -I. -I/tools/include   -DEXP_VERSION=\"5.43.0\"
 -DSCRIPTDIR=\"/tools/lib/expect5.43\"
 -DEXECSCRIPTDIR=\"/tools/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST
 -DSTTY_BIN=\"/bin/stty\"  -DDFLT_STTY="\"sane\""  Dbg.c
 In file included from /tools/include/tclPort.h:27,
                  from /tools/include/tclInt.h:3791,
                  from Dbg.c:25:
 /tools/include/tclUnixPort.h:109:33: error: ../compat/unistd.h: No such
 file or directory
 make[1]: *** [Dbg.o] Error 1

 This is caused by HAVE_UNISTD_H not being defined (which causes
 tclUnixPort.h to pull in the compat header rather than the system header).
 I can't trace through the Makefile/configure magic to see why this is a
 problem now - tclUnixPort.h hasn't changed in this regard between 8.4.x
 and 8.5.x.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2126#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to