- 主题:紧急求救,关于编译ytht!!!!!!!!!
- #attach error.jpg
 
 【 在 lepton 的大作中提到: 】
 : 那你把输入输出多贴出来
 : 我看看
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : 装了!并且我把shm.h.和ipc.h拷贝到ythtlib目录下重新编译,还是同样的错误!
 这里本来有一个附件 error.JPG
 但是目前CN BBS转信系统不转带有较大附件的信件,所以 YTHT BBS 去掉了.
 --
 FROM 218.197.192.162
 
- 我觉得好像是 编译程序的时候找不到头文件
 【 在 ASHOW 的大作中提到: 】
 : #attach error.jpg
 : 【 在 lepton 的大作中提到: 】
 : : 那你把输入输出多贴出来
 : : 我看看
 --
 FROM 218.197.192.162
 
- 【 在 lepton 的大作中提到: 】
 : make &> errlog
 : 把errlog贴出来
 : 【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
 : : faint copy 文本啊
 这里本来有一个附件 errlog
 但是目前CN BBS转信系统不转带有较大附件的信件,所以 YTHT BBS 去掉了.
 --
 FROM 218.197.192.162
 
- 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':
 /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+0x20): In function `try_get_shm':
 /home/bbs/bbssrc/ythtlib/shmop.c:11: undefined reference to `_shmget'
 /home/bbs/bin/libytht.a(shmop.o)(.text+0x3e):/home/bbs/bbssrc/ythtlib/shmop.c:14: undefined reference to `_shmat'
 collect2: ld returned 1 exit status
 make: *** [showuser] Error 1
 
 【 在 lepton 的大作中提到: 】
 : faint 你能不能不用附件啊
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 --
 FROM 218.197.192.162
 
- 就是这些了!
 
 
 【 在 yuhuan 的大作中提到: 】
 : 肯定不止这些啊,都贴上来
 : 【 在 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
 : (以下引言省略...)
 --
 FROM 218.197.192.162
 
- 我也可以找到flock.只不过认为它里面有几个没有定义的变量:EAGAIN; errno;EACCES; EWOULDBLOCK;EINVAL;
 
 我打开ythtlib/compatible.c看了一下确实没有定义阿,
 
 怎么看cygwin的版本?
 我的好像是 1.5.x把!
 
 【 在 lepton 的大作中提到: 】
 : 奇怪 我的cygwin可以找到flock啊
 : 你cygwin版本最新吗?
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : :  ...........................
 : :  ... testing C Compiler  ...
 : :  ...........................
 : : checking for gcc... gcc
 : (以下引言省略...)
 --
 FROM 218.197.192.162
 
- 这是什么问题?如何解决阿?是我的cygwin版本不够????
 
 【 在 lepton 的大作中提到: 】
 : 你configure时候的输出:
 : checking for flock... no
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : 我也可以找到flock.只不过认为它里面有几个没有定义的变量:EAGAIN; errno;EACCES; EWOULDBLOCK;EINVAL;
 : : 我打开ythtlib/compatible.c看了一下确实没有定义阿,
 : (以下引言省略...)
 --
 FROM 218.197.192.162
 
- 你可以把你用的cygwin给我传过来吗?
 ftp://1:1@218.197.192.163/
 
 【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
 : 我觉得是 因为我的cygwin会输出
 : checking for flock ... yes
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : 这是什么问题?如何解决阿?是我的cygwin版本不够????
 --
 FROM 218.197.192.162
 
- 那就是编译的时候找不到头文件了,我也是很奇怪,我按照安装说明
 一步一步下来的,应该不会有这种问题啊!
 
 【 在 dinger (test) 的大作中提到: 】
 : flock在compatible.c里面有
 : 这些没有的应该在<errno.h>或者<sys/errno.h>里面吧?
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : 我也可以找到flock.只不过认为它里面有几个没有定义的变量:EAGAIN; errno;EACCES; EWOULDBLOCK;EINVAL;
 : : 我打开ythtlib/compatible.c看了一下确实没有定义阿,
 : : 怎么看cygwin的版本?
 : : 我的好像是 1.5.x把!
 : : ...................
 : ...................
 --
 FROM 218.197.192.162
 
- 有啊!
 是路径的问题吗?
 我的 compatible.c里是这样定义的
 #define <sys/errno.h>
 我的 compatible在 home/bbs/bbssrc/ythtlib
 
 【 在 dinger (test) 的大作中提到: 】
 : 你先看看有没/usr/include/errno.h
 : /usr/include/sys/errno.h
 : 【 在 ASHOW (阿兽) 的大作中提到: 】
 : : 这是什么问题?如何解决阿?是我的cygwin版本不够????
 --
 FROM 218.197.192.162