当前位置: 技术问答>linux和unix
求助:Red Hat Enterprise 5.4下安装zhcon,make时报错
来源: 互联网 发布时间:2017-04-04
本文导语: 下载了0.2.5的包及0.2.6的补丁 如下操作: 1、 tar -xvf zhcon-0.2.5.tar.gz 2、 cd zhcon-0.2.5 3、 zcat ../zhcon-0.2.5-to-0.2.6.diff.gz | patch -p1 4、 ./configure 5、 make 到make的时候报错: [root@localhost zhcon-0.2.5]# make ma...
下载了0.2.5的包及0.2.6的补丁
如下操作:
1、 tar -xvf zhcon-0.2.5.tar.gz
2、 cd zhcon-0.2.5
3、 zcat ../zhcon-0.2.5-to-0.2.6.diff.gz | patch -p1
4、 ./configure
5、 make
到make的时候报错:
[root@localhost zhcon-0.2.5]# make
make all-recursive
make[1]: Entering directory `/muyu/zhcon-0.2.5'
Making all in src
make[2]: Entering directory `/muyu/zhcon-0.2.5/src'
Making all in display
make[3]: Entering directory `/muyu/zhcon-0.2.5/src/display'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/muyu/zhcon-0.2.5/src/display'
make[3]: Entering directory `/muyu/zhcon-0.2.5/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -funsigned-char -O2 -DNDEBUG -Wall -MT winime. o -MD -MP -MF ".deps/winime.Tpo" -c -o winime.o winime.cpp;
then mv -f ".deps/winime.Tpo" ".deps/winime.Po"; else rm -f ".deps/winime.Tpo" ; exit 1; fi
winime.cpp: In member function ‘int WinIme::MatchWord(char*, int, int)’:
winime.cpp:166: warning: dereferencing type-punned pointer will break strict-aliasing rules
winime.cpp: In member function ‘int WinIme::Search(char)’:
winime.cpp:253: error: cast from ‘char*’ to ‘unsigned int’ loses precision
winime.cpp:274: error: cast from ‘char*’ to ‘unsigned int’ loses precision
make[3]: *** [winime.o] Error 1
make[3]: Leaving directory `/muyu/zhcon-0.2.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/muyu/zhcon-0.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/muyu/zhcon-0.2.5'
make: *** [all] Error 2
求解,谢谢!
如下操作:
1、 tar -xvf zhcon-0.2.5.tar.gz
2、 cd zhcon-0.2.5
3、 zcat ../zhcon-0.2.5-to-0.2.6.diff.gz | patch -p1
4、 ./configure
5、 make
到make的时候报错:
[root@localhost zhcon-0.2.5]# make
make all-recursive
make[1]: Entering directory `/muyu/zhcon-0.2.5'
Making all in src
make[2]: Entering directory `/muyu/zhcon-0.2.5/src'
Making all in display
make[3]: Entering directory `/muyu/zhcon-0.2.5/src/display'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/muyu/zhcon-0.2.5/src/display'
make[3]: Entering directory `/muyu/zhcon-0.2.5/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -funsigned-char -O2 -DNDEBUG -Wall -MT winime. o -MD -MP -MF ".deps/winime.Tpo" -c -o winime.o winime.cpp;
then mv -f ".deps/winime.Tpo" ".deps/winime.Po"; else rm -f ".deps/winime.Tpo" ; exit 1; fi
winime.cpp: In member function ‘int WinIme::MatchWord(char*, int, int)’:
winime.cpp:166: warning: dereferencing type-punned pointer will break strict-aliasing rules
winime.cpp: In member function ‘int WinIme::Search(char)’:
winime.cpp:253: error: cast from ‘char*’ to ‘unsigned int’ loses precision
winime.cpp:274: error: cast from ‘char*’ to ‘unsigned int’ loses precision
make[3]: *** [winime.o] Error 1
make[3]: Leaving directory `/muyu/zhcon-0.2.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/muyu/zhcon-0.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/muyu/zhcon-0.2.5'
make: *** [all] Error 2
求解,谢谢!
|
winime.cpp:253: error: cast from ‘char*’ to ‘unsigned int’ loses precision
winime.cpp:274: error: cast from ‘char*’ to ‘unsigned int’ loses precision
根据错误提示查看源码