- 主题:CVS的源码,make问题...
bash-3.00# make
make -s all-recursive
Making all in libsystem
[Compiling f_cat.c]
In file included from ../src/bbs.h:125,
from ../src/system.h:3,
from f_cat.c:2:
../src/default.h:587: conflicting types for `permstrings'
../src/site.h:255: previous declaration of `permstrings'
../src/default.h:588: conflicting types for `groups'
../src/site.h:256: previous declaration of `groups'
../src/default.h:589: conflicting types for `explain'
../src/site.h:257: previous declaration of `explain'
../src/default.h:590: conflicting types for `user_definestr'
../src/site.h:258: previous declaration of `user_definestr'
../src/default.h:601: conflicting types for `mailbox_prop_str'
../src/site.h:259: previous declaration of `mailbox_prop_str'
*** Error code 1
Stop in /tmp/BBS/sm/smth_bbs/libsystem.
*** Error code 1
Stop in /tmp/BBS/sm/smth_bbs.
*** Error code 1
Stop in /tmp/BBS/sm/smth_bbs.
--
FROM 219.224.177.*
编译器bt了点,估计是这么改:
- const char * permstrings[] = {
+ const char * const permstrings[] = {
【 在 ipv1@smth.org-SPAM.no (我为了谁宁愿让心变成了孤岛) 的大作中提到: 】
: bash-3.00# make
: make -s all-recursive
: Making all in libsystem
: [Compiling f_cat.c]
: In file included from ../src/bbs.h:125,
: from ../src/system.h:3,
: from f_cat.c:2:
: ../src/default.h:587: conflicting types for `permstrings'
: ../src/site.h:255: previous declaration of `permstrings'
: ../src/default.h:588: conflicting types for `groups'
: ...................
--
FROM 219.224.177.115
源码就是* const的..
【 在 FreeWizard (屠狗功名 雕龙文卷 岂是平生意) 的大作中提到: 】
: 编译器bt了点,估计是这么改:
: - const char * permstrings[] = {
: + const char * const permstrings[] = {
--
FROM 219.224.177.38
site.h和default.h的不一致
【 在 ipv1@bbs.happynet.org-SPAM.no (与时俱进) 的大作中提到: 】
: 源码就是* const的..
--
FROM 202.205.10.10