- 主题:紧急求救,关于编译ytht!!!!!!!!!
- 你安装了cygwinipc库没有啊?
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : 我的系统是:winxp+cygwin
 : 按照YTHT BBS在Cygwin环境安装手册进行编译,在进行到:
 : Telnet部分的安装
 : ================
 : 本地实用工具的安装
 : ==================
 : $ cd /home/bbs/bbssrc/local_utl
 : $ make              进行这一步时出现错误:
 : ...................
 --
 FROM 220.249.10.10
 
- 那你把输入输出多贴出来
 我看看
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : 装了!并且我把shm.h.和ipc.h拷贝到ythtlib目录下重新编译,还是同样的错误!
 : 【 在 lepton 的大作中提到: 】
 : : 你安装了cygwinipc库没有啊?
 : : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : (以下引言省略...)
 --
 FROM 220.249.10.10
 
- faint copy 文本啊
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : #attach error.jpg
 : 【 在 lepton 的大作中提到: 】
 : : 那你把输入输出多贴出来
 : : 我看看
 : : 【 在 ASHOW (阿兽) 的大作中提到: 】
 --
 FROM 220.249.10.10
 
- make &> errlog
 把errlog贴出来
 【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
 : faint copy 文本啊
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : #attach error.jpg
 --
 FROM 220.249.10.10
 
- faint 你能不能不用附件啊
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : 【 在 lepton 的大作中提到: 】
 : : make &> errlog
 : : 把errlog贴出来
 : : 【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
 --
 FROM 220.249.10.10
 
- 有一个编译参数
 应该是-lcgypic之类的
 应该是configure时候自动生成的
 我很奇怪为什么没有生成...
 你configure没有?>
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : sorry!!!!
 : 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':
 : ...................
 --
 FROM 220.249.10.10
 
- 1. 我怀疑你cygwin版本不足够高
 2. 你把configure的输出全部贴出来
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : 在此之前,我编译
 : Telnet部分的安装
 : ================
 : $ cd /home/bbs/bbssrc
 : $ ./makedist.sh
 : $ ./configure --with-defaults
 : (如果需要评价文章的功能,请使用
 :     ./configure --with-defaults --with-mysql,mysql需要另外安装)
 : ...................
 --
 FROM 220.249.10.10
 
- 奇怪 我的cygwin可以找到flock啊
 你cygwin版本最新吗?
 
 【 在 ASHOW (阿兽) 的大作中提到: 】
 :  ...........................
 :  ... testing C Compiler  ...
 :  ...........................
 : checking for gcc... gcc
 : checking for C compiler default output... a.exe
 : checking whether the C compiler works... yes
 : checking whether we are cross compiling... no
 : checking for suffix of executables... .exe
 : ...................
 --
 FROM 220.249.10.10
 
- 你configure时候的输出:
 
 checking for flock... no
 
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : 我也可以找到flock.只不过认为它里面有几个没有定义的变量:EAGAIN; errno;EACCES; EWOULDBLOCK;EINVAL;
 : 我打开ythtlib/compatible.c看了一下确实没有定义阿,
 : 怎么看cygwin的版本?
 : 我的好像是 1.5.x把!
 : 【 在 lepton 的大作中提到: 】
 : : 奇怪 我的cygwin可以找到flock啊
 : : 你cygwin版本最新吗?
 : : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : ...................
 --
 FROM 220.249.10.10
 
- 我觉得是 因为我的cygwin会输出
 checking for flock ... yes
 
 【 在 ASHOW (阿兽) 的大作中提到: 】
 : 这是什么问题?如何解决阿?是我的cygwin版本不够????
 : 【 在 lepton 的大作中提到: 】
 : : 你configure时候的输出:
 : : checking for flock... no
 : : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : (以下引言省略...)
 --
 FROM 220.249.10.10