免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1719 | 回复: 1
打印 上一主题 下一主题

这个epoll到底是怎么回事?怎么把它装上去?epoll_ctl() [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-31 13:45 |只看该作者 |倒序浏览
问个epoll.h的问题,明明在epoll.h 头文件中预定义了的,怎么就出错了?epoll_ctl()

make[2]: Entering directory `/tmp/BitStormLite-0.1b/src'
g++ `pkg-config --cflags gtk+-2.0` -g -O2 -o bitstormlite -lpthread `curl-config --libs` `pkg-config --libs gtk+-2.0` bdict.o BitSet.o blist.o BTTask.o EpollReactor.o LiteWindow.o main.o PeerAcceptor.o PeerLink.o PeerManager.o PieceRequest.o sha.o Socket.o Storage.o TCPTracker.o UDPTracker.o ThreadMutex.o TorrentFile.o TrackerManager.o
EpollReactor.o(.text+0x3fb): In function `CEpollReactor::addSocket(ISocket*)':
/tmp/BitStormLite-0.1b/src/EpollReactor.cpp:58: undefined reference to `epoll_ctl'
EpollReactor.o(.text+0x43f): In function `CEpollReactor::removeSocket(ISocket*)':
/tmp/BitStormLite-0.1b/src/EpollReactor.cpp:64: undefined reference to `epoll_ctl'
EpollReactor.o(.text+0x46: In function `CEpollReactor::start()':
/tmp/BitStormLite-0.1b/src/EpollReactor.cpp:73: undefined reference to `epoll_create'
EpollReactor.o(.text+0x571): In function `CEpollReactor::svc()':
/tmp/BitStormLite-0.1b/src/EpollReactor.cpp:114: undefined reference to `epoll_wait'
EpollReactor.o(.text+0x67b): In function `CEpollReactor::updateMask(ISocket*)':
/tmp/BitStormLite-0.1b/src/EpollReactor.cpp:190: undefined reference to `epoll_ctl'
collect2: ld returned 1 exit status
make[2]: *** [bitstormlite] Error 1
make[2]: Leaving directory `/tmp/BitStormLite-0.1b/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/BitStormLite-0.1b'


gcc -v
gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
Thread model: posix
gcc version 3.3.1


/lib/libc.so.6
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.1.
Compiled on a Linux 2.4.22 system on 2004-10-08.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.

cat /usr/include/linux/version.h

#define UTS_RELEASE "2.6.13.1"
#define LINUX_VERSION_CODE 132621
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << + (c))
shizhu@pink:/tmp/BitStormLite-0.1b$


系统 LFS 5.0 内核:2.6.13.1
各位大虾帮忙看看吧。或者说说替代办法

这个东西是不是一个独立的库,怎么找不到/usr/include/sys/epoll.h中定义的
epoll_ctl()等一系列函数实现的代码。。这个软件打死也装上不去!

论坛徽章:
0
2 [报告]
发表于 2005-10-31 17:39 |只看该作者
我顶。。期待大虾解救
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP