Subject Pile of warnings when building interbase.so
Author constantijnw
When building interbase.so on CentOS 5 x86_64 php 5.1.6 I get a lot of
warnings. Can I ignore them?

[root@Coco interbase]# make
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=compile gcc -I.
-I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/php-5.1.6/ext/interbase/interbase.c
-o interbase.lo
mkdir .libs
gcc -I. -I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/php-5.1.6/ext/interbase/interbase.c
-fPIC -DPIC -o .libs/interbase.o
In file included from /usr/include/php/main/php.h:33,
from /tmp/php-5.1.6/ext/interbase/interbase.c:29:
/usr/include/php/main/php_config.h:2244:1: warning: "_GNU_SOURCE"
redefined
/tmp/php-5.1.6/ext/interbase/interbase.c:27:1: warning: this is the
location of the previous definition
/tmp/php-5.1.6/ext/interbase/interbase.c: In function '_php_ibase_error':
/tmp/php-5.1.6/ext/interbase/interbase.c:236: warning:
'isc_interprete' is deprecated (declared at
/opt/firebird/include/ibase.h:780)
/tmp/php-5.1.6/ext/interbase/interbase.c: In function
'_php_ibase_commit_link':
/tmp/php-5.1.6/ext/interbase/interbase.c:317: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/interbase.c:325: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/interbase.c: In function
'_php_ibase_close_link':
/tmp/php-5.1.6/ext/interbase/interbase.c:367: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/interbase.c: In function
'_php_ibase_close_plink':
/tmp/php-5.1.6/ext/interbase/interbase.c:382: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/interbase.c: In function
'_php_ibase_free_trans':
/tmp/php-5.1.6/ext/interbase/interbase.c:397: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/interbase.c: In function
'_php_ibase_connect':
/tmp/php-5.1.6/ext/interbase/interbase.c:620: warning: initialization
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/interbase.c: In function 'zif_ibase_drop_db':
/tmp/php-5.1.6/ext/interbase/interbase.c:838: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/interbase.c: In function 'zif_ibase_trans':
/tmp/php-5.1.6/ext/interbase/interbase.c:857: warning: initialization
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/interbase.c: In function
'_php_ibase_def_trans':
/tmp/php-5.1.6/ext/interbase/interbase.c:1011: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/interbase.c:1017: warning: comparison
between pointer and integer
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=compile gcc -I.
-I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c
/tmp/php-5.1.6/ext/interbase/ibase_query.c -o ibase_query.lo
gcc -I. -I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/php-5.1.6/ext/interbase/ibase_query.c
-fPIC -DPIC -o .libs/ibase_query.o
/tmp/php-5.1.6/ext/interbase/ibase_query.c: In function
'_php_ibase_alloc_query':
/tmp/php-5.1.6/ext/interbase/ibase_query.c:308: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c: In function '_php_ibase_bind':
/tmp/php-5.1.6/ext/interbase/ibase_query.c:722: warning:
initialization makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c: In function '_php_ibase_exec':
/tmp/php-5.1.6/ext/interbase/ibase_query.c:869: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c:908: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/ibase_query.c: In function 'zif_ibase_query':
/tmp/php-5.1.6/ext/interbase/ibase_query.c:1083: warning:
initialization makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c:1084: warning:
initialization makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c:1167: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c: In function
'_php_ibase_fetch_hash':
/tmp/php-5.1.6/ext/interbase/ibase_query.c:1553: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_query.c: In function
'zif_ibase_execute':
/tmp/php-5.1.6/ext/interbase/ibase_query.c:1851: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/ibase_query.c:1858: warning: assignment
makes integer from pointer without a cast
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=compile gcc -I.
-I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c
/tmp/php-5.1.6/ext/interbase/ibase_service.c -o ibase_service.lo
gcc -I. -I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/php-5.1.6/ext/interbase/ibase_service.c
-fPIC -DPIC -o .libs/ibase_service.o
/tmp/php-5.1.6/ext/interbase/ibase_service.c: In function
'zif_ibase_service_attach':
/tmp/php-5.1.6/ext/interbase/ibase_service.c:216: warning:
initialization makes integer from pointer without a cast
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=compile gcc -I.
-I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c
/tmp/php-5.1.6/ext/interbase/ibase_events.c -o ibase_events.lo
gcc -I. -I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/php-5.1.6/ext/interbase/ibase_events.c
-fPIC -DPIC -o .libs/ibase_events.o
/tmp/php-5.1.6/ext/interbase/ibase_events.c: In function
'_php_ibase_free_event':
/tmp/php-5.1.6/ext/interbase/ibase_events.c:50: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/ibase_events.c: In function
'_php_ibase_event_block':
/tmp/php-5.1.6/ext/interbase/ibase_events.c:110: warning: passing
argument 1 of 'isc_event_block' from incompatible pointer type
/tmp/php-5.1.6/ext/interbase/ibase_events.c:110: warning: passing
argument 2 of 'isc_event_block' from incompatible pointer type
/tmp/php-5.1.6/ext/interbase/ibase_events.c:121: warning: passing
argument 1 of 'isc_event_counts' from incompatible pointer type
/tmp/php-5.1.6/ext/interbase/ibase_events.c: In function
'zif_ibase_wait_event':
/tmp/php-5.1.6/ext/interbase/ibase_events.c:176: warning: passing
argument 1 of 'isc_event_counts' from incompatible pointer type
/tmp/php-5.1.6/ext/interbase/ibase_events.c: In function
'_php_ibase_callback':
/tmp/php-5.1.6/ext/interbase/ibase_events.c:222: warning: passing
argument 1 of 'isc_event_counts' from incompatible pointer type
/tmp/php-5.1.6/ext/interbase/ibase_events.c:244: warning: passing
argument 6 of 'isc_que_events' from incompatible pointer type
/tmp/php-5.1.6/ext/interbase/ibase_events.c: In function
'zif_ibase_set_event_handler':
/tmp/php-5.1.6/ext/interbase/ibase_events.c:338: warning: passing
argument 6 of 'isc_que_events' from incompatible pointer type
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=compile gcc -I.
-I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c -o ibase_blobs.lo
gcc -I. -I/tmp/php-5.1.6/ext/interbase -DPHP_ATOM_INC
-I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -c /tmp/php-5.1.6/ext/interbase/ibase_blobs.c
-fPIC -DPIC -o .libs/ibase_blobs.o
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'_php_ibase_free_blob':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:41: warning: comparison
between pointer and integer
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_create':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:224: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_open':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:268: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'_php_ibase_blob_end':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:368: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:376: warning: assignment
makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_info':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:408: warning:
initialization makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_echo':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:484: warning:
initialization makes integer from pointer without a cast
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_import':
/tmp/php-5.1.6/ext/interbase/ibase_blobs.c:545: warning:
initialization makes integer from pointer without a cast
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=link gcc
-DPHP_ATOM_INC -I/tmp/php-5.1.6/ext/interbase/include
-I/tmp/php-5.1.6/ext/interbase/main -I/tmp/php-5.1.6/ext/interbase
-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/opt/firebird/include
-DHAVE_CONFIG_H -g -O2 -o interbase.la -export-dynamic
-avoid-version -prefer-pic -module -rpath
/tmp/php-5.1.6/ext/interbase/modules interbase.lo ibase_query.lo
ibase_service.lo ibase_events.lo ibase_blobs.lo
-Wl,-rpath,/opt/firebird/lib -L/opt/firebird/lib -lfbclient
gcc -shared .libs/interbase.o .libs/ibase_query.o
.libs/ibase_service.o .libs/ibase_events.o .libs/ibase_blobs.o
-L/opt/firebird/lib -lfbclient -Wl,-rpath -Wl,/opt/firebird/lib
-Wl,-soname -Wl,interbase.so -o .libs/interbase.so
creating interbase.la
(cd .libs && rm -f interbase.la && ln -s ../interbase.la interbase.la)
/bin/sh /tmp/php-5.1.6/ext/interbase/libtool --mode=install cp
./interbase.la /tmp/php-5.1.6/ext/interbase/modules
cp ./.libs/interbase.so /tmp/php-5.1.6/ext/interbase/modules/interbase.so
cp ./.libs/interbase.lai /tmp/php-5.1.6/ext/interbase/modules/interbase.la
PATH="$PATH:/sbin" ldconfig -n /tmp/php-5.1.6/ext/interbase/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/php-5.1.6/ext/interbase/modules