LinuxSir.cn,穿越时空的Linuxsir!

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

zchon是不是需要gcc3才能编译啊?

[复制链接]
发表于 2006-3-21 20:21:54 | 显示全部楼层 |阅读模式
[cyx@localhost zhcon-0.2.3]$ ./configure
中间显示省略
Configuration:
    Target system:             i686-pc-linux-gnu
    Source code location:      .
    C++ Compiler:              g++
    C++ Compiler flags:         -funsigned-char -march=i686 -DNDEBUG -Wall
    C   Compiler:              gcc
    C   Compiler flags:         -funsigned-char -march=i686 -DNDEBUG -Wall
    VGA support:               yes
    gpm moues support:         no
    libggi support:            no
    unicon support:            no
    zhcon binary dir:          /usr/local/bin
    zhcon files dir:           /usr/local/lib/zhcon

Config complete, now type make to build zhcon.
Good Luck!
这步骤成功!
make的时候显示
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::RevRect(int, int, int, int)':
fblinear24.cpp:127: warning: operation on 'dest32' may be undefined
fblinear24.cpp:128: warning: operation on 'dest32' may be undefined
fblinear24.cpp:129: warning: operation on 'dest32' may be undefined
fblinear24.cpp:132: warning: operation on 'dest32' may be undefined
fblinear24.cpp:134: warning: operation on 'dest16' may be undefined
fblinear24.cpp:139: warning: operation on 'dest16' may be undefined
fblinear24.cpp: In member function 'virtual void FBLinear24:rawChar(int, int, int, int, CharBitMap*)':
fblinear24.cpp:206: error: invalid lvalue in assignment
fblinear24.cpp:210: error: invalid lvalue in assignment
make[3]: *** [fblinear24.o] 错误 1
make[3]: Leaving directory `/home/cyx/Desktop/zhcon-0.2.3/src/display'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/cyx/Desktop/zhcon-0.2.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/cyx/Desktop/zhcon-0.2.3'
make: *** [all] 错误 2


depmode=gcc3 /bin/sh ../../depcomp \这一句是不是表明zchon需要gcc3才能编译的?我机器上只有gcc4,看来还要安装gcc3,现在问题又来了,假若同时有gcc3和gcc4,那编译程序的时候,能自己识别选择gcc3还是gcc4?
若不能程序识别,我可不可以手动指定,如何指定啊?
发表于 2006-3-24 00:44:27 | 显示全部楼层
Gentoo 有补丁,见附件。那个 gentoo-diff 可以不打。不过都打上也没关系。
我这里编译成功。

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2006-3-24 11:37:52 | 显示全部楼层
可以看看Mandriva的spec的CVS。
http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/zhcon/zhcon.spec
里面包含了不少补丁和额外的补充。

# http://download.sourceforge.net/zhcon/
Source0:%{name}-%{version}.tar.bz2
# 0.2.3-1mdk (Abel) various config files tuned for each locale
Source1:%{name}-0.2.3-config.tar.bz2
# 0.2.3-1mdk (Abel) small script to check for appropriate config file
Source2:zhcon-config.sh
# 0.2.3-1mdk (Abel) http://www.okpos.com/wiki/pos/ZhconKoreanPatch
Patch0:%{name}-0.2.2-korean-input-0.2.patch.bz2
# 0.2.3-2mdk (Abel) GCC 3.x fix
Patch1:%{name}-0.2.3-gcc3.patch.bz2
# 0.2.3-1mdk (Abel) Fix debug flag in configure.in
Patch2:%{name}-0.2.3-configure-fix.patch.bz2
# 0.2.3-1mdk (Abel) Allow non-root install
Patch3:%{name}-0.2.3-nonroot.patch.bz2
# 0.2.3-1mdk (Abel) Avoid unicon dependency altogether
Patch4:%{name}-0.2.3-no-unicon.patch.bz2
# 0.2.3-1mdk (Abel) Move config to /etc/zhcon/zhcon.conf
Patch5:%{name}-0.2.3-config-location.patch.bz2
# 0.2.3-2mdk (Abel) Ugly hack for allowing big5 input methods
Patch6:%{name}-0.2.3-big5.patch.bz2
Patch7:zhcon-0.2.3-build-fix.patch.bz2

Patch8:zhcon-fix-gcc-3.4.patch.bz2
Patch9:zhcon-0.2.3-CAN-2005-0072.patch  <--安全补丁
Patch10:zhcon-0.2.3-build.patch.bz2

****************
在这个版本可以打上
****************
%patch0 -p1 -b .korean
%patch1 -p1 -b .gcc3
%patch2 -p1 -b .debugflag
%patch3 -p1 -b .nonroot
%patch4 -p1 -b .no-unicon
%patch5 -p1 -b .configfile
%patch6 -p1 -b .big5
%patch7 -p0 -b .build
%patch8 -p1 -b .fix_gcc_3_4
%patch9 -p1 -b .can-2005-0072
%patch10 -p1 -b .build
回复 支持 反对

使用道具 举报

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

本版积分规则

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