- 主题:kbs2.0修改devel.c求助
因为以前devel.h里使用了USE_DEFAULT_SECODE,所以修改精华区位置和开心版面的时候还是水木的分类讨论区结构,按照文档里的去修改site.h和site.c发现都是符号连接到site里的devel.h和devel.c,按照自己的讨论区结构作了修改。然后make clean再make,configure里面使用了 --enable-site=devel 结果出现错误
Making all in rzsz
[Compiling lsz.lo]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNFGVMIN -I../src -DLINUX -I/usr/include/mysql
-MT lsz.lo -MD -MP -MF .deps/lsz.Tpo -c lsz.c -fPIC -DPIC -o .libs/lsz.o
In file included from ../src/bbs.h:633,
from zglobal.h:27,
from lsz.c:24:
../src/vars.h:36: error: array type has incomplete element type
../src/vars.h:40: error: array type has incomplete element type
../src/vars.h:41: error: array type has incomplete element type
../src/vars.h:42: error: array type has incomplete element type
../src/vars.h:43: error: array type has incomplete element type
../src/vars.h:44: error: array type has incomplete element type
lsz.c:57: error: static declaration of 'errors' follows non-static declaration
zglobal.h:171: error: previous declaration of 'errors' was here
lsz.c:58: error: static declaration of 'protocol' follows non-static declaration
zglobal.h:168: error: previous declaration of 'protocol' was here
make[2]: *** [lsz.lo] 错误 1
make[1]: *** [all-recursive] 错误 1
make: *** [all] 错误 2
[bbsd@bbs kbsbbs-2.0dev]$
觉得很奇怪,不知道以上操作步骤有什么问题,如果只修改devel.c和devel.h应该不会影响别的地方啊,希望大虾们指点,多谢
--
FROM 155.69.149.*
贴你修改过的devel.h devel.c
附件也可
【 在 pyo (pyo) 的大作中提到: 】
: 因为以前devel.h里使用了USE_DEFAULT_SECODE,所以修改精华区位置和开心版面的时候还是水木的分类讨论区结构,按照文档里的去修改site.h和site.c发现都是符号连接到site里的devel.h和devel.c,按照自己的讨论区结构作了修改。然后make clean再make,configure里面使用了
: Making all in rzsz
: [Compiling lsz.lo]
: ...................
--
FROM 61.182.213.*
谢谢,我放到附件里,里面注释标明了我昨天的修改,帮忙看看有什么问题,另外是不是修改了devel.h以后一定要make clean啊,我记得好像是这样的
【 在 atppp (Big Mouse) 的大作中提到: 】
: 贴你修改过的devel.h devel.c
: 附件也可
--
FROM 155.69.5.*
附件(5KB) devel.c附件(1.2KB) devel.h什么系统什么编译器?
【 在 pyo (pyo) 的大作中提到: 】
: 因为以前devel.h里使用了USE_DEFAULT_SECODE,所以修改精华区位置和开心版面的时候还是水木的分类讨论区结构,按照文档里的去修改site.h和site.c发现都是符号连接到site里的devel.h和devel.c,按照自己的讨论区结构作了修改。然后make clean再make,configure里面使用了
: Making all in rzsz
: [Compiling lsz.lo]
: gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNFGVMIN -I../src -DLINUX -I/usr/include/mysql
: -MT lsz.lo -MD -MP -MF .deps/lsz.Tpo -c lsz.c -fPIC -DPIC -o .libs/lsz.o
: In file included from ../src/bbs.h:633,
: from zglobal.h:27,
: from lsz.c:24:
: ../src/vars.h:36: error: array type has incomplete element type
: ../src/vars.h:40: error: array type has incomplete element type
: ../src/vars.h:41: error: array type has incomplete element type
: ../src/vars.h:42: error: array type has incomplete element type
: ../src/vars.h:43: error: array type has incomplete element type
: ../src/vars.h:44: error: array type has incomplete element type
以上六行全部没用,注释掉。后面的错误不知道。
: lsz.c:57: error: static declaration of 'errors' follows non-static declaration
: zglobal.h:171: error: previous declaration of 'errors' was here
: lsz.c:58: error: static declaration of 'protocol' follows non-static declaration
: zglobal.h:168: error: previous declaration of 'protocol' was here
: make[2]: *** [lsz.lo] 错误 1
: make[1]: *** [all-recursive] 错误 1
: make: *** [all] 错误 2
: [bbsd@bbs kbsbbs-2.0dev]$
: 觉得很奇怪,不知道以上操作步骤有什么问题,如果只修改devel.c和devel.h应该不会影响别的地方啊,希望大虾们指点,多谢
--
FROM 61.182.213.*
FC4,编译器就是gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8),我看看先,修改之前编译应该是没有问题的,看了错误觉得很奇怪,从来没改过那个文件
【 在 atppp (Big Mouse) 的大作中提到: 】
: 什么系统什么编译器?
: 以上六行全部没用,注释掉。后面的错误不知道。
--
FROM 155.69.149.*
看得好乱,晕,这个意思是不是说把int error和protocol前面的static去掉就可以了?
【 在 atppp (Big Mouse) 的大作中提到: 】
: [PATCH] GCC4 Compilation Error Fix. by FreeWizard
: kbs_bbs/rzsz
: lrz.c 1.24 -> 1.25
: ...................
--
FROM 155.69.149.*
nod,一共三处...
【 在 pyo (pyo) 的大作中提到: 】
: 看得好乱,晕,这个意思是不是说把int error和protocol前面的static去掉就可以了?
--
修改:atppp FROM 61.182.213.*
FROM 61.182.213.*
....好像只找到后面两处,第一处没有找到...编译还是说有一个错
lrz.c:67: error: static declaration of 'errors' follows non-static declaration
zglobal.h:171: error: previous declaration of 'errors' was here
但是lrz.c第67行是这个static size_t filbuf(char *buf, size_t count);
【 在 atppp (Big Mouse) 的大作中提到: 】
: nod,一共三处...
--
FROM 155.69.149.*
瞪大眼睛,再看一遍 @@
我是说错误提示的文件名
要像我签名档一样,戴起眼镜来看
【 在 pyo (pyo) 的大作中提到: 】
: ....好像只找到后面两处,第一处没有找到...编译还是说有一个错
: lrz.c:67: error: static declaration of 'errors' follows non-static declaration
: zglobal.h:171: error: previous declaration of 'errors' was here
: ...................
--
FROM 61.182.213.*
啊啊啊啊啊啊,果然,我台zt了,5555,现在make已经成功了,谢谢atppp大牛的耐心指点。再问最后一个问题,如果想修改.BOARDS文件是不是一定要把服务停了才可以啊,直接改会不会出问题
【 在 atppp (Big Mouse) 的大作中提到: 】
: 瞪大眼睛,再看一遍 @@
: 我是说错误提示的文件名
: 要像我签名档一样,戴起眼镜来看
: ...................
--
FROM 155.69.149.*