【 在 flyriver@bbs.happynet.org-SPAM.no (江~~坏坏大猪) 的大作中提到: 】
: 有两个问题:
: 1. 你的代码好像不是最新的
: 2. configure 出来的 OSTYPE 怎么会是 GENERIC 呢?应该是 FREEBSD 才对。
: 解决办法:
: 1. 从 cvs co 最新代码,命令如下:
: export CVSROOT=:pserver:bbsdev@cvs.smth.org:/home/cvs
: cvs -z9 co -r v1_2 -d smthbbs-1.2 smth_bbs
: cd smthbbs-1.2
: cvs -z9 co -r v1_2 sshbbsd
: cvs -z9 co -r v1_2 innbbsd
: cvs -z9 co -r v1_2 bbshome
: 然后用 aclocal; autoheader; automake -a; autoconf 生成 configure,
: 对于目前的最新代码,应该是一个 Warning 都没有的。
果然。no Warning ;)
su-2.05b$ aclocal;autoheader ;automake -a;autoconf
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
configure.ac: installing `./missing'
bbs2www/lib/Makefile.am: installing `./depcomp'
: 2. configure 时看看最前面输出的 build,host 和 target 都是什么,应该是
: i386-unknown-freebsd5.3 这样的字符串。
configure:1523: checking build system type
configure:1541: result: i386-unknown-freebsd5.3
configure:1549: checking host system type
configure:1563: result: i386-unknown-freebsd5.3
configure:1571: checking target system type
configure:1585: result: i386-unknown-freebsd5.3
configure:1612: checking for a BSD-compatible install
configure:1666: result: /usr/bin/install -c
configure:1677: checking whether build environment is sane
configure:1720: result: yes
configure:1753: checking for gawk
configure:1782: result: no
make 很顺利,;) 部分log
default.c: In function `def_list':
default.c:666: warning: integer constant is too large for "long" type
[Compiling calltime.c]
calltime.c: In function `get_clock_string':
calltime.c:648: warning: long int format, int arg (arg 3)
calltime.c:652: warning: long int format, int arg (arg 3)
[Compiling super_filter.c]
[Compiling libtmpl.c]
[Compiling msg_manager.c]
[Compiling addr_manage.c]
[Compiling libpc.c]
[Compiling personal_corp.c]
[Compiling newread.c]
[Compiling newhelp.c]
[Linking bbsd]
Making all in daemon
[Compiling miscd.c]
[Linking miscd]
[Compiling newpop3.c]
[Linking newpop3d]
[Compiling station.c]
[Linking chatd]
[Compiling bbslogd.c]
bbslogd.c:130: warning: built-in function 'trunc' declared as non-function
[Linking bbslogd]
[Compiling bbssmsd.c]
[Linking bbssmsd]
Making all in local_utl
[Compiling poststat.c]
[Linking poststat]
[Compiling static.c]
[Linking static]
[Compiling usage.c]
[Linking usage]
[Compiling Xclean.c]
[Linking Xclean]
[Compiling Xhtml.c]
[Linking Xhtml]
[Compiling Bhtml.c]
[Linking Bhtml]
[Compiling refriend.c]
[Linking refriend]
[Compiling listonline.c]
[Linking listonline]
[Compiling showBM.c]
[Linking showBM]
[Compiling idx0Ann.c]
[Linking idx0Ann]
[Compiling lazybm.c]
[Linking lazybm]
[Compiling fixdir.c]
[Linking fixdir]
[Compiling autoundeny.c]
[Linking autoundeny]
[Compiling login.c]
[Linking login]
[Compiling statBM.c]
[Linking statBM]
[Compiling gen_title.c]
[Linking gen_title]
[Compiling resetMailTotal.c]
[Linking resetMailTotal]
[Compiling cnv_brdflag.c]
[Linking cnv_brdflag]
[Compiling find_rm_lost.c]
[Linking find_rm_lost]
[Compiling cnv_bh.c]
[Linking cnv_bh]
[Compiling statguy.c]
[Linking statguy]
[Compiling cnv_bh2.c]
[Linking cnv_bh2]
[Compiling autoclear.c]
[Linking autoclear]
[Compiling ch_brdflag.c]
[Linking ch_brdflag]
[Compiling statkiller.c]
[Linking statkiller]
[Compiling showipdeny.c]
[Linking showipdeny]
[Compiling convpass356.c]
[Linking convpass356]
[Compiling scanIP.c]
[Linking scanIP]
[Compiling scanMODE.c]
[Linking scanMODE]
[Compiling listMODE.c]
[Linking listMODE]
[Compiling cnv_register.c]
[Linking cnv_register]
[Compiling calc_effsize.c]
[Linking calc_effsize]
[Compiling smth_usage.c]
[Linking smth_usage]
[Compiling change_tmpl.c]
[Linking change_tmpl]
[Compiling mailall.c]
[Linking mailall]
[Compiling settoptitle.c]
[Linking settoptitle]
[Compiling genhot.c]
genhot.c: In function `gen_commend_xml':
genhot.c:62: warning: assignment discards qualifiers from pointer target type
[Linking genhot]
[Compiling bonlinelog.c]
[Linking bonlinelog]
[Compiling uonlinelog.c]
[Linking uonlinelog]
[Compiling dayuserlog.c]
[Linking dayuserlog]
[Compiling alluserlog.c]
[Linking alluserlog]
[Compiling cnv_passwd.c]
[Linking cnv_passwd]
[Compiling strip_fh.c]
[Linking strip_fh]
[Compiling gennewboard.c]
gennewboard.c: In function `gen_newboards_xml':
gennewboard.c:123: warning: passing arg 1 of `load_boards2' from incompatible pointer type
gennewboard.c:123: warning: passing arg 8 of `load_boards2' from incompatible pointer type
[Linking gennewboard]
[Compiling recalc_signum.c]
[Linking recalc_signum]
[Compiling find_lost_user.c]
[Linking find_lost_user]
[Compiling outdaybm.c]
[Linking outdaybm]
[Compiling cnv_brddir.c]
[Linking cnv_brddir]
Making all in mail2bbs
[Linking mail2bbs]
[Linking qmail2bbs]
Making all in service
Making all in pip
[Compiling pip_file.c]
[Compiling pip_menu.c]
[Compiling pip_practice.c]
[Compiling pip_basic.c]
[Compiling pip_for_fb.c]
[Compiling pip_other.c]
[Compiling pip_special.c]
[Compiling pip_ending.c]
[Compiling pip_job.c]
[Compiling pip_pic.c]
[Compiling pip_store.c]
[Compiling pip_fight.c]
[Compiling pip_main.c]
[Compiling pip_play.c]
[Compiling pip_system.c]
[Linking libpip.la]
Making all in worker
[Compiling maingame.c]
[Compiling screens.c]
[Compiling gamedata.c]
[Compiling gamedraw.c]
[Compiling gameinit.c]
[Compiling gameplay.c]
[Compiling gametty.c]
[Linking libworker.la]
Making all in personaldns
[Linking nsupdated]
[Compiling friendtest.c]
[Linking libfriendtest.la]
[Compiling bbsnet.c]
[Compiling tcplib.c]
[Linking libbbsnet.la]
[Compiling pandora.c]
[Linking libpandora.la]
[Compiling dict.c]
[Linking libdict.la]
[Compiling quiz.c]
[Linking libquiz.la]
[Compiling killer.c]
[Linking libkiller.la]
[Compiling calendar.c]
[Linking libcalendar.la]
[Compiling calc.c]
[Linking libcalc.la]
[Compiling ansieditor.c]
[Linking libansieditor.la]
[Compiling iquery.c]
[Linking libiquery.la]
Making all in contrib
Making all in fb2k2smth
[Linking chlevel]
[Linking convboards]
convpasswd.c: In function `convert_userec':
convpasswd.c:96: warning: integer constant is too large for "long" type
[Linking convpasswd]
[Linking calc_effsize]
[Linking conv_pc4fb2k]
[Linking gen_title]
[Linking strip_fh]
[Linking chfavbrd]
Making all in smth11to12
[Linking cnv_bh_3]
[Linking cnv_passwd_define2]
[Linking cnv_passwd_wform]
[Linking strip_fh]
Making all in smth2wforum
[Linking convpasswd]
Making all in innbbsd
conflicts: 6 shift/reduce
parsdate.y:685: warning: static declaration of 'date_lex' follows non-static declaration
parsdate.c:971: warning: previous implicit declaration of 'date_lex' was here
[Linking innbbsd]
In file included from makedbz.c:2:
bbslib.h:89: warning: "struct sockaddr_in" declared inside parameter list
bbslib.h:89: warning: its scope is only this definition or declaration, which is probably not what you want
[Linking makedbz]
[Linking mkhistory]
[Linking dbzserver]
[Linking bbsnnrp]
[Linking ctlinnbbsd]
[Linking dbz_query_sample]
parsdate.y:685: warning: static declaration of 'date_lex' follows non-static declaration
parsdate.c:971: warning: previous implicit declaration of 'date_lex' was here
[Linking bbslink]
make install all ok。
新问题:同一台机器上同一个用户安装了两套smthbbs,分别为tian/bbs tian/bbs2
如何处理共享内存的关系。
重新启动
su-2.05b$ ./miscd daemon [重复了]
su-2.05b$ ./bbslogd [也重复了]
su-2.05b$ ./bbsd -p 1234 [只需要启动这个?]
然后我登陆进入时显示的是2323端口上的用户数,处理过这样的么? ;D
su-2.05b$ ps -auxw|grep bbslogd
tian 403 0.0 0.2 2072 1068 ?? I 9:24AM 0:00.00 /home/tian/bbs/bin/bbslogd
tian 36201 0.0 0.2 2020 1136 ?? I 11:58AM 0:00.00 ./bbslogd
su-2.05b$ ps -auxw|grep miscd
tian 392 0.0 1.3 8096 6988 ?? Ss 9:24AM 0:00.40 /home/tian/bbs/bin/miscd daemon
tian 395 0.0 1.3 8096 6988 ?? I 9:24AM 0:00.00 /home/tian/bbs/bin/miscd daemon
tian 396 0.0 1.3 8096 6988 ?? I 9:24AM 0:00.00 /home/tian/bbs/bin/miscd daemon
tian 397 0.0 1.3 8096 6988 ?? I 9:24AM 0:00.00 /home/tian/bbs/bin/miscd daemon
tian 36193 0.0 0.2 7936 1276 ?? Ss 11:58AM 0:00.02 ./miscd daemon
tian 36194 0.0 0.2 7936 1276 ?? I 11:58AM 0:00.00 ./miscd daemon
tian 36198 0.0 0.2 7936 1276 ?? I 11:58AM 0:00.00 ./miscd daemon
su-2.05b$ ps -auxw|grep bbsd
tian 406 0.0 0.2 2368 1200 ?? I 9:24AM 0:00.00 /home/tian/bbs/bin/
bbsd -p 2323
tian 648 0.0 0.5 23348 2592 ?? Is 9:44AM 0:00.51 bbsd:SYSOP (bbsd)
tian 709 0.0 3.2 23248 16600 ?? Is 9:58AM 0:00.09 bbsd:SYSOP (bbsd)
tian 36204 0.0 0.3 2300 1736 ?? I 11:58AM 0:00.00 ./bbsd -p 1234
tian 36207 0.0 3.2 23084 16500 ?? Ss 11:59AM 0:00.07 bbsd:SYSOP (bbsd)
: 另外也可以直接运行 ./config.guess 看看输出是什么。
: 【 在 tian.bbs@bbs.tju.edu.cn.no.spam (庄子·逍遥游) 的大作中提到: 】
: : 英明阿!
: : 去掉所有ports安装的,安装了如上说的3个,make非常流畅,GNU据说是有专业Maintainer
: : 来制作Makefile的。;)
: : su-2.05b$ aclocal;autoheader ;automake -a;autoconf
: : configure.ac:6: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
: : configure.ac: installing `./install-sh'
: : configure.ac: installing `./mkinstalldirs'
: : configure.ac: installing `./missing'
: : bbs2www/lib/Makefile.am: installing `./depcomp'
: : 只有一个warning了
: : ...................
--
FROM bbs.tju.edu.cn