Closed dragoonis closed 12 years ago
I tried this again, and got to just `make
, and seen this output
[root@ppi php-uv]# make /bin/sh /home/paul/code/php-uv/libtool --mode=link cc -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -o uv.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/paul/code/php-uv/modules php_uv.lo uv.lo http-parser/http_parser.lo libtool: link: cc -shared .libs/php_uv.o .libs/uv.o http-parser/.libs/http_parser.o -Wl,libuv/uv.a -Wl,-soname -Wl,uv.so -o .libs/uv.so /usr/bin/ld: libuv/uv.a(async.o): relocation R_X86_64_32 against
.rodata' can not be used when making a shared object; recompile with -fPIC
libuv/uv.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [uv.la] Error 1
`
for instance, can you add -fPIC
flag to libuv/Makeifle
and make
uv.a? probably this will fix your problem.
CPPFLAGS += -fPIC
btw, such a mess compile warnings o.O. what kind of linux box did you use?
I think adding -fPIC flag will work.
@dragoonis
I've tested this issue on CentOS6.2 64bit box.
also you need to add CPP_FLAGS += -fPIC
to libuv/Makefile
and make uv.a
I got it working after adding the -fPIC flag.
Thanks!
On Thu, Sep 6, 2012 at 5:34 PM, Shuhei Tanuma notifications@github.comwrote:
@dragoonis https://github.com/dragoonis
I've tested this issue on CentOS6.2 64bit box. also you need to add CPP_FLAGS += -fPIC to libuv/Makefile and make uv.a
— Reply to this email directly or view it on GitHubhttps://github.com/chobie/php-uv/issues/19#issuecomment-8338653.
Hey there,
I got to the
make && make install
part of your install docs and got the following output[root@ppi php-uv]# make && make install /bin/sh /home/paul/code/php-uv/libtool --mode=compile cc -I. -I/home/paul/code/php-uv -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -c /home/paul/code/php-uv/php_uv.c -o php_uv.lo libtool: compile: cc -I. -I/home/paul/code/php-uv -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -c /home/paul/code/php-uv/php_uv.c -fPIC -DPIC -o .libs/php_uv.o In file included from /home/paul/code/php-uv/php_uv.h:32, from /home/paul/code/php-uv/php_uv.c:20: /usr/include/php/main/php.h:269: warning: redundant redeclaration of ‘environ’ /usr/include/unistd.h:542: note: previous declaration of ‘environ’ was here /home/paul/code/php-uv/php_uv.c: In function ‘php_uv_get_current_stream’: /home/paul/code/php-uv/php_uv.c:2167: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2170: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2173: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2176: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2179: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2182: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2185: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2188: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2194: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2197: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2200: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2203: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2206: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2209: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘php_uv_socket_getname’: /home/paul/code/php-uv/php_uv.c:2459: warning: dereferencing type-punned pointer might break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2466: warning: dereferencing type-punned pointer might break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2473: warning: dereferencing type-punned pointer might break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2480: warning: dereferencing type-punned pointer might break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_timer_start’: /home/paul/code/php-uv/php_uv.c:3961: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_timer_stop’: /home/paul/code/php-uv/php_uv.c:3991: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_timer_again’: /home/paul/code/php-uv/php_uv.c:4018: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_idle_start’: /home/paul/code/php-uv/php_uv.c:4109: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_idle_stop’: /home/paul/code/php-uv/php_uv.c:4141: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_getaddrinfo’: /home/paul/code/php-uv/php_uv.c:4178: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:4181: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:4184: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:4187: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_udp_recv_start’: /home/paul/code/php-uv/php_uv.c:4295: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_udp_recv_stop’: /home/paul/code/php-uv/php_uv.c:4326: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_udp_set_membership’: /home/paul/code/php-uv/php_uv.c:4353: warning: cast to pointer from integer of different size /home/paul/code/php-uv/php_uv.c: In function ‘php_ares_gethostbyname_cb’: /home/paul/code/php-uv/php_uv.c:4780: warning: ISO C90 forbids mixed declarations and code /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_ares_init_options’: /home/paul/code/php-uv/php_uv.c:4828: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:4855: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:4858: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_spawn’: /home/paul/code/php-uv/php_uv.c:5140: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:5217: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:5221: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_prepare_start’: /home/paul/code/php-uv/php_uv.c:5503: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_prepare_stop’: /home/paul/code/php-uv/php_uv.c:5534: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_check_start’: /home/paul/code/php-uv/php_uv.c:5587: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_check_stop’: /home/paul/code/php-uv/php_uv.c:5620: warning: dereferencing type-punned pointer will break strict-aliasing rules /home/paul/code/php-uv/php_uv.c: In function ‘php_uv_socket_getname’: /home/paul/code/php-uv/php_uv.c:1002: warning: dereferencing pointer ‘addr.486’ does break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:2480: note: initialized from here /home/paul/code/php-uv/php_uv.c:1007: warning: dereferencing pointer ‘a6’ does break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:1005: note: initialized from here /home/paul/code/php-uv/php_uv.c:1018: warning: dereferencing pointer ‘a4’ does break strict-aliasing rules /home/paul/code/php-uv/php_uv.c:1016: note: initialized from here /home/paul/code/php-uv/php_uv.c: In function ‘php_uv_fs_common’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:697: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:706: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:716: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:726: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:735: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:744: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:753: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:763: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:773: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:784: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:795: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:806: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:819: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:829: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:841: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:851: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:860: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:869: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:880: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:890: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:900: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:911: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:921: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:934: warning: called from here /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:949: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_async_send’: /home/paul/code/php-uv/php_uv.c:2162: warning: inlining failed in call to ‘php_uv_get_current_stream’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5680: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_check_stop’: /home/paul/code/php-uv/php_uv.c:2162: warning: inlining failed in call to ‘php_uv_get_current_stream’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5625: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_check_start’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5595: warning: called from here /home/paul/code/php-uv/php_uv.c:2162: warning: inlining failed in call to ‘php_uv_get_current_stream’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5597: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_prepare_stop’: /home/paul/code/php-uv/php_uv.c:2162: warning: inlining failed in call to ‘php_uv_get_current_stream’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5540: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_prepare_start’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5511: warning: called from here /home/paul/code/php-uv/php_uv.c:2162: warning: inlining failed in call to ‘php_uv_get_current_stream’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:5512: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_pipe_connect’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:4697: warning: called from here /home/paul/code/php-uv/php_uv.c:2162: warning: inlining failed in call to ‘php_uv_get_current_stream’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:4700: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘php_uv_udp_send’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:2509: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_udp_recv_start’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:4304: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_idle_start’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:4115: warning: called from here /home/paul/code/php-uv/php_uv.c: In function ‘zif_uv_timer_start’: /home/paul/code/php-uv/php_uv.c:430: warning: inlining failed in call to ‘php_uv_cb_init’: call is unlikely and code size would grow /home/paul/code/php-uv/php_uv.c:3967: warning: called from here /bin/sh /home/paul/code/php-uv/libtool --mode=compile cc -I. -I/home/paul/code/php-uv -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -c /home/paul/code/php-uv/uv.c -o uv.lo libtool: compile: cc -I. -I/home/paul/code/php-uv -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -c /home/paul/code/php-uv/uv.c -fPIC -DPIC -o .libs/uv.o In file included from /home/paul/code/php-uv/php_uv.h:32, from /home/paul/code/php-uv/uv.c:19: /usr/include/php/main/php.h:269: warning: redundant redeclaration of ‘environ’ /usr/include/unistd.h:542: note: previous declaration of ‘environ’ was here /bin/sh /home/paul/code/php-uv/libtool --mode=compile cc -I. -I/home/paul/code/php-uv -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -c /home/paul/code/php-uv/http-parser/http_parser.c -o http-parser/http_parser.lo libtool: compile: cc -I. -I/home/paul/code/php-uv -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -c /home/paul/code/php-uv/http-parser/http_parser.c -fPIC -DPIC -o http-parser/.libs/http_parser.o /home/paul/code/php-uv/http-parser/http_parser.c: In function ‘parse_url_char’: /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_dead’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_start_req_or_res’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_or_resp_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_start_res’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_HT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_HTT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_HTTP’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_first_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_first_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_first_status_code’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_status_code’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_status’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_res_line_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_start_req’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_method’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_HT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_HTT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_HTTP’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_first_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_first_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_req_line_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_header_field_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_header_field’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_header_value_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_header_value’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_header_value_lws’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_header_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_size_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_size’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_parameters’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_size_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_headers_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_headers_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_data’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_data_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_chunk_data_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_body_identity’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_body_identity_eof’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:417: warning: enumeration value ‘s_message_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c: In function ‘http_parser_parse_url’: /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_start_req_or_res’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_or_resp_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_start_res’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_HT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_HTT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_HTTP’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_first_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_first_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_first_status_code’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_status_code’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_status’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_res_line_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_start_req’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_method’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_spaces_before_url’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_HT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_HTT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_HTTP’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_first_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_first_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_req_line_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_header_field_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_header_field’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_header_value_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_header_value’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_header_value_lws’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_header_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_size_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_size’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_parameters’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_size_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_headers_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_headers_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_data’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_data_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_chunk_data_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_body_identity’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_body_identity_eof’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:1957: warning: enumeration value ‘s_message_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_dead’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_start_req_or_res’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_or_resp_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_start_res’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_HT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_HTT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_HTTP’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_first_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_first_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_first_status_code’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_status_code’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_status’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_res_line_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_start_req’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_method’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_spaces_before_url’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_schema’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_schema_slash’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_schema_slash_slash’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_host_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_port’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_path’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_query_string_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_query_string’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_fragment_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_fragment’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_H’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_HT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_HTT’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_HTTP’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_first_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_major’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_first_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_http_minor’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_req_line_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_header_field_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_header_field’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_header_value_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_header_value’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_header_value_lws’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_header_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_size_start’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_size’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_parameters’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_size_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_headers_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_headers_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_data’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_data_almost_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_chunk_data_done’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_body_identity’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_body_identity_eof’ not handled in switch /home/paul/code/php-uv/http-parser/http_parser.c:2021: warning: enumeration value ‘s_message_done’ not handled in switch /bin/sh /home/paul/code/php-uv/libtool --mode=link cc -DPHP_ATOM_INC -I/home/paul/code/php-uv/include -I/home/paul/code/php-uv/main -I/home/paul/code/php-uv -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/paul/code/php-uv/http-parser -I/home/paul/code/php-uv/libuv/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -o uv.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/paul/code/php-uv/modules php_uv.lo uv.lo http-parser/http_parser.lo libtool: link: cc -shared .libs/php_uv.o .libs/uv.o http-parser/.libs/http_parser.o -Wl,libuv/uv.a -Wl,-soname -Wl,uv.so -o .libs/uv.so /usr/bin/ld: libuv/uv.a(async.o): relocation R_X86_64_32 against
.rodata' can not be used when making a shared object; recompile with -fPIC libuv/uv.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [uv.la] Error 1 [root@ppi php-uv]# Write failed: Broken pipe `