- 主题:kbs update 到 r11591 make出错
系统:Solaris 10 x86, gcc 3.4.6
[Compiling convcode.c]
[Compiling sysconf.c]
[Compiling libann.c]
libann.c: In function `a_loadnames':
libann.c:574: error: storage size of 'member' isn't known
libann.c:575: error: invalid application of `sizeof' to incomplete type `board_member'
libann.c:576: warning: implicit declaration of function `get_board_member'
libann.c:576: error: `BOARD_MEMBER_STATUS_MANAGER' undeclared (first use in this function)
libann.c:576: error: (Each undeclared identifier is reported only once
libann.c:576: error: for each function it appears in.)
libann.c:574: warning: unused variable `member'
*** Error code 1
The following command caused the error:
source='libann.c' object='libann.lo' libtool=yes \
depfile='.deps/libann.Plo' tmpdepfile='.deps/libann.TPlo' \
depmode=gcc3 /bin/bash ../depcomp \
/export/home0/kbs_svn/kbs_bbs/wrapper.sh --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -D_POSIX_PTHREAD_SEMANTICS -g -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -Wpointer-arith -Wall -I/usr/local/mysql/include -c -o libann.lo `test -f 'libann.c' || echo './'`libann.c
make: Fatal error: Command failed for target `libann.lo'
Current working directory /export/home0/kbs_svn/kbs_bbs/libBBS
*** 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 innbbsd sshbbsd php'; 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/kbs_svn/kbs_bbs
*** Error code 1
make: Fatal error: Command failed for target `all'
在 site/fb2k-v2.h 中加:
#define ENABLE_BOARD_MEMBER
#define ENABLE_NEW_MSG
再次make错误如下:
# make
make -s all-recursive
Making all in libsystem
Making all in libBBS
[Compiling record.c]
In file included from ../src/bbs.h:458,
from record.c:20:
../src/struct.h:634: error: syntax error before "sqlite3"
../src/struct.h:634: warning: no semicolon at end of struct or union
../src/struct.h:636: error: syntax error before '}' token
*** Error code 1
The following command caused the error:
source='record.c' object='record.lo' libtool=yes \
depfile='.deps/record.Plo' tmpdepfile='.deps/record.TPlo' \
depmode=gcc3 /bin/bash ../depcomp \
/export/home0/kbs_svn/kbs_bbs/wrapper.sh --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -D_POSIX_PTHREAD_SEMANTICS -g -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -Wpointer-arith -Wall -I/usr/local/mysql/include -c -o record.lo `test -f 'record.c' || echo './'`record.c
make: Fatal error: Command failed for target `record.lo'
Current working directory /export/home0/kbs_svn/kbs_bbs/libBBS
*** 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 innbbsd sshbbsd php'; 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/kbs_svn/kbs_bbs
*** Error code 1
make: Fatal error: Command failed for target `all'
--
FROM 121.31.118.*
少了个宏,你升级后去掉ENABLE_BOARD_MEMBER再编译一下试试
【 在 linton (雨·雪·风·霜) 的大作中提到: 】
: 系统:Solaris 10 x86, gcc 3.4.6
: [Compiling convcode.c]
: [Compiling sysconf.c]
: ...................
--
FROM 114.249.156.*
# svn update
U libBBS/libann.c
Updated to revision 11592.
去掉 site/fb2k-v2.h 中的:
#define ENABLE_BOARD_MEMBER
#define ENABLE_NEW_MSG
再 make:
# make
make -s all-recursive
Making all in libsystem
Making all in libBBS
[Compiling libann.c]
libann.c: In function `a_loadnames':
libann.c:574: error: storage size of 'member' isn't known
libann.c:575: error: invalid application of `sizeof' to incomplete type `board_member'
libann.c:574: warning: unused variable `member'
*** Error code 1
The following command caused the error:
source='libann.c' object='libann.lo' libtool=yes \
depfile='.deps/libann.Plo' tmpdepfile='.deps/libann.TPlo' \
depmode=gcc3 /bin/bash ../depcomp \
/export/home0/kbs_svn/kbs_bbs/wrapper.sh --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -D_POSIX_PTHREAD_SEMANTICS -g -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -Wpointer-arith -Wall -I/usr/local/mysql/include -c -o libann.lo `test -f 'libann.c' || echo './'`libann.c
make: Fatal error: Command failed for target `libann.lo'
Current working directory /export/home0/kbs_svn/kbs_bbs/libBBS
*** 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 innbbsd sshbbsd php'; 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/kbs_svn/kbs_bbs
*** Error code 1
make: Fatal error: Command failed for target `all'
【 在 jiangjun2000 (%d) 的大作中提到: 】
: 少了个宏,你升级后去掉ENABLE_BOARD_MEMBER再编译一下试试
--
FROM 121.31.118.*
哦,还有两行需要放到ifdef里面,不好意思
你再升级一下试试吧
【 在 linton (雨·雪·风·霜) 的大作中提到: 】
: # svn update
: U libBBS/libann.c
: Updated to revision 11592.
: ...................
--
修改:jiangjun2000 FROM 221.122.63.*
FROM 221.122.63.*