LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1137|回复: 1

請教 LFS 6.3 於 5.8 編譯 TCL-8.4.15 的問題

[复制链接]
发表于 2007-12-12 18:23:06 | 显示全部楼层 |阅读模式
不才初探 LFS 6.3,採用的架構如下:

  • AMD S2800+ 1.6G
  • 768RAM
  • lfslivecd-x86-6.3-r2145
  • 實機運作
開機時傳入以下參數:
linux vga=721 acpi=off

一步一步照著 6.3 手冊上的過程做
(中途有參考 csfrank 大的 6.1.1 中文手冊,了解關於 --enable-shared 的意義 感謝)

在 Chapter 5.8 之前,除了 5.6.1 的 Glibc make check 沒有進行之外
所有步驟皆無任何錯誤,並且所有注意應該也沒有遺漏
(原本是想要等到 Chapter 6 再進行 make check)

但在編譯 TCL 時,產生的錯誤如下:
  1. lfs:/mnt/lfs/sources/tcl8.4.15/unix$ ./configure --prefix=/tools
  2. lfs:/mnt/lfs/sources/tcl8.4.15/unix$ make
  3. gcc -c -O2  -pipe  -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC
  4. -I/mnt/lfs/sources/tcl8.4.15/unix/../generic -I/mnt/lfs/sources/tcl8.4.15/unix -DHAVE_LIMITS_H=1
  5. -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1
  6. -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1
  7. -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
  8. -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_SYS_TIME_H=1
  9. -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1
  10. -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -Dstrtod=fixstrtod
  11. -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1        
  12. -DTCL_SHLIB_EXT=".so"  /mnt/lfs/sources/tcl8.4.15/unix/../compat/memcmp.c
  13. /mnt/lfs/sources/tcl8.4.15/unix/../compat/memcmp.c: In function 'memcmp':
  14. /mnt/lfs/sources/tcl8.4.15/unix/../compat/memcmp.c:55: warning: dereferencing 'void *' pointer
  15. /mnt/lfs/sources/tcl8.4.15/unix/../compat/memcmp.c:55: error: void value not ignored as it ought to be
  16. /mnt/lfs/sources/tcl8.4.15/unix/../compat/memcmp.c:55: warning: dereferencing 'void *' pointer
  17. /mnt/lfs/sources/tcl8.4.15/unix/../compat/memcmp.c:55: error: void value not ignored as it ought to be
  18. make: *** [memcmp.o] Error 1
复制代码

看起來好像是 memcmp.c 的問題 ?
不知道能否請教各位關於這個部份是否有人遇到
或是關於這個部份的錯誤是關於什麼樣子的錯誤,怎麼樣去解決

感恩
发表于 2007-12-13 07:31:09 | 显示全部楼层
记得以前某个版的 TCL 也试过编译通不过,於是换了新版来用,试装个新的 8.4.16 看看行不

http://www.linuxfromscratch.org/ ... /chapter05/tcl.html

TCL 跟 Expect 及 DejaGNU 都是为了後面的 binutils 及 gcc 供测试用的,若果不进行测试的话,不安装这些软件也没有问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表