- 主题:Solaris 9 X86编译kbsbbs-2.0dev问题
系统: Solaris 9 X86
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.3.2
kbsbbs: 2005.08.04的snapshot
-----------------------
cd kbsbbs-2.0dev
# ./configure --prefix=/export/home0/bbs --enable-site=fb2k-v2 \
--with-www=/usr/local/apache --with-php=/usr/local/include/php \
--with-mysql=/export/home0/mysql --enable-ssl
-------------------
问题:
[Compiling bm.c]
bm.c: In function `addtodeny':
bm.c:169: warning: subscript has type `char'
bm.c:284: error: `DENY_DESC_AUTOFREE' undeclared (first use in this function)
bm.c:284: error: (Each undeclared identifier is reported only once
bm.c:284: error: for each function it appears in.)
bm.c:284: error: parse error before string constant
bm.c:284: warning: left-hand operand of comma expression has no effect
bm.c:284: error: parse error before ')' token
bm.c:293: error: parse error before "DENY_NAME_SYSOP"
bm.c:307: error: parse error before string constant
bm.c:307: warning: left-hand operand of comma expression has no effect
bm.c:307: error: parse error before ')' token
bm.c:324: error: `DENY_BOARD_AUTOFREE' undeclared (first use in this function)
bm.c:324: error: parse error before string constant
bm.c:324: warning: left-hand operand of comma expression has no effect
bm.c:324: error: parse error before ')' token
bm.c:331: error: parse error before "DENY_NAME_SYSOP"
bm.c: In function `deny_user':
bm.c:498: warning: subscript has type `char'
*** Error code 1
The following command caused the error:
if "/export/home0/kbsbbs-2.0dev/wrapper.sh" -DHAVE_CONFIG_H -I. -I. -I.. -DBBSMAIN -DINVISIBLE -DSAFE_KILL -D_DETAIL_UINFO_ -DSHOW_IDLE_TIME -Wall -DSOLARIS -I/export/home0/mysql/include/mysql -MT bm.o -MD -MP -MF ".deps/bm.Tpo" -c -o bm.o bm.c; \
then mv -f ".deps/bm.Tpo" ".deps/bm.Po"; else rm -f ".deps/bm.Tpo"; exit 1; fi
make: Fatal error: Command failed for target `bm.o'
Current working directory /export/home0/kbsbbs-2.0dev/src
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libsystem libBBS rzsz src daemon local_utl mail2bbs service bbs2www'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make -s $local_target) \
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make -s "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home0/kbsbbs-2.0dev
*** Error code 1
make: Fatal error: Command failed for target `all'
--
FROM 202.193.15.*
你在什么地方定义了DENY_NAME_SYSOP?
【 在 linton (难得糊涂) 的大作中提到: 】
: 系统: Solaris 9 X86
: # gcc -v
: Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/specs
: ...................
--
FROM 128.12.181.*
这个比较猪一点,bcache_t和solaris某个系统头文件的某个结构重名
你把所有出现bcache_t的地方都替换成boardheader_t即可,包括那个bbslib.h里面的
【 在 linton (难得糊涂) 的大作中提到: 】
: 解决了这个问题,是由于站点配置文件有问题.
: -------------------------------------
: 但又有新问题来了:
: ...................
--
FROM 128.12.181.*
cvs里面也改改吧...
【 在 atppp (Big Mouse) 的大作中提到: 】
: 这个比较猪一点,bcache_t和solaris某个系统头文件的某个结构重名
: 你把所有出现bcache_t的地方都替换成boardheader_t即可,包括那个bbslib.h里面的
--
FROM 61.135.151.13
遵照指示,修改后,编译顺利完成.
【 在 atppp (Big Mouse) 的大作中提到: 】
: 这个比较猪一点,bcache_t和solaris某个系统头文件的某个结构重名
: 你把所有出现bcache_t的地方都替换成boardheader_t即可,包括那个bbslib.h里面的
--
修改:linton FROM 202.193.15.*
FROM 202.193.15.*
v1_2 的早改了,主分支的一直没有改,包括 SPARC 下掉线问题...
【 在 KCN (每年总有一段时间想出国) 的大作中提到: 】
: cvs里面也改改吧...
--
FROM 162.105.242.*
2.0不是叫dev吗?为什么v1_2改了,2.0dev还没改?
【 在 flyriver (江~~忙碌生活) 的大作中提到: 】
: v1_2 的早改了,主分支的一直没有改,包括 SPARC 下掉线问题...
--
FROM 222.88.140.*
v1_2 是 stable 分支,只除错,不增加功能,不过那个已经是半年多以前的事情了。
【 在 JulyClyde (七月) 的大作中提到: 】
: 2.0不是叫dev吗?为什么v1_2改了,2.0dev还没改?
--
FROM 162.105.242.*