- 主题:[请问ytht]cygwin编译出错
注释掉那两行就行了 src/main.c出错的那两行
//#include <mcheck.h>
和
//mtrace();
【 在 marly@smth.org-SPAM.no (木目) 的大作中提到: 】
: 出错信息如下:
: main.c:27:20: mcheck.h: No such file or directorymain.c: In function `main':main.c:958: warning: implicit declaration of function `mtrace'make[1]: *** [main.o] Error 1make: *** [all] Error 2
: 这个是怎么回事。我是今天cvs的代码。
: 望指教。谢谢
--
FROM 211.155.251.247
debug malloc
监测内存泄漏
调试代码 去掉不影响
【 在 linyingcun (木目) 的大作中提到: 】
: 这两个去掉没有影响?
: 本来是用来做什么的?
: 【 在 dinger (test) 的大作中提到: 】
: : 注释掉那两行就行了 src/main.c出错的那两行
: : //#include <mcheck.h>
: : 和
: : //mtrace();
: : ...................
: ...................
--
FROM 211.155.251.247
cvs up
已经改了刚刚
【 在 linyingcun (木目) 的大作中提到: 】
: o .x谢谢了。
: 我是cvs的代码里面他们还没有把它注释:)
: 【 在 dinger (test) 的大作中提到: 】
: : debug malloc
: : 监测内存泄漏
: : 调试代码 去掉不影响
--
FROM 211.155.251.247
shminit了么?
【 在 linyingcun (木目) 的大作中提到: 】
: 编译通过,安装好了。
: 但是我telnet 127.0.0.1
: 闪一下就没有了。与主机断开连接
: 【 在 dinger (test) 的大作中提到: 】
: : cvs up
: : 已经改了刚刚
--
FROM 211.155.251.247
shminit时 有没提示every thing is just fine
你说闪一下 是连上了么 有没出现load 0 0 0 没的话看看防火墙
【 在 linyingcun (木目) 的大作中提到: 】
: 恩。 运行了。
: 【 在 dinger (test) 的大作中提到: 】
: : shminit了么?
--
FROM 211.155.251.247
看能不能找到/home/bbs/.PASSWDS
没有就touch一个出来
【 在 linyingcun (木目) 的大作中提到: 】
: 重新来一次
: ipc-daemon2&
: 然后:/home/bbs/bin/shminit
: 出现
: clear old shm...ok
: creating bcache shm...ok
: creating ucachehash shm...ok
: creating utmp shm ...ok
: ...................
--
FROM 211.155.251.247
看有没/home/bbs/uhashgen.dat 似乎问题出在这里
你是在/home/bbs/bbssrc目录make install来安装的么?
【 在 marly@smth.org-SPAM.no (木目) 的大作中提到: 】
: 已经touch了一个,
: 但是shminit时还是出现:
: clear old shm...ok
: creating bcache shm...ok
: creating ucachehash shm...ok
: creating utmp shm ...ok
: creating uindex shm...ok
: check passwd file size...ok
: ...................
--
FROM 211.155.251.247
看看有没/home/bbs/etc/menu.ini 如果有 删掉/home/bbs/sysconf.img2试试
这个menu.ini也应该是在/home/bbs/bbssrc目录make install的时候生成的
如果没有的话
从/home/bbs/bbssrc/bbshome/etc目录复制过来一个menu.ini到/home/bbs/etc
另外 如果你没有在/home/bbs/bbssrc目录make install过的话 可能还有缺少别的东西的
【 在 marly@smth.org-SPAM.no (木目) 的大作中提到: 】
: 好了。我现在安装成功了。
: 也注册了SYSOP和guest
: 但是我登陆进去不了啊?
: 看不到系统菜单就到下站了啊?
: 不知道怎么回事啊?是不是文件属性问题,我看了没有什么问题,全部有可读写属主
: 也是bbs用户啊~!
: 望指教是什么原因,谢谢~!
: ...................
--
FROM 211.155.251.247
【 在 marly@smth.org-SPAM.no (木目) 的大作中提到: 】
: 恩.哪个在/home/bbs/etc/ 下面 munu.ini当然是有的~!
: 那我
: 【 在 dinger.bbs@ytht.net (test) 的大作中提到: 】
: : 看看有没/home/bbs/etc/menu.ini 如果有 删掉/home/bbs/sysconf.img2试试
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: : 这个menu.ini也应该是在/home/bbs/bbssrc目录make install的时候生成的
: ...................
--
FROM 211.155.251.247
你的web做好了么?
【 在 earplugs (刘忙) 的大作中提到: 】
: 会不会是没有运行这个命令
: $ /home/bbs/bin/bbsd
: 我好像没有看到你运行这个命令
: 【 在 dinger 的大作中提到: 】
: : 看有没/home/bbs/uhashgen.dat 似乎问题出在这里
: : 你是在/home/bbs/bbssrc目录make install来安装的么?
: : 【 在 marly@smth.org-SPAM.no (木目) 的大作中提到: 】
: ...................
--
FROM 211.155.251.247