Hi Albert When you say add to the appropriate place, do I just add it to anywhere in the file (ie at the end of the file), or in a specific section?
This is what it looks like at the moment: 1 #ifndef __ASM_STUB_UNISTD_H__ 2 # define __ASM_STUB_UNISTD_H__ 3 # if defined __x86_64__ 4 # include <asm-x86_64/unistd.h> 5 # endif 6 # if defined __i386__ 7 # include <asm-i386/unistd.h> 8 # endif 9 #endif I'm using an AMD64, do I include it in the 64 section? I've included some line numbers so that you can be specific with a line number if need be. Thanks! On 26/12/05, 杨帆 <[EMAIL PROTECTED]> wrote: > Hello, Jonathan Chong! > > You can run this command: > $ nm /usr/src/linux/vmlinux | grep "epoll" > > If it print something like: > c014f748 T sys_epoll_create > c014f7a8 T sys_epoll_ctl > c014f964 T sys_epoll_wait > then your linux has the epoll implementation. > > Edit your /usr/include/asm/unistd.h > it is the all systemcall's NAME-NUMBER table. > > add the following 3 lines to the appropriate place > #define __NR_epoll_create 254 > #define __NR_epoll_ctl 255 > #define __NR_epoll_wait 256 > > ======= 2005-12-26 10:26:54:======= > > >Hi Albert > > > >This is what my unistd.h file is at present: > > > >#ifndef __ASM_STUB_UNISTD_H__ > ># define __ASM_STUB_UNISTD_H__ > ># if defined __x86_64__ > ># include <asm-x86_64/unistd.h> > ># endif > ># if defined __i386__ > ># include <asm-i386/unistd.h> > ># endif > >#endif > > > >I'm running on an AMD64, I presume I include those lines to make the > >file look like this? > > > >#ifndef __ASM_STUB_UNISTD_H__ > ># define __ASM_STUB_UNISTD_H__ > ># if defined __x86_64__ > ># include <asm-x86_64/unistd.h> > > # define __NR_epoll_create 254 > > # define __NR_epoll_ctl 255 > > # define __NR_epoll_wait 256 > ># endif > ># if defined __i386__ > ># include <asm-i386/unistd.h> > ># endif > >#endif > > > >Thanks for all your help. > > > > > >On 26/12/05, 杨帆 <[EMAIL PROTECTED]> wrote: > >> Hello, Jonathan Chong! > >> > >> Make sure your Linux box implement the systemcall of epoll_XXXs, and > >> make sure your /usr/include/asm/unistd.h include the follow lines: > >> #define __NR_epoll_create 254 > >> #define __NR_epoll_ctl 255 > >> #define __NR_epoll_wait 256 > >> > >> Then, rerun the ./configure of libevent, things be ok. > >> > >> ======= 2005-12-26 09:30:34 ======= > >> > >> >Hello everyone > >> > > >> >I'm trying to use memcached but ran into problems. I think the problem > >> >may lie with libevent, and here's the output from make verify: > >> > > >> >cd ./test && make verify > >> >make[1]: Entering directory `/usr/local/src/libevent-1.1a/test' > >> >Running tests: > >> >KQUEUE > >> >Skipping test > >> >DEVPOLL > >> >Skipping test > >> >POLL > >> > test-eof: OKAY > >> > test-weof: OKAY > >> > test-time: OKAY > >> > regress: OKAY > >> >SELECT > >> > test-eof: OKAY > >> > test-weof: OKAY > >> > test-time: OKAY > >> > regress: OKAY > >> >RTSIG > >> >Skipping test > >> >EPOLL > >> > test-eof: [warn] epoll_wait: Function not implemented > >> >FAILED > >> > test-weof: [warn] epoll_wait: Function not implemented > >> >FAILED > >> > test-time: [warn] epoll_wait: Function not implemented > >> >FAILED > >> > regress: FAILED > >> >make[1]: Leaving directory `/usr/local/src/libevent-1.1a/test' > >> > > >> >My knowledge of Linux-based systems is patchy at best. Would > >> >appreciate it if someone could help me out with this issue, thanks. > >> > > >> >-- > >> >Jonathan Chong > >> > > >> >http://www.arsenal-now.com/ > >> >http://www.arsenal-mania.com/ > >> >http://www.ashburrn.com/ > >> >http://www.jonathan-chong.com/ > >> > > >> >_______________________________________________ > >> >Libevent-users mailing list > >> >[email protected] > >> >http://monkey.org/mailman/listinfo/libevent-users > >> > >> = = = = = = = = = = = = = = = = = = = = > >> > >> > >> albert > >> [EMAIL PROTECTED] > >> 2005-12-26 > >> > >> > > > > > >-- > >Jonathan Chong > > > >http://www.arsenal-now.com/ > >http://www.arsenal-mania.com/ > >http://www.ashburrn.com/ > >http://www.jonathan-chong.com/ > > = = = = = = = = = = = = = = = = = = = = > > > albert > [EMAIL PROTECTED] > 2005-12-26 > > -- Jonathan Chong http://www.arsenal-now.com/ http://www.arsenal-mania.com/ http://www.ashburrn.com/ http://www.jonathan-chong.com/
_______________________________________________ Libevent-users mailing list [email protected] http://monkey.org/mailman/listinfo/libevent-users
