刚才编译了一下,出现如下错误,知道的大侠告诉如何解决!
编译器是gcc
[Compiling bbs_sendmail.c]
bbs_sendmail.c: In function `bbs_readmailfile':
bbs_sendmail.c:399: warning: subscript has type `char'
bbs_sendmail.c: In function `my_ansi_filter':
bbs_sendmail.c:692: warning: subscript has type `char'
bbs_sendmail.c: In function `bbs_sendmail':
bbs_sendmail.c:712: `OWNSENDMAIL' undeclared (first use in this function)
bbs_sendmail.c:712: (Each undeclared identifier is reported only once
bbs_sendmail.c:712: for each function it appears in.)
*** Error code 1
The following command caused the error:
source='bbs_sendmail.c' object='bbs_sendmail.lo' libtool=yes \
depfile='.deps/bbs_sendmail.Plo' tmpdepfile='.deps/bbs_sendmail.TPlo' \
depmode=none /bin/bash ../depcomp \
/export/home/jxiong/smthbbs-1.2.1/wrapper.sh --mode=compile gcc -DHAVE_CONFI
G_H -I. -I. -I.. -DINVISIBLE -DSAFE_KILL -D_DETAIL_UINFO_ -DSHOW_IDLE_TI
ME -I../src -Wall -DSOLARIS -c -o bbs_sendmail.lo `test -f bbs_sendmail.c |
| echo './'`bbs_sendmail.c
make: Fatal error: Command failed for target `bbs_sendmail.lo'
Current working directory /export/home/jxiong/smthbbs-1.2.1/libBBS
*** Error code 1
The following command caused the error:
set fnord -s; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libsystem libBBS rzsz src daemon local_utl mail2bbs service contrib';
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'
【 在 hujia (佳) 的大作中提到: 】
: 说有这方面的经验,希望能够介绍一下。
: 马上要安装一个在solaris平台的bbs.
--
FROM 135.252.58.*