LinuxSir.cn,穿越时空的Linuxsir!

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

LFS6.1.1安装zhcon时make出错(已解决)

[复制链接]
发表于 2006-1-11 22:30:38 | 显示全部楼层 |阅读模式
基于LFS6.1.1的linux系统,安装zhcon时configure通过了,但在make时却出错了,下面是make时的出错信息。怎么解决?

make  all-recursive
make[1]: Entering directory `/home/tools/zhcon-0.2.3'
Making all in src
make[2]: Entering directory `/home/tools/zhcon-0.2.3/src'
Making all in display
make[3]: Entering directory `/home/tools/zhcon-0.2.3/src/display'
make[3]: Warning: File `/usr/include/unistd.h' has modification time 9e+03 s in the future
source='fbdev.cpp' object='fbdev.o' libtool=no \
depfile='.deps/fbdev.Po' tmpdepfile='.deps/fbdev.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fbdev.o `test -f fbdev.cpp || echo './'`fbdev.cpp
source='fblinear15.cpp' object='fblinear15.o' libtool=no \
depfile='.deps/fblinear15.Po' tmpdepfile='.deps/fblinear15.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear15.o `test -f fblinear15.cpp || echo './'`fblinear15.cpp
source='fblinear16.cpp' object='fblinear16.o' libtool=no \
depfile='.deps/fblinear16.Po' tmpdepfile='.deps/fblinear16.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear16.o `test -f fblinear16.cpp || echo './'`fblinear16.cpp
source='fblinear24.cpp' object='fblinear24.o' libtool=no \
depfile='.deps/fblinear24.Po' tmpdepfile='.deps/fblinear24.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -march=i686 -DNDEBUG -Wall -c -o fblinear24.o `test -f fblinear24.cpp || echo './'`fblinear24.cpp
fblinear24.cpp: In member function `virtual void FBLinear24:rawChar(int, int, int, int, CharBitMap*)':
fblinear24.cpp:206: error: ISO C++ forbids cast to non-reference type used as lvalue
fblinear24.cpp:210: error: ISO C++ forbids cast to non-reference type used as lvalue
make[3]: *** [fblinear24.o] Error 1
make[3]: Leaving directory `/home/tools/zhcon-0.2.3/src/display'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tools/zhcon-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tools/zhcon-0.2.3'
make: *** [all] Error 2
 楼主| 发表于 2006-1-11 23:34:21 | 显示全部楼层
刚才在网上搜了下,原来是zhcon在gcc3.4上编译的BUG,按照提示为它建立一个patch编译安装成功,并编了一个测试文件一切显示。原文地址:http://bugs.donarmstrong.com/cgi ... 151&archive=yes

patch内容:(可直接下载附件使用)
diff -urN ../tmp-orig/zhcon-0.2.3/src/display/fblinear24.cpp ./src/display/fblinear24.cpp
--- ../tmp-orig/zhcon-0.2.3/src/display/fblinear24.cpp        2004-08-07 12:53:30.981966364 +0200
+++ ./src/display/fblinear24.cpp        2004-08-07 12:52:22.249289057 +0200
@@ -215,11 +215,13 @@
             d1 = (-(*cdat >> 3 & 1) & eorx) ^ bgx;
             d2 = (-(*cdat >> 2 & 1) & eorx) ^ bgx;
             fb_writel(d1 | (d2<<24), dest32++);
-            fb_writew(d2>>8, ((__u16*)dest32)++);
+            fb_writew(d2>>8, ((__u16*)dest32));
+            dest32++;
         }
         if (pFont->w & 1) {
             d3 = (-(*cdat >> 1 & 1) & eorx) ^ bgx;
-            fb_writew(d3, ((__u16*)dest32)++);
+            fb_writew(d3, ((__u16*)dest32));
+            dest32++;
             fb_writeb(d3>>16, (__u8*)dest32);
         }
         cdat++;
diff -urN ../tmp-orig/zhcon-0.2.3/src/display/fblinear8.cpp ./src/display/fblinear8.cpp
--- ../tmp-orig/zhcon-0.2.3/src/display/fblinear8.cpp        2004-08-07 12:53:30.982966170 +0200
+++ ./src/display/fblinear8.cpp        2004-08-07 12:52:46.294628227 +0200
@@ -110,7 +110,8 @@
             fb_writel((nibbletab_cfb8[*cdat >> 4] & eorx) ^ bgx, dest32++);
         }
         if (pFont->w & 2) {
-            fb_writew((nibbletab_cfb8[*cdat & 0xc] & eorx) ^ bgx, ((__u16*)dest32)++);
+            fb_writew((nibbletab_cfb8[*cdat & 0xc] & eorx) ^ bgx, ((__u16*)dest32));
+            dest32++;
         }
         if (pFont->w & 1) {
             fb_writeb((*cdat & 2) ? fg : bg, (__u8*)dest32);

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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