Advertisement
Guest User

Untitled

a guest
Dec 9th, 2011
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.27 KB | None | 0 0
  1. ^[bash-3.2$ perl Makefile.PL
  2.  
  3. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  4.  
  5. Welcome to EV configuration. If you are in a hurry, just press return hereand hope for the best. The defaults should usually do.Skip further questions and use defaults (y/n)? [y] y
  6. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  7.  
  8.  
  9. POSIX optionally offers support for a monotonic clock source. EV
  10. can take advantage of this clock source to detect time jumps more
  11. reliably. Unfortunately, some systems are bound to be broken, so you can
  12. disable this here: you can completely disable the detection and use of
  13. the monotonic clock by answering 'n' here. Support for this clock type
  14. will otherwise be autodetected at both compile- and runtime. (this setting
  15. currently affects the use of nanosleep over select as well).
  16.  
  17. Enable optional support for CLOCK_MONOTONIC (y/n)? [y] y
  18.  
  19. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  20.  
  21.  
  22. POSIX optionally offers support for a (potentially) high-resolution
  23. realtime clock interface. In a good implementation, using it is faster
  24. than the normal method of using gettimeofday. Unfortunately, this option
  25. is also bound to be broken on some systems, and current EV versions do not
  26. actually call gettimeofday very often, so it defaults to no.
  27.  
  28. Prefer clock_gettime (CLOCK_REALTIME) over gettimeofday (y/n)? [n] n
  29.  
  30. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  31.  
  32.  
  33. EV can use various backends with various portability issues. The select
  34. backend is the most portable and makes for a good fallback, but it can be
  35. limited to a low number of file descriptors and/or might not compile. If
  36. you have problems with compiling ev_select.c, you might try to play around
  37. with disabling it here, or forcing it to use the fd_set provided by your
  38. OS, via the next question. I highly recommend keeping it in.
  39.  
  40. Enable select backend (y/n)? [y] y
  41.  
  42. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  43.  
  44.  
  45. The select backend can operate in two modes. One uses the system-provided
  46. fd_set and is usually limited to 1024 file descriptors (64 on windows),
  47. the other requires your header files to define NFDBITS and declare a
  48. suitable fd_mask type. If you run into problems compiling ev_select.c, you
  49. can try forcing the use of the system fd_set here.
  50.  
  51. Force use of system fd_set for select backend (y/n)? [n] n
  52.  
  53. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  54.  
  55.  
  56. The second very portable backend is poll(2). It does not exist on windows
  57. and various versions of Mac OS X (and on the other versions it simply
  58. doesn't work), but works basically everywhere else. It is recommended to use
  59. the default here unless you run into compile problems in ev_poll.c.
  60.  
  61. Enable poll backend (y/n)? [y] y
  62.  
  63. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  64.  
  65.  
  66. Select and poll make it hard to write efficient servers, especially if the
  67. number of active connections is much lower than the watched ones. GNU/Linux
  68. systems have a more scalable method called "epoll", which EV can use. For
  69. this to work, both your kernel and glibc have to support epoll, but if you
  70. can compile it, the detection will be done at runtime, and EV will safely
  71. fall back to using select when epoll isn't available. If unsure, accept
  72. the default.
  73.  
  74. Enable epoll backend (y/n)? [n] n
  75.  
  76. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  77.  
  78.  
  79. Similarly to the epoll backend above, EV can take advantage of kqueue on
  80. many BSD systems. Support for kqueue will be detected at runtime, with a
  81. safe fallback to other methods when it cannot be used.
  82.  
  83. Note that kqueue is broken on most operating systems, so by default it
  84. won't be used on many platforms, but you can still create your own event
  85. loop with kqueue backend if you ask specifically for it.
  86.  
  87. Here is what we know:
  88.  
  89. NetBSD: partially working in at least 3.1 and later. Yeah! :)
  90. FreeBSD: broken on at least 6.2-STABLE, spotty in later versions,
  91. sockets *likely* work, ptys definitely don't.
  92. OpenBSD: reports indicate that it likely doesn't work
  93. (similar problems as on FreeBSD).
  94. OS X: completely, utterly broken on at least <= 10.6.
  95.  
  96. Enable kqueue backend (y/n)? [y] y
  97.  
  98. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  99.  
  100.  
  101. Similarly to the kqueue backend above, EV can take advantage of the
  102. solaris 10 event port interface. Support for event ports will be detected
  103. at runtime, with a safe fallback to other methods when it cannot be used.
  104.  
  105. Enable event port backend (y/n)? [n] n
  106.  
  107. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  108.  
  109.  
  110. EV needs the functions pthread_atfork and clock_gettime. On most systems
  111. you need some special libraries for this (such as -lrt and -lpthread). You
  112. can specify additional libraries to provide these calls (and any other
  113. required by EV) now, or accept the default.
  114.  
  115. Extra libraries for pthread_atfork and clock_gettime? [-lpthread -lrt ] -lpthread -lrt
  116.  
  117. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  118.  
  119.  
  120. A backend of a different kind is the Linux inotify(7) interface, which can
  121. be used to speed up (and reduce resource consumption) of stat watchers. If
  122. you have the include file and libc support for it, it is usually a good
  123. idea to enable it, as kernel availability is detected at runtime.
  124.  
  125. Enable inotify support (y/n)? [n] n
  126.  
  127. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  128.  
  129.  
  130. Another useful bit of functionality is the Linux eventfd, which is useful
  131. for faster signal handling (don't care) and intra-thread communications
  132. (more relevant). Kernel support for this will be probed at runtime, but
  133. your libc must contain the necessary wrapper. Glibc 2.7 and later should
  134. have this wrapper.
  135.  
  136. Enable linux eventfd support (y/n)? [n] n
  137.  
  138. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  139.  
  140.  
  141. Another sometimes useful bit of functionality is the Linux signalfd, which
  142. is useful for faster signal handling (don't care). Kernel support for
  143. this will be probed at runtime, but your libc must contain the necessary
  144. wrapper. Glibc 2.7 and later should have this wrapper.
  145.  
  146. Enable linux signalfd support (y/n)? [n] n
  147.  
  148. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  149.  
  150.  
  151. Very rarely, people want to tweak EV even more, e.g. to exclude
  152. or incldue certain watcher types or backends. Thisc na be done by adding
  153. extra -D options here, or via the EV_EXTRA_DEFS environment variable.
  154. Normal persons just press enter.
  155.  
  156. Any extra -D options? []
  157.  
  158. *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  159.  
  160.  
  161. Checking if your kit is complete...
  162. Looks good
  163. Note (probably harmless): No library found for -lrt
  164. Writing Makefile for EV
  165. Writing MYMETA.yml
  166. bash-3.2$ make test
  167. cp EV/MakeMaker.pm blib/lib/EV/MakeMaker.pm
  168. cp libev/ev.pod blib/lib/EV/libev.pod
  169. cp EV/EVAPI.h blib/lib/EV/EVAPI.h
  170. cp EV.pm blib/lib/EV.pm
  171. cp libev/ev.h blib/lib/EV/ev.h
  172. /Users/yaxar/perl5/perlbrew/perls/perl-5.14.2/bin/perl /Users/yaxar/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/ExtUtils/xsubpp -typemap /Users/yaxar/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/ExtUtils/typemap -typemap typemap EV.xs > EV.xsc && mv EV.xsc EV.c
  173. cc -c -Ilibev -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"4.03\" -DXS_VERSION=\"4.03\" "-I/Users/yaxar/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/darwin-2level/CORE" -DEV_USE_MONOTONIC=1 -DEV_USE_REALTIME=0 -DEV_USE_SELECT=1 -DEV_USE_POLL=1 -DEV_USE_EPOLL=0 -DEV_USE_KQUEUE=1 -DEV_USE_PORT=0 -DEV_USE_INOTIFY=0 -DEV_USE_EVENTFD=0 -DEV_USE_SIGNALFD=0 EV.c
  174. Running Mkbootstrap for EV ()
  175. chmod 644 EV.bs
  176. rm -f blib/arch/auto/EV/EV.bundle
  177. LD_RUN_PATH="/usr/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector EV.o -o blib/arch/auto/EV/EV.bundle \
  178. -lpthread \
  179.  
  180. chmod 755 blib/arch/auto/EV/EV.bundle
  181. cp EV.bs blib/arch/auto/EV/EV.bs
  182. chmod 644 blib/arch/auto/EV/EV.bs
  183. PERL_DL_NONLAZY=1 /Users/yaxar/perl5/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
  184. t/00_load.t ........ ok
  185. t/01_timer.t ....... ok
  186. t/02_once.t ........ Bareword "EV::TIMER" not allowed while "strict subs" in use at t/02_once.t line 19.
  187. Bareword "EV::WRITE" not allowed while "strict subs" in use at t/02_once.t line 27.
  188. Execution of t/02_once.t aborted due to compilation errors.
  189. t/02_once.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
  190. Failed 30/30 subtests
  191. t/03_keepalive.t ... ok
  192. t/04_stat.t ........ ok
  193. t/05_priority.t .... ok
  194. t/06_loop_once.t ... Bareword "EV::TIMER" not allowed while "strict subs" in use at t/06_loop_once.t line 19.
  195. Bareword "EV::WRITE" not allowed while "strict subs" in use at t/06_loop_once.t line 27.
  196. Execution of t/06_loop_once.t aborted due to compilation errors.
  197. t/06_loop_once.t ... Dubious, test returned 255 (wstat 65280, 0xff00)
  198. Failed 6/6 subtests
  199. t/07_loop_timer.t .. ok
  200. t/08_async.t ....... ok
  201. t/09_brandon.t ..... ok
  202. t/11_signal.t ...... 1/24 Argument "EV::RUN_ONCE" isn't numeric in subroutine entry at t/11_signal.t line 48.
  203. ^Cmake: *** [test_dynamic] Interrupt: 2
  204.  
  205. bash-3.2$
  206.  
  207.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement