- 主题:紧急求救,关于编译ytht!!!!!!!!!
我觉得应该不是cygwin的问题,而是路径的问题。
【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
: 给我shell吧
: 你启动cygwin环境的sshd
: 给我一个帐号 密码
: 【 在 ASHOW (阿兽) 的大作中提到: 】
: : 那就是编译的时候找不到头文件了,我也是很奇怪,我按照安装说明
: : 一步一步下来的,应该不会有这种问题啊!
--
FROM 218.197.192.162
吃霸王餐归来,接着找问题!
【 在 dinger 的大作中提到: 】
: 哦 他似乎说已经自己改了很多。。
: 【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
: : update 就可以了...
--
FROM 218.197.192.162
这是我在local_utl下面编译的错误结果
gcc -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENPTY -I../include -I../ythtlib -I../libythtbbs -g -DCYGWIN -o showuser showuser.c -L/home/bbs/bin -lythtbbs -lytht
/home/bbs/bin/libythtbbs.a(bbsinfo.o)(.text+0x13c): In function `initbbsinfo':
/home/bbs/bbssrc/libythtbbs/bbsinfo.c:47: undefined reference to `_shmdt'
/home/bbs/bin/libythtbbs.a(bbsinfo.o)(.text+0x146):/home/bbs/bbssrc/libythtbbs/bbsinfo.c:45: undefined reference to `_shmdt'
/home/bbs/bin/libythtbbs.a(bbsinfo.o)(.text+0x150):/home/bbs/bbssrc/libythtbbs/bbsinfo.c:43: undefined reference to `_shmdt'
/home/bbs/bin/libythtbbs.a(bbsinfo.o)(.text+0x15a):/home/bbs/bbssrc/libythtbbs/bbsinfo.c:41: undefined reference to `_shmdt'
/home/bbs/bin/libythtbbs.a(misc.o)(.text+0xa8): In function `init_newtracelogmsq':
/home/bbs/bbssrc/libythtbbs/misc.c:48: undefined reference to `_msgget'
/home/bbs/bin/libythtbbs.a(misc.o)(.text+0x1ba): In function `newtrace':
/home/bbs/bbssrc/libythtbbs/misc.c:87: undefined reference to `_msgsnd'
/home/bbs/bin/libytht.a(shmop.o)(.text+0x23): In function `try_get_shm':
/home/bbs/bbssrc/ythtlib/shmop.c:13: undefined reference to `_shmget'
collect2: ld returned 1 exit status
make: *** [showuser] Error 1
还是搞不定!!!!
【 在 dinger 的大作中提到: 】
: 哦 他似乎说已经自己改了很多。。
: 【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
: : update 就可以了...
--
FROM 218.197.192.162
什么意思?可以说的详细一点吗???
【 在 lepton 的大作中提到: 】
: 为什么没有 -lcygipc呢
: 【 在 ASHOW (阿兽) 的大作中提到: 】
: : 这是我在local_utl下面编译的错误结果
: : gcc -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENPTY -I../include -I../ythtlib -I../libythtbbs -g -DCYGWIN -o showuser showuser.c -L/home/bbs/bin -lythtbbs -lytht
: (以下引言省略...)
--
FROM 218.197.192.162
cygwin 1.5.5-1这个版本应该是可以的啊?
sjtu上的是什么版本?我的gcc是3.3.1-2,是不是应该用3.2版?
【 在 dinger 的大作中提到: 】
: cygcheck -svr 看下cygwin1.dll版本
: 用1.5.7或以上版本吧 呵呵
: 【 在 ASHOW (阿兽) 的大作中提到: 】
: : 什么意思?可以说的详细一点吗???
--
FROM 218.197.192.162
我用了glutton改的YTHTNTCVS11.21,把他的local_utl覆盖了我的local_utl,编译通过,就是生成bbspop3d错误,我也没管,就把生成的exe cp到了bin下面,然后执行
$ ipc-daemon2&
[1] 216
$ /home/bbs/bin/shminit
bash:/home/bbs/bin/shminit :no such file or directory
【 在 dinger 的大作中提到: 】
: 1.5.7以上(好像是从这个版以上吧?)就可以用gcc3.3
: sjtu是什么版本不太清楚
: ipc这个我记得从1.5.7(好像是?)开始 采用bad system call的方式解决ipc问题
: 如果一定要用1.5.5的话
: 你把local_utl目录Makefile里面$(BBSLIB)后面加上$(LIBS)试试看把
: (以下引言省略...)
--
FROM 218.197.192.162
我运行bbsd弹出对话框找不到cygcygipc-2.dll,怎么班?
【 在 tnds 的大作中提到: 】
: 那个nt cvs我也编译过,没用shminit,用crtshm,然后用bbsd就成功启动了。
: 【 在 ASHOW (阿兽) 的大作中提到: 】
: : 我用了glutton改的YTHTNTCVS11.21,把他的local_utl覆盖了我的local_utl,编译通过,就是生成bbspop3d错误,我也没管,就把生成的exe cp到了bin下面,然后执行
: : $ ipc-daemon2&
: (以下引言省略...)
--
FROM 218.197.192.162
刚连上服务器就短线了,提示please init shm first
【 在 tnds 的大作中提到: 】
: 先运行ipc-daemon2&
: 从cygwin里运行或者把cyg目录下的cygcygipc-2.dll和cygwin1.dll复制到windows下的system32目录里。
: 【 在 ASHOW (阿兽) 的大作中提到: 】
: : 我运行bbsd弹出对话框找不到cygcygipc-2.dll,怎么班?
--
FROM 218.197.192.162