Centos 6.4 编译kingate 后出现问题了。以下是报错信息!

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 6.4 编译kingate 后出现问题了。以下是报错信息!相关的知识,希望对你有一定的参考价值。

[root@Candy kingate-2.1]# make
Making all in src
make[1]: Entering directory `/tmp/kingate-2.1/src'
make all-am
make[2]: Entering directory `/tmp/kingate-2.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O0 -D_REENTRANT -DLINUX -MT lib.o -MD -MP -MF ".deps/lib.Tpo" -c -o lib.o lib.cpp; \
then mv -f ".deps/lib.Tpo" ".deps/lib.Po"; else rm -f ".deps/lib.Tpo"; exit 1; fi
In file included from oops.h:666,
from lib.cpp:32:
lib.h: In function ‘int store_in_chain(char*, int, mem_obj*)’:
lib.h:185: 警告:不建议使用从字符串常量到‘char*’的转换
lib.h:188: 警告:不建议使用从字符串常量到‘char*’的转换
lib.h:192: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp: At global scope:
lib.cpp:38: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:39: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp: In function ‘int http_date(char*, time_t*)’:
lib.cpp:138: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:164: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:183: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:210: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:220: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:258: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:276: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp: In function ‘void increase_hash_size(obj_hash_entry*, int, bool)’:
lib.cpp:529: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:533: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:543: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp: In function ‘void decrease_hash_size(obj_hash_entry*, int, bool)’:
lib.cpp:563: 警告:不建议使用从字符串常量到‘char*’的转换
lib.cpp:575: 警告:不建议使用从字符串常量到‘char*’的转换
g++ -g -O0 -D_REENTRANT -DLINUX -o kingate KConfig.o ftp.o allow_connect.o oops.o KDnsCache.o garbage_c.o cache.o other.o KFilter.o common.o http_ftp.o run_client.o http_utils.o socks.o lib.o do_config.o KThreadPool.o log.o utils.o KTimeMatch.o main.o forwin32.o md5.o KUser.o mysocket.o KHttpManage.o KRWLock.o -lpthread
make[2]: Leaving directory `/tmp/kingate-2.1/src'
make[1]: Leaving directory `/tmp/kingate-2.1/src'
make[1]: Entering directory `/tmp/kingate-2.1'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/tmp/kingate-2.1'
[root@Candy kingate-2.1]# vim src/lib.cpp
[root@Candy kingate-2.1]#

参考技术A 只是警告而已,字符串常量是const类型的,赋给char*是不合理,建议改成const char* 参考技术B 首先建议把系统的语言设置为英文,你不觉得看着中文很别扭么?
其次你怎么确定这是报错的信息?通篇没有找到error?

感觉是编译成功了kingate本回答被提问者采纳
参考技术C 你没装开发包,或没满足它的条件。

安装Centos6.9出现故障

                                 安装Centos6.9出现故障
一,我有一台台式主机主板是技嘉Z97安装Centos6.9时出现了一些奇怪的现象;1,硬盘出现不能支持的硬件(分区完成后,在点击进行下一步操作时,总提示sda必须有一个GPT磁盘标签,无法继续安装),这个解决是在主板BIOS开启(进入到BIOS设置界面,选择“Security”界面,点开“Secure Boot”选项,选择“Enabled”)2,另外一个是安装完系统后,刚进入时跳出错误:Error 13:Invalid or unsupported executable format (附图):
![](http://i2.51cto.com/images/blog/201806/06/f027439b99e00b5d9a2a915133215154.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
这个问题我纠结一个晚上,现在终于找到解决的办法了,就是在格式化分区的时候;在进入安装界面时,也就是出现图形界面时就对它使用命令创建gpt:
输入parted 
输入mklablel gpt  /dev/sda
在提示界面中,输入Yes
使用 print   /dev/sda 进行确认
接着按住Ctrl+alt+F6 回到安装界面
然后继续按照提示安装下去就可以了。
最后总结,gpt模式分区安装系统不熟悉,主板模式没有调试好,和Linux系统没有关系,Centos6.5之前的系统除外。自己写下来以便以后使用。

以上是关于Centos 6.4 编译kingate 后出现问题了。以下是报错信息!的主要内容,如果未能解决你的问题,请参考以下文章

求助,CentOS 6.4安装Google Chrome的rpm包出现问题

incrond 在 CentOS 6.4 下运行但不执行命令

CentOS 6.4系统中编译和升级内核

CentOS 6.4 编译安装 gcc 4.8.1(转)

CentOS 6.4 源码安装MySQL 5.6

我想在windows7安装centos系统,下载的镜像是CentOS-6.4-i386-LiveCD.iso 参考的网上的教程如下