Solaris 10 x86(u2,06/06), AMD CPU, gcc 3.4.6, kbs 2.0 cvs
设 LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH后,make时的出错信息:
# make
make -s all-recursive
Making all in libsystem
[Compiling f_io.c]
[Compiling kbs_string.c]
[Compiling uuencode.c]
[Compiling base64.c]
[Linking libsystem.la]
Making all in libBBS
[Compiling record.c]
[Compiling log.c]
[Compiling ucache.c]
[Compiling stuff.c]
[Compiling md5.c]
[Compiling crypt.c]
[Compiling pass.c]
[Compiling bcache.c]
bcache.c: In function `bcache_setreadonly':
bcache.c:44: warning: passing arg 1 of `mprotect' from incompatible pointer type
bcache.c:46: warning: passing arg 1 of `mprotect' from incompatible pointer type
bcache.c: In function `resolve_boards':
bcache.c:174: warning: passing arg 1 of `mprotect' from incompatible pointer type
[Compiling utmp.c]
[Compiling lvars.c]
[Compiling ../libBBS/site.c]
../libBBS/site.c: In function `auto_register':
../libBBS/site.c:487: warning: int format, pid_t arg (arg 3)
../libBBS/site.c:425: warning: unused variable `item'
[Compiling boards.c]
[Compiling bbs_sendmail.c]
[Compiling libmsg.c]
[Compiling article.c]
[Compiling convcode.c]
[Compiling sysconf.c]
[Compiling libann.c]
[Compiling filter.c]
[Compiling mgrep.c]
[Compiling ../libBBS/default.c]
[Compiling output.c]
[Compiling libtmpl.c]
[Compiling libpc.c]
[Compiling xml.c]
[Compiling super_filter.c]
[Linking libBBS.la]
Making all in rzsz
[Compiling lsz.c]
[Compiling lrz.c]
[Compiling zreadline.c]
[Compiling crctab.c]
[Compiling rbsb.c]
[Compiling zm.c]
[Compiling canit.c]
[Linking libzmodem.la]
Making all in src
[Compiling bbs.c]
[Compiling delete.c]
[Compiling mail.c]
[Compiling register.c]
[Compiling xyz.c]
[Compiling talk.c]
[Compiling comm_lists.c]
[Compiling namecomplete.c]
[Compiling chat.c]
[Compiling maintain.c]
[Compiling edit.c]
[Compiling more.c]
[Compiling help.c]
[Compiling screen.c]
screen.c: In function `mailscr':
screen.c:1057: warning: int format, pid_t arg (arg 4)
[Compiling userinfo.c]
[Compiling vote.c]
[Compiling announce.c]
[Compiling sendmsg.c]
[Compiling boards_t.c]
[Compiling bm.c]
bm.c: In function `clubmember':
bm.c:776: warning: int format, pid_t arg (arg 4)
[Compiling list.c]
[Compiling goodbye.c]
[Compiling bbsd_single.c]
[Compiling select.c]
[Compiling newmain_single.c]
[Compiling newio.c]
[Compiling newterm.c]
[Compiling definekey.c]
[Compiling calltime.c]
[Compiling tmpl.c]
[Compiling msg_manager.c]
[Compiling addr_manage.c]
[Compiling personal_corp.c]
[Compiling newread.c]
[Compiling newhelp.c]
[Linking bbsd]
Undefined first referenced
symbol in file
inet_aton xyz.o
ld: fatal: Symbol referencing errors. No output written to bbsd
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
/export/home0/kbs_bbs/wrapper.sh --mode=link "gcc" -DBBSMAIN -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -I/usr/local/mysql/include/mysql -Wpointer-arith -Wall -o bbsd -export-dynamic bbs.o delete.o mail.o register.o xyz.o talk.o comm_lists.o namecomplete.o chat.o maintain.o edit.o more.o help.o screen.o userinfo.o vote.o announce.o sendmsg.o boards_t.o bm.o list.o goodbye.o bbsd_single.o select.o newmain_single.o newio.o newterm.o definekey.o calltime.o tmpl.o msg_manager.o addr_manage.o personal_corp.o newread.o newhelp.o ../libBBS/.libs/libBBS.a ../libsystem/.libs/libsystem.a ../rzsz/.libs/libzmodem.a -lnsl -lsocket -liconv -L/usr/lib -lz -L/usr/local/mysql/lib -L/usr/local/mysql/lib/mysql -lmysqlclient -L/usr/lib -lpthread -ldl -lltdl
make: Fatal error: Command failed for target `bbsd'
Current working directory /export/home0/kbs_bbs/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 innbbsd sshbbsd 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/kbs_bbs
*** Error code 1
make: Fatal error: Command failed for target `all'
--------------------------------------------------------
用GNU make:
# gmake
gmake -s all-recursive
Making all in libsystem
Making all in libBBS
Making all in rzsz
Making all in src
[Linking bbsd]
Undefined first referenced
symbol in file
inet_aton xyz.o
ld: fatal: Symbol referencing errors. No output written to bbsd
collect2: ld returned 1 exit status
gmake[2]: *** [bbsd] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
※ 修改:·linton 于 Mar 15 11:56:15 修改本文·[FROM: 220.173.136.*]
※ 来源:·水木社区
http://newsmth.net·[FROM: 220.173.136.*]
修改:linton FROM 220.173.136.*
FROM 220.173.136.*