Solaris 10 x86, gcc 3.4.6
./configure CFLAGS="-g -D_POSIX_PTHREAD_SEMANTICS" \
--prefix=/export/home0/bbs \
--enable-site=fb2k-v2 \
--with-www=/usr/local/apache2 \
--with-php=/usr/local/include/php \
--with-mysql=/usr/local/mysql \
--enable-innbbsd \
--enable-ssh
# make
......
[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_svn/kbs_bbs/wrapper.sh --mode=link "gcc" -DBBSMAIN -D_POSIX_PTHREAD_SEMANTICS -g -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_svn/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_svn/kbs_bbs
*** Error code 1
make: Fatal error: Command failed for target `all'
--
修改:linton FROM 220.173.136.*
FROM 220.173.136.*