8000 A lot of warnings when trying to make against php 5.2.17 · Issue #318 · phpredis/phpredis · GitHub
[go: up one dir, main page]

Skip to content
A lot of warnings when trying to make against php 5.2.17 #318
Closed
@aotarola

Description

@aotarola

Hi there,

I'm having a lot of warnings when trying to compile against php 5.2.17, is this a bug or do I need some special option to compile?

here's the log:

/bin/sh /root/phpredis/libtool --mode=compile gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis.c -o redis.lo
mkdir .libs
gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis.c -fPIC -DPIC -o .libs/redis.o
/bin/sh /root/phpredis/libtool --mode=compile gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/library.c -o library.lo
gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/library.c -fPIC -DPIC -o .libs/library.o
/bin/sh /root/phpredis/libtool --mode=compile gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_session.c -o redis_session.lo
gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_session.c -fPIC -DPIC -o .libs/redis_session.o
/bin/sh /root/phpredis/libtool --mode=compile gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array.c -o redis_array.lo
gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array.c -fPIC -DPIC -o .libs/redis_array.o
/root/phpredis/redis_array.c: In function 'ra_forward_call':
/root/phpredis/redis_array.c:307: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array.c: In function 'multihost_distribute':
/root/phpredis/redis_array.c:539: warning: initialization discards qualifiers from pointer target type
/bin/sh /root/phpredis/libtool --mode=compile gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array_impl.c -o redis_array_impl.lo
gcc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array_impl.c -fPIC -DPIC -o .libs/redis_array_impl.o
/root/phpredis/redis_array_impl.c: In function 'ra_load_array':
/root/phpredis/redis_array_impl.c:174: warning: passing argument 2 of 'zend_hash_find' discards qualifiers from pointer target type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_hash.h:156: note: expected 'char ' but argument is of type 'const char *'
/root/phpredis/redis_array_impl.c:182: warning: passing argument 2 of 'zend_hash_find' discards qualifiers from pointer target type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_hash.h:156: note: expected 'char *' but argument is of type 'const char *'
/root/phpredis/redis_array_impl.c:190: warning: passing argument 2 of 'zend_hash_find' discards qualifiers from pointer target type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_hash.h:156: note: expected 'char *' but argument is of type 'const char *'
/root/phpredis/redis_array_impl.c:200: warning: passing argument 2 of 'zend_hash_find' discards qualifiers from pointer target type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_hash.h:156: note: expected 'char *' but argument is of type 'const char *'
/root/phpredis/redis_array_impl.c:210: warning: passing argument 2 of 'zend_hash_find' discards qualifiers from pointer target type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_hash.h:156: note: expected 'char *' but argument is of type 'const char *'
/root/phpredis/redis_array_impl.c:220: warning: passing argument 2 of 'zend_hash_find' discards qualifiers from pointer target type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_hash.h:156: note: expected 'char *' but argument is of type 'const char *'
/root/phpredis/redis_array_impl.c: In function 'ra_call_extractor':
/root/phpredis/redis_array_impl.c:296: warning: passing argument 2 of 'zend_is_callable_ex' makes integer from pointer without a cast
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_API.h:222: note: expected 'uint' but argument is of type 'void *'
/root/phpredis/redis_array_impl.c:296: warning: passing argument 7 of 'zend_is_callable_ex' from incompatible pointer type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_API.h:222: note: expected 'struct zval *__' but argument is of type 'char *
'
/root/phpredis/redis_array_impl.c:304: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_call_distributor':
/root/phpredis/redis_array_impl.c:357: warning: passing argument 2 of 'zend_is_callable_ex' makes integer from pointer without a cast
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_API.h:222: note: expected 'uint' but argument is of type 'void '
/root/phpredis/redis_array_impl.c:357: warning: passing argument 7 of 'zend_is_callable_ex' from incompatible pointer type
/usr/local/php-5.2.17-fpm/include/php/Zend/zend_API.h:222: note: expected 'struct zval *__' but argument is of type 'char *
'
/root/phpredis/redis_array_impl.c:365: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_index_change_keys':
/root/phpredis/redis_array_impl.c:468: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_index_key':
/root/phpredis/redis_array_impl.c:548: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_rehash_scan':
/root/phpredis/redis_array_impl.c:640: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:643: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_get_key_type':
/root/phpredis/redis_array_impl.c:702: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:707: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_remove_from_index':
/root/phpredis/redis_array_impl.c:750: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_del_key':
/root/phpredis/redis_array_impl.c:772: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_expire_key':
/root/phpredis/redis_array_impl.c:796: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_move_zset':
/root/phpredis/redis_array_impl.c:823: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:878: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_move_string':
/root/phpredis/redis_array_impl.c:900: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:914: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:925: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_move_hash':
/root/phpredis/redis_array_impl.c:947: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:958: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'ra_move_collection':
/root/phpredis/redis_array_impl.c:982: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:986: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:991: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:1011: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c:1013: warning: initialization discards qualifiers from pointer target type
/root/phpredis/redis_array_impl.c: In function 'zval_rehash_callback':
/root/phpredis/redis_array_impl.c:1115: warning: assignment from incompatible pointer type
/root/phpredis/redis_array_impl.c:1121: warning: initialization discards qualifiers from pointer target type
/bin/sh /root/phpredis/libtool --mode=link gcc -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/local/php-5.2.17-fpm/include/php -I/usr/local/php-5.2.17-fpm/include/php/main -I/usr/local/php-5.2.17-fpm/include/php/TSRM -I/usr/local/php-5.2.17-fpm/include/php/Zend -I/usr/local/php-5.2.17-fpm/include/php/ext -I/usr/local/php-5.2.17-fpm/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/phpredis/modules redis.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo
gcc -shared .libs/redis.o .libs/library.o .libs/redis_session.o .libs/redis_array.o .libs/redis_array_impl.o -Wl,-soname -Wl,redis.so -o .libs/redis.so
creating redis.la
(cd .libs && rm -f redis.la && ln -s ../redis.la redis.la)
/bin/sh /root/phpredis/libtool --mode=install cp ./redis.la /root/phpredis/modules
cp ./.libs/redis.so /root/phpredis/modules/redis.so
cp ./.libs/redis.lai /root/phpredis/modules/redis.la

PATH="$PATH:/sbin" ldconfig -n /root/phpredis/modules

Libraries have been installed in:
/root/phpredis/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

Build complete.
Don't forget to run 'make test'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0