- 主题:欢迎测试 smthbbs-1.2.2 cvs 版本
最简单的办法是安装
libtool-1.4.3
autoconf-2.57
automake-1.6.3
【 在 tian.bbs@bbs.tju.edu.cn.no.spam (庄子·逍遥游) 的大作中提到: 】
: f~ core 英明,带领大家使用autoconf,automake,适用于多平台。;)
: 后面还有错误。看看如何调试。;)
: bash-2.05b# libtool
: libtool13 libtool15 libtoolize13 libtoolize15
: bash-2.05b# autoconf
: autoconf autoconf253
: bash-2.05b# automake15
: su-2.05b$ cd smth_bbs
: su-2.05b$ ls
: AUTHORS compile libsystem
: ...................
--
FROM 220.197.185.53
su-2.05b$ libtoolize15 -c --force
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
su-2.05b$ aclocal18;autoheader259;automake18 -a;autoconf259
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GT
我上面已经作了的.;-(
【 在 flyriver@bbs.happynet.org-SPAM.no (江~~坏坏大猪) 的大作中提到: 】
: 用这个命令:
: libtoolize15 -c --force; aclocal18; autoheader259; automake18 -a; autoconf259
: 【 在 tian.bbs@bbs.tju.edu.cn.no.spam (庄子·逍遥游) 的大作中提到: 】
: : f~ core 英明,带领大家使用autoconf,automake,适用于多平台。;)
: : 后面还有错误。看看如何调试。;)
: : bash-2.05b# libtool
: : libtool13 libtool15 libtoolize13 libtoolize15
: : bash-2.05b# autoconf
: : autoconf autoconf253
: ...................
--
FROM bbs.tju.edu.cn
有了configure了,try一下
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
./configure: line 14043: AC_PROG_LIBTOOL: command not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for bison... bison -y
checking for gzgets in -lz... yes
checking for pthread_create in -lpthread... yes
checking for sendmail... /usr/sbin/sendmail
checking OpenSSL... no
checking for vfork in -lbsd... no
checking for dlopen in -ldl... no
checking for lt_dlopen in -lltdl... no
configure: creating ./config.status
config.status: creating innbbsd/Makefile
config.status: error: cannot find input file: innbbsd/Makefile.in
su-2.05b$ cd innbbsd/
【 在 tian (庄子·逍遥游) 的大作中提到: 】
: su-2.05b$ libtoolize15 -c --force
: Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
: You should update your `aclocal.m4' by running aclocal.
: su-2.05b$ aclocal18;autoheader259;automake18 -a;autoconf259
: /usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GT
: 我上面已经作了的.;-(
: 【 在 flyriver@bbs.happynet.org-SPAM.no (江~~坏坏大猪) 的大作中提到: 】
: : 用这个命令:
: : libtoolize15 -c --force; aclocal18; autoheader259; automake18 -a; autoconf259
: ...................
--
FROM bbs.tju.edu.cn
怎么还有 AC_PROG_RANLIB 啊,这个已经被我干掉了的。
另外 FreeBSD ports 安装的 auto 系列工具都不是很合适,例如在我的 5.3-STABLE
上 libtool15 安装的就有问题,无法和 automake19 及 autoconf259 配合,得手工
调整一下。
我是这样做得,把 /usr/local/share/aclocal 里面的 libtool15.m4 和 ltdl15.m4
复制到 /usr/local/share/aclocal19 目录。如果你 automake 是 1.8 的版本,
那么就把 libtool15.m4 和 ltdl15.m4 复制到 /usr/local/share/aclocal18 里面,
当然如果 /usr/local/share/aclocal18 里面已经有那两个文件了,就没问题了。
我通常都会把 FreeBSD 上的 auto 系列工具直接 pkg_delete 掉,然后安装上我在
前文说的那三个版本的。
【 在 tian.bbs@bbs.tju.edu.cn.no.spam (庄子·逍遥游) 的大作中提到: 】
: su-2.05b$ libtoolize15 -c --force
: Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
: You should update your `aclocal.m4' by running aclocal.
: su-2.05b$ aclocal18;autoheader259;automake18 -a;autoconf259
: /usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GT
: 我上面已经作了的.;-(
--
FROM 220.197.185.53
【 在 tian.bbs@bbs.tju.edu.cn.no.spam (庄子·逍遥游) 的大作中提到: 】
: 有了configure了,try一下
: checking for gcc option to accept ANSI C... (cached) none needed
: checking dependency style of gcc... (cached) gcc3
: ./configure: line 14043: AC_PROG_LIBTOOL: command not found
libtool 还是有问题。
另外把 autom4te.cache/ 目录删掉,再运行 aclocal 等命令好一点。
--
FROM 220.197.185.53
英明阿!
去掉所有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了
configure顺利
su-2.05b$ make
make -s all-recursive
Making all in libsystem
[Compiling f_cat.c]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -DGENERIC -c f_cat.c -MT f_cat.lo -MD -MP -MF .deps/f_cat.TPlo -o f_cat.o
In file included from ../src/bbs.h:44,
from ../src/system.h:3,
from f_cat.c:2:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
*** Error code 1
Stop in /usr/home/tian/SMTH/smth_bbs/libsystem.
*** Error code 1
Stop in /usr/home/tian/SMTH/smth_bbs.
*** Error code 1
Stop in /usr/home/tian/SMTH/smth_bbs.
【 在 flyriver@bbs.happynet.org-SPAM.no (江~~坏坏大猪) 的大作中提到: 】
: 怎么还有 AC_PROG_RANLIB 啊,这个已经被我干掉了的。
: 另外 FreeBSD ports 安装的 auto 系列工具都不是很合适,例如在我的 5.3-STABLE
: 上 libtool15 安装的就有问题,无法和 automake19 及 autoconf259 配合,得手工
: 调整一下。
: 我是这样做得,把 /usr/local/share/aclocal 里面的 libtool15.m4 和 ltdl15.m4
: 复制到 /usr/local/share/aclocal19 目录。如果你 automake 是 1.8 的版本,
: 那么就把 libtool15.m4 和 ltdl15.m4 复制到 /usr/local/share/aclocal18 里面,
: 当然如果 /usr/local/share/aclocal18 里面已经有那两个文件了,就没问题了。
: ...................
--
FROM bbs.tju.edu.cn
有两个问题:
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 都没有的。
2. configure 时看看最前面输出的 build,host 和 target 都是什么,应该是
i386-unknown-freebsd5.3 这样的字符串。
另外也可以直接运行 ./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 220.197.185.53
【 在 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
跑两个 bbs 的问题解决起来比较麻烦,需要改 shm key,你如果有兴趣就改改吧 :)
【 在 tian.bbs@bbs.tju.edu.cn.no.spam (庄子·逍遥游) 的大作中提到: 】
: 果然。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'
: 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
: ...................
--
FROM 166.111.160.80
对不起,问几个土老帽的问题:
1、在哪里可以下到5.3-stable?
2、怎么我找不到aclocal这个port。
我所去的ftp是清华的。
【 在 flyriver@bbs.happynet.org-SPAM.no (江~~坏坏大猪) 的大作中提到: 】
: thx,用 devel 测出了一个问题,我一直都用的 fb2k-v2。
: 不过你编译时怎么还有 fileglue 的错误提示?是不是没有更新到最新的代码?
: 我的系统是 5.3-STABLE。
: ...................
--
FROM 202.121.199.*