Question
mayco andrey on Mon, 27 Nov 2017 19:38:34
Hi.
I am trying to install the Microsoft Drives for PHP in CentOS 6.
I am using: yum install msodbcsql and I have a problem.
[root@SRVTIB-APP03 tmp]# yum install msodbcsql Loaded plugins: fastestmirror Setting up Install Process Repository packages-microsoft-com-prod is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: linorg.usp.br * epel: mirror.upb.edu.co * extras: linorg.usp.br * remi: remi.xpg.com.br * remi-php70: remi.xpg.com.br * remi-safe: remi.xpg.com.br * updates: linorg.usp.br Resolving Dependencies --> Running transaction check ---> Package msodbcsql.x86_64 0:13.1.9.1-1 will be installed --> Processing Dependency: unixODBC >= 2.3.1 for package: msodbcsql-13.1.9.1-1.x86_64 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: msodbcsql-13.1.9.1-1.x86_64 --> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) for package: msodbcsql-13.1.9.1-1.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: msodbcsql-13.1.9.1-1.x86_64 --> Finished Dependency Resolution Error: Package: msodbcsql-13.1.9.1-1.x86_64 (packages-microsoft-com-prod) Requires: unixODBC >= 2.3.1 Installed: unixODBC-2.2.14-14.el6.x86_64 (@base) unixODBC = 2.2.14-14.el6 Error: Package: msodbcsql-13.1.9.1-1.x86_64 (packages-microsoft-com-prod) Requires: libstdc++.so.6(GLIBCXX_3.4.19)(64bit) Error: Package: msodbcsql-13.1.9.1-1.x86_64 (packages-microsoft-com-prod) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: msodbcsql-13.1.9.1-1.x86_64 (packages-microsoft-com-prod) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
How do I solve this problem?
Replies
Olaf Helper on Tue, 28 Nov 2017 07:02:43
Requires: unixODBC >= 2.3.1 Installed: unixODBC-2.2.14-14.el6.x86_64 (@base)
By the error message I would say some dependencies are missing or in this case, the dependend & existing Driver are to old. So install/update all the dependencies / required Driver.
mayco andrey on Tue, 28 Nov 2017 18:29:41
Ok, The error with unixODBC was resolve.
Now, when I type the command pecl install sqlsrv I have other error.
I tried to update the gcc, but I had no success.
. . . checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes libtool.m4: error: problem compiling CXX test program checking for g++ option to produce PIC... -DPIC checking if g++ PIC flag -DPIC works... no checking if g++ static flag works... no checking if g++ supports -c -o file.o... no checking if g++ supports -c -o file.o... (cached) no checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... unsupported configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands running: make /bin/sh /var/tmp/pear-build-rootJBJ2Sv/pdo_sqlsrv-4.2.0preview/libtool --mode=compile g++ -I/usr/include/php/ext -std=c++11 -I. -I/var/tmp/pdo_sqlsrv -DPHP_ATOM_INC -I/var/tmp/pear-build-rootJBJ2Sv/pdo_sqlsrv-4.2.0preview/include -I/var/tmp/pear-build-rootJBJ2Sv/pdo_sqlsrv-4.2.0preview/main -I/var/tmp/pdo_sqlsrv -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/var/tmp/pdo_sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /var/tmp/pdo_sqlsrv/pdo_dbh.cpp -o pdo_dbh.lo libtool: compile: g++ -I/usr/include/php/ext -std=c++11 -I. -I/var/tmp/pdo_sqlsrv -DPHP_ATOM_INC -I/var/tmp/pear-build-rootJBJ2Sv/pdo_sqlsrv-4.2.0preview/include -I/var/tmp/pear-build-rootJBJ2Sv/pdo_sqlsrv-4.2.0preview/main -I/var/tmp/pdo_sqlsrv -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/var/tmp/pdo_sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /var/tmp/pdo_sqlsrv/pdo_dbh.cpp cc1plus: error: unrecognized command line option "-std=c++11" cc1plus: error: unrecognized command line option "-std=c++11" make: *** [pdo_dbh.lo] Error 1 ERROR: `make' failed
Lootan on Fri, 01 Dec 2017 10:07:25
use gcc4.8.5 from CentOS7
then,
[ -x /usr/local/gcc-4.8.5/bin/gcc ] && [ -x /usr/local/gcc-4.8.5/bin/c++ ] && \
export CC=/usr/local/gcc-4.8.5/bin/gcc CXX=/usr/local/gcc-4.8.5/bin/c++ || exit 1
/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
make
执行(%prep): /bin/sh -e /var/tmp/rpm-tmp.S62UGW + umask 022 + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD + rm -rf php-pecl-sqlsrv-4.3.0 + /usr/bin/mkdir -p php-pecl-sqlsrv-4.3.0 + cd php-pecl-sqlsrv-4.3.0 + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/sqlsrv-4.3.0.tgz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv sqlsrv-4.3.0 NTS + cat + cp -pr NTS ZTS + exit 0 执行(%build): /bin/sh -e /var/tmp/rpm-tmp.lKFFhu + umask 022 + cd /root/rpmbuild/BUILD + cd php-pecl-sqlsrv-4.3.0 + pushd NTS ~/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS ~/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0 + /usr/bin/phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-php-config=/usr/bin/php-config configure: WARNING: unrecognized options: --disable-dependency-tracking checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for x86_64-redhat-linux-gnu-cc... no checking for x86_64-redhat-linux-gnu-gcc... no checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -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 checking for PHP extension directory... /usr/lib64/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.14.3 (ok) checking for gawk... gawk checking whether to enable sqlsrv functions... yes, shared checking for SQLSRV headers... ./shared/ checking for x86_64-redhat-linux-gnu-g++... no checking for x86_64-redhat-linux-gnu-c++... no checking for x86_64-redhat-linux-gnu-gpp... no checking for x86_64-redhat-linux-gnu-aCC... no checking for x86_64-redhat-linux-gnu-CC... no checking for x86_64-redhat-linux-gnu-cxx... no checking for x86_64-redhat-linux-gnu-cc++... no checking for x86_64-redhat-linux-gnu-cl.exe... no checking for x86_64-redhat-linux-gnu-FCC... no checking for x86_64-redhat-linux-gnu-KCC... no checking for x86_64-redhat-linux-gnu-RCC... no checking for x86_64-redhat-linux-gnu-xlC_r... no checking for x86_64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for x86_64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j2 /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp -o conn.lo /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp -o util.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp -fPIC -DPIC -o .libs/util.o libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp -fPIC -DPIC -o .libs/conn.o In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:22: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'void zif_sqlsrv_errors(zend_execute_data*, zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:451:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( execute_data ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'void zif_sqlsrv_configure(zend_execute_data*, zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:505:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( execute_data ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'void zif_sqlsrv_get_config(zend_execute_data*, zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:628:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( execute_data ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'bool {anonymous}::ignore_warning(char*, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:869:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:870:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'bool {anonymous}::sqlsrv_merge_zend_hash(zval*, const zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:906:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:907:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp: In static member function 'static void {anonymous}::conn_char_set_func::func(const connection_option*, zval*, sqlsrv_conn*, std::string&)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:57:21: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:58:23: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp: In function 'int {anonymous}::get_conn_option_key(sqlsrv_context&, zend_string*, size_t, const zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:1199:20: warning: enumeration value 'CONN_ATTR_INVALID' not handled in switch [-Wswitch] switch( SS_CONN_OPTS[ i ].value_type ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp: In function 'void {anonymous}::validate_conn_options(sqlsrv_context&, zval*, char**, char**, HashTable*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:1342:24: warning: variable 'int_key' set but not used [-Wunused-but-set-variable] zend_ulong int_key = -1; ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:20: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h: In instantiation of 'H* process_params(zend_execute_data*, zval*, const char*, const char*, size_t, ...) [with H = ss_sqlsrv_conn; zend_execute_data = _zend_execute_data; zval = _zval_struct; size_t = long unsigned int]': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:578:5: required from here /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:513:20: warning: statement has no effect [-Wunused-value] SQLSRV_UNUSED( return_value ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:32: note: in definition of macro 'SQLSRV_UNUSED' #define SQLSRV_UNUSED( var ) var; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp -o init.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp -fPIC -DPIC -o .libs/init.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp -o stmt.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp -fPIC -DPIC -o .libs/stmt.o In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:19: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_startup_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:266:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_shutdown_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:591:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_activate_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:625:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( module_number ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:626:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_deactivate_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:666:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( module_number ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:667:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_conn.cpp -o shared/core_conn.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_conn.cpp -fPIC -DPIC -o shared/.libs/core_conn.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp: In function 'bool {anonymous}::determine_column_size_or_precision(const sqlsrv_stmt*, sqlsrv_sqltype, SQLULEN*, SQLSMALLINT*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:1549:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( *column_size == SQLSRV_SIZE_MAX_TYPE ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:1560:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( *column_size == SQLSRV_SIZE_MAX_TYPE ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:1574:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( *column_size == SQLSRV_INVALID_PRECISION || *decimal_digits == SQLSRV_INVALID_PRECISION ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp: In function 'bool {anonymous}::verify_and_set_encoding(const char*, sqlsrv_phptype&)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:2092:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:2093:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:21: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h: In instantiation of 'H* process_params(zend_execute_data*, zval*, const char*, const char*, size_t, ...) [with H = ss_sqlsrv_stmt; zend_execute_data = _zend_execute_data; zval = _zval_struct; size_t = long unsigned int]': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:281:9: required from here /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:513:20: warning: statement has no effect [-Wunused-value] SQLSRV_UNUSED( return_value ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:32: note: in definition of macro 'SQLSRV_UNUSED' #define SQLSRV_UNUSED( var ) var; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp -o shared/core_results.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp -fPIC -DPIC -o shared/.libs/core_results.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp -o shared/core_stream.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp -fPIC -DPIC -o shared/.libs/core_stream.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In function 'std::string {anonymous}::getUTF8StringFromString(const SQLWCHAR*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:253:15: warning: unused variable 'rc' [-Wunused-variable] DWORD rc; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:246:15: warning: unused variable 'mbs' [-Wunused-variable] mbstate_t mbs; ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:20:0: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::double_to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1023:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof(SQLLEN), "Buffer length must be able to find a long in " ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::long_to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1086:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof(double), "Buffer length must be able to find a long in sqlsrv_buffered_result_set::double_to_long" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::string_to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1135:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( double ), "Buffer needs to be big enough to hold a double" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::wstring_to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1147:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( double ), "Buffer needs to be big enough to hold a double" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::string_to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1159:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( LONG ), "Buffer needs to be big enough to hold a long" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::wstring_to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1171:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( LONG ), "Buffer needs to be big enough to hold a long" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1453:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( LONG ), "Buffer too small for SQL_C_LONG" ); // technically should ignore this ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1467:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( double ), "Buffer too small for SQL_C_DOUBLE" ); // technically should ignore this ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp: In function 'size_t {anonymous}::sqlsrv_stream_read(php_stream*, char*, size_t)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp:122:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( is_truncated_warning( state ) || count < read) { ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_init.cpp -o shared/core_init.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_init.cpp -fPIC -DPIC -o shared/.libs/core_init.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp -o shared/core_stmt.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp -fPIC -DPIC -o shared/.libs/core_stmt.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp: In function 'void {anonymous}::finalize_output_parameters(sqlsrv_stmt*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp:2028:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp:2029:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp -o shared/core_util.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp -fPIC -DPIC -o shared/.libs/core_util.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp: In function 'bool convert_string_from_utf16(SQLSRV_ENCODING, const SQLWCHAR*, SQLINTEGER, char**, SQLLEN&)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp:143:11: warning: variable 'flags' set but not used [-Wunused-but-set-variable] DWORD flags = 0; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp -o shared/FormattedPrint.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp -fPIC -DPIC -o shared/.libs/FormattedPrint.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp -o shared/localizationimpl.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp -fPIC -DPIC -o shared/.libs/localizationimpl.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp: In function 'int FormattedPrintA(IFormattedPrintOutput<char>*, const char*, __va_list_tag*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp:921:70: warning: 'text.FormattedPrintA(IFormattedPrintOutput<char>*, const char*, __va_list_tag*)::<anonymous union>::sz' may be used uninitialized in this function [-Wmaybe-uninitialized] output->WRITE_STRING(text.sz, textlen, &charsout); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In constructor 'IConvCachePool::IConvCachePool()': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:93:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int dstIdx = 0; dstIdx < cp_iconv::g_cp_iconv_count; ++dstIdx ) ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:95:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int srcIdx = 0; srcIdx < cp_iconv::g_cp_iconv_count; ++srcIdx ) ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In destructor 'IConvCachePool::~IConvCachePool()': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:107:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int dstIdx = 0; dstIdx < cp_iconv::g_cp_iconv_count; ++dstIdx ) ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:109:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int srcIdx = 0; srcIdx < cp_iconv::g_cp_iconv_count; ++srcIdx ) ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/xplat.h:97:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/typedefs_for_linux.h:23, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localization.hpp:25, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:22: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In member function 'USHORT IConvCachePool::Depth(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:124:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= dstIdx && dstIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:125:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= srcIdx && srcIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In member function 'const IConvCache* IConvCachePool::Borrow(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:133:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= dstIdx && dstIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:134:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= srcIdx && srcIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In member function 'void IConvCachePool::Return(const IConvCache*, int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:154:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= dstIdx && dstIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:155:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= srcIdx && srcIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp: At global scope: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp:231:13: warning: 'bool _isleadbyte_l(unsigned char, _locale_t)' defined but not used [-Wunused-function] static bool _isleadbyte_l(unsigned char ch, _locale_t loc) ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/StringFunctions.cpp -o shared/StringFunctions.lo libtool: compile: g++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/StringFunctions.cpp -fPIC -DPIC -o shared/.libs/StringFunctions.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=link cc -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -o sqlsrv.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules conn.lo util.lo init.lo stmt.lo shared/core_conn.lo shared/core_results.lo shared/core_stream.lo shared/core_init.lo shared/core_stmt.lo shared/core_util.lo shared/FormattedPrint.lo shared/localizationimpl.lo shared/StringFunctions.lo -lstdc++ -lodbc -lodbcinst libtool: link: cc -shared -fPIC -DPIC .libs/conn.o .libs/util.o .libs/init.o .libs/stmt.o shared/.libs/core_conn.o shared/.libs/core_results.o shared/.libs/core_stream.o shared/.libs/core_init.o shared/.libs/core_stmt.o shared/.libs/core_util.o shared/.libs/FormattedPrint.o shared/.libs/localizationimpl.o shared/.libs/StringFunctions.o -lstdc++ -lodbc -lodbcinst -O2 -m64 -mtune=generic -Wl,-z -Wl,relro -Wl,-soname -Wl,sqlsrv.so -o .libs/sqlsrv.so libtool: link: ( cd ".libs" && rm -f "sqlsrv.la" && ln -s "../sqlsrv.la" "sqlsrv.la" ) /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=install cp ./sqlsrv.la /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules libtool: install: cp ./.libs/sqlsrv.so /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules/sqlsrv.so libtool: install: cp ./.libs/sqlsrv.lai /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules/sqlsrv.la libtool: finish: PATH="/usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules ---------------------------------------------------------------------- Libraries have been installed in: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules ......................................
写道:/root/rpmbuild/SRPMS/php-pecl-sqlsrv-4.3.0-1.el7.centos.src.rpm 写道:/root/rpmbuild/RPMS/x86_64/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64.rpm 写道:/root/rpmbuild/RPMS/x86_64/php-pecl-sqlsrv-debuginfo-4.3.0-1.el7.centos.x86_64.rpm 执行(%clean): /bin/sh -e /var/tmp/rpm-tmp.BbkhY9 + umask 022 + cd /root/rpmbuild/BUILD + cd php-pecl-sqlsrv-4.3.0 + rm -rf /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 + exit 0
good luck to you.
Lootan on Fri, 01 Dec 2017 10:13:14
Installing /home/lootan/BoLanLinux/RPM/CentOS7/php72/php72-Other/php-pecl-sqlsrv-4.3.0-1.el7.centos.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iB9xDW + umask 022 + cd /root/rpmbuild/BUILD + LANG=C + export LANG + unset DISPLAY + cd /root/rpmbuild/BUILD + rm -rf php-pecl-sqlsrv-4.3.0 + /bin/mkdir -p php-pecl-sqlsrv-4.3.0 + cd php-pecl-sqlsrv-4.3.0 + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/sqlsrv-4.3.0.tgz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv sqlsrv-4.3.0 NTS + cat + cp -pr NTS ZTS + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZLBGH4 + umask 022 + cd /root/rpmbuild/BUILD + cd php-pecl-sqlsrv-4.3.0 + LANG=C + export LANG + unset DISPLAY + '[' -x /usr/local/gcc-4.8.5/bin/gcc ']' + '[' -x /usr/local/gcc-4.8.5/bin/c++ ']' + export CC=/usr/local/gcc-4.8.5/bin/gcc CXX=/usr/local/gcc-4.8.5/bin/c++ + CC=/usr/local/gcc-4.8.5/bin/gcc + CXX=/usr/local/gcc-4.8.5/bin/c++ + pushd NTS ~/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS ~/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0 + /usr/bin/phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 configure.ac:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:4268: _LT_SYS_MODULE_PATH_AIX is expanded from... aclocal.m4:7407: _LT_LINKER_SHLIBS is expanded from... aclocal.m4:8482: _LT_LANG_C_CONFIG is expanded from... aclocal.m4:3384: _LT_SETUP is expanded from... aclocal.m4:3313: LT_INIT is expanded from... aclocal.m4:3348: AC_PROG_LIBTOOL is expanded from... configure.ac:149: the top level configure.ac:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:7407: _LT_LINKER_SHLIBS is expanded from... aclocal.m4:8482: _LT_LANG_C_CONFIG is expanded from... aclocal.m4:3384: _LT_SETUP is expanded from... aclocal.m4:3313: LT_INIT is expanded from... aclocal.m4:3348: AC_PROG_LIBTOOL is expanded from... configure.ac:149: the top level configure.ac:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:4268: _LT_SYS_MODULE_PATH_AIX is expanded from... aclocal.m4:8589: _LT_LANG_CXX_CONFIG is expanded from... aclocal.m4:4031: _LT_LANG is expanded from... aclocal.m4:4014: LT_LANG is expanded from... aclocal.m4:4042: _LT_LANG_DEFAULT_CONFIG is expanded from... aclocal.m4:3384: _LT_SETUP is expanded from... aclocal.m4:3313: LT_INIT is expanded from... aclocal.m4:3348: AC_PROG_LIBTOOL is expanded from... configure.ac:149: the top level configure.ac:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:4268: _LT_SYS_MODULE_PATH_AIX is expanded from... aclocal.m4:7407: _LT_LINKER_SHLIBS is expanded from... aclocal.m4:8482: _LT_LANG_C_CONFIG is expanded from... aclocal.m4:3384: _LT_SETUP is expanded from... aclocal.m4:3313: LT_INIT is expanded from... aclocal.m4:3348: AC_PROG_LIBTOOL is expanded from... configure.ac:149: the top level configure.ac:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:7407: _LT_LINKER_SHLIBS is expanded from... aclocal.m4:8482: _LT_LANG_C_CONFIG is expanded from... aclocal.m4:3384: _LT_SETUP is expanded from... aclocal.m4:3313: LT_INIT is expanded from... aclocal.m4:3348: AC_PROG_LIBTOOL is expanded from... configure.ac:149: the top level configure.ac:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from... aclocal.m4:4268: _LT_SYS_MODULE_PATH_AIX is expanded from... aclocal.m4:8589: _LT_LANG_CXX_CONFIG is expanded from... aclocal.m4:4031: _LT_LANG is expanded from... aclocal.m4:4014: LT_LANG is expanded from... aclocal.m4:4042: _LT_LANG_DEFAULT_CONFIG is expanded from... aclocal.m4:3384: _LT_SETUP is expanded from... aclocal.m4:3313: LT_INIT is expanded from... aclocal.m4:3348: AC_PROG_LIBTOOL is expanded from... configure.ac:149: the top level + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-php-config=/usr/bin/php-config checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for x86_64-redhat-linux-gnu-cc... /usr/local/gcc-4.8.5/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/local/gcc-4.8.5/bin/gcc accepts -g... yes checking for /usr/local/gcc-4.8.5/bin/gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /usr/local/gcc-4.8.5/bin/gcc -E checking for icc... no checking for suncc... no checking whether /usr/local/gcc-4.8.5/bin/gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking target system type... x86_64-redhat-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -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 checking for PHP extension directory... /usr/lib64/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... re2c checking for re2c version... 0.13.5 (ok) checking for gawk... gawk checking whether to enable sqlsrv functions... yes, shared checking for SQLSRV headers... ./shared/ checking whether we are using the GNU C++ compiler... yes checking whether /usr/local/gcc-4.8.5/bin/c++ accepts -g... yes checking how to run the C++ preprocessor... /usr/local/gcc-4.8.5/bin/c++ -E checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by /usr/local/gcc-4.8.5/bin/gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-ar... no checking for ar... ar checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from /usr/local/gcc-4.8.5/bin/gcc object... ok checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether /usr/local/gcc-4.8.5/bin/c++ accepts -g... (cached) yes checking how to run the C++ preprocessor... /usr/local/gcc-4.8.5/bin/c++ -E checking for objdir... .libs checking if /usr/local/gcc-4.8.5/bin/gcc supports -fno-rtti -fno-exceptions... no checking for /usr/local/gcc-4.8.5/bin/gcc option to produce PIC... -fPIC -DPIC checking if /usr/local/gcc-4.8.5/bin/gcc PIC flag -fPIC -DPIC works... yes checking if /usr/local/gcc-4.8.5/bin/gcc static flag -static works... yes checking if /usr/local/gcc-4.8.5/bin/gcc supports -c -o file.o... yes checking if /usr/local/gcc-4.8.5/bin/gcc supports -c -o file.o... (cached) yes checking whether the /usr/local/gcc-4.8.5/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for ld used by /usr/local/gcc-4.8.5/bin/c++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the /usr/local/gcc-4.8.5/bin/c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for /usr/local/gcc-4.8.5/bin/c++ option to produce PIC... -fPIC -DPIC checking if /usr/local/gcc-4.8.5/bin/c++ PIC flag -fPIC -DPIC works... yes checking if /usr/local/gcc-4.8.5/bin/c++ static flag -static works... yes checking if /usr/local/gcc-4.8.5/bin/c++ supports -c -o file.o... yes checking if /usr/local/gcc-4.8.5/bin/c++ supports -c -o file.o... (cached) yes checking whether the /usr/local/gcc-4.8.5/bin/c++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands + make -j2 /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp -o conn.lo /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp -o util.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp -fPIC -DPIC -o .libs/conn.o libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp -fPIC -DPIC -o .libs/util.o In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:22: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'void zif_sqlsrv_errors(zend_execute_data*, zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:451:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( execute_data ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'void zif_sqlsrv_configure(zend_execute_data*, zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:505:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( execute_data ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp: In static member function 'static void {anonymous}::conn_char_set_func::func(const connection_option*, zval*, sqlsrv_conn*, std::string&)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:57:21: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:58:23: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'void zif_sqlsrv_get_config(zend_execute_data*, zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:628:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( execute_data ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'bool {anonymous}::ignore_warning(char*, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:869:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:870:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp: In function 'bool {anonymous}::sqlsrv_merge_zend_hash(zval*, const zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:906:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/util.cpp:907:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp: In function 'int {anonymous}::get_conn_option_key(sqlsrv_context&, zend_string*, size_t, const zval*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:1199:20: warning: enumeration value 'CONN_ATTR_INVALID' not handled in switch [-Wswitch] switch( SS_CONN_OPTS[ i ].value_type ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp: In function 'void {anonymous}::validate_conn_options(sqlsrv_context&, zval*, char**, char**, HashTable*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:1342:24: warning: variable 'int_key' set but not used [-Wunused-but-set-variable] zend_ulong int_key = -1; ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:20: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h: In instantiation of 'H* process_params(zend_execute_data*, zval*, const char*, const char*, size_t, ...) [with H = ss_sqlsrv_conn; zend_execute_data = _zend_execute_data; zval = _zval_struct; size_t = long unsigned int]': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/conn.cpp:578:5: required from here /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:513:20: warning: statement has no effect [-Wunused-value] SQLSRV_UNUSED( return_value ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:32: note: in definition of macro 'SQLSRV_UNUSED' #define SQLSRV_UNUSED( var ) var; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp -o init.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp -fPIC -DPIC -o .libs/init.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp -o stmt.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp -fPIC -DPIC -o .libs/stmt.o In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:19: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_startup_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:266:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_shutdown_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:591:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_activate_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:625:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( module_number ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:626:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp: In function 'int zm_deactivate_sqlsrv(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:666:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( module_number ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:35: warning: statement has no effect [-Wunused-value] #define SQLSRV_UNUSED( var ) var; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/init.cpp:667:5: note: in expansion of macro 'SQLSRV_UNUSED' SQLSRV_UNUSED( type ); ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_conn.cpp -o shared/core_conn.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_conn.cpp -fPIC -DPIC -o shared/.libs/core_conn.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp: In function 'bool {anonymous}::determine_column_size_or_precision(const sqlsrv_stmt*, sqlsrv_sqltype, SQLULEN*, SQLSMALLINT*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:1549:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( *column_size == SQLSRV_SIZE_MAX_TYPE ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:1560:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( *column_size == SQLSRV_SIZE_MAX_TYPE ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:1574:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( *column_size == SQLSRV_INVALID_PRECISION || *decimal_digits == SQLSRV_INVALID_PRECISION ) { ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp: In function 'bool {anonymous}::verify_and_set_encoding(const char*, sqlsrv_phptype&)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:2092:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:2093:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:25:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:21: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h: In instantiation of 'H* process_params(zend_execute_data*, zval*, const char*, const char*, size_t, ...) [with H = ss_sqlsrv_stmt; zend_execute_data = _zend_execute_data; zval = _zval_struct; size_t = long unsigned int]': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/stmt.cpp:281:9: required from here /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/php_sqlsrv.h:513:20: warning: statement has no effect [-Wunused-value] SQLSRV_UNUSED( return_value ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1576:32: note: in definition of macro 'SQLSRV_UNUSED' #define SQLSRV_UNUSED( var ) var; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp -o shared/core_results.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp -fPIC -DPIC -o shared/.libs/core_results.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp -o shared/core_stream.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp -fPIC -DPIC -o shared/.libs/core_stream.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In function 'std::string {anonymous}::getUTF8StringFromString(const SQLWCHAR*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:253:15: warning: unused variable 'rc' [-Wunused-variable] DWORD rc; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:246:15: warning: unused variable 'mbs' [-Wunused-variable] mbstate_t mbs; ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:20:0: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::double_to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1023:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof(SQLLEN), "Buffer length must be able to find a long in " ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::long_to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1086:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof(double), "Buffer length must be able to find a long in sqlsrv_buffered_result_set::double_to_long" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::string_to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1135:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( double ), "Buffer needs to be big enough to hold a double" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::wstring_to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1147:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( double ), "Buffer needs to be big enough to hold a double" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::string_to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1159:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( LONG ), "Buffer needs to be big enough to hold a long" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::wstring_to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1171:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( LONG ), "Buffer needs to be big enough to hold a long" ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::to_long(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1453:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( LONG ), "Buffer too small for SQL_C_LONG" ); // technically should ignore this ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp: In member function 'SQLRETURN sqlsrv_buffered_result_set::to_double(SQLSMALLINT, void*, SQLLEN, SQLLEN*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_results.cpp:1467:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] SQLSRV_ASSERT( buffer_length >= sizeof( double ), "Buffer too small for SQL_C_DOUBLE" ); // technically should ignore this ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_sqlsrv.h:1702:52: note: in definition of macro 'SQLSRV_ASSERT' #define SQLSRV_ASSERT( condition, msg, ...) if( !(condition)) DIE( msg, ## __VA_ARGS__ ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp: In function 'size_t {anonymous}::sqlsrv_stream_read(php_stream*, char*, size_t)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stream.cpp:122:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( is_truncated_warning( state ) || count < read) { ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_init.cpp -o shared/core_init.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_init.cpp -fPIC -DPIC -o shared/.libs/core_init.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp -o shared/core_stmt.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp -fPIC -DPIC -o shared/.libs/core_stmt.o /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp -o shared/core_util.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp -fPIC -DPIC -o shared/.libs/core_util.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp: In function 'void {anonymous}::finalize_output_parameters(sqlsrv_stmt*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp:2028:13: warning: variable 'index' set but not used [-Wunused-but-set-variable] zend_ulong index = -1; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_stmt.cpp:2029:15: warning: variable 'key' set but not used [-Wunused-but-set-variable] zend_string* key = NULL; ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp: In function 'bool convert_string_from_utf16(SQLSRV_ENCODING, const SQLWCHAR*, SQLINTEGER, char**, SQLLEN&)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/core_util.cpp:143:11: warning: variable 'flags' set but not used [-Wunused-but-set-variable] DWORD flags = 0; ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp -o shared/FormattedPrint.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp -fPIC -DPIC -o shared/.libs/FormattedPrint.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp: In function 'int FormattedPrintA(IFormattedPrintOutput<char>*, const char*, __va_list_tag*)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp:921:70: warning: 'text.FormattedPrintA(IFormattedPrintOutput<char>*, const char*, __va_list_tag*)::<anonymous union>::sz' may be used uninitialized in this function [-Wmaybe-uninitialized] output->WRITE_STRING(text.sz, textlen, &charsout); ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp -o shared/localizationimpl.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp -fPIC -DPIC -o shared/.libs/localizationimpl.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp: At global scope: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/FormattedPrint.cpp:231:13: warning: 'bool _isleadbyte_l(unsigned char, _locale_t)' defined but not used [-Wunused-function] static bool _isleadbyte_l(unsigned char ch, _locale_t loc) ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=compile /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/StringFunctions.cpp -o shared/StringFunctions.lo libtool: compile: /usr/local/gcc-4.8.5/bin/c++ -std=c++11 -I. -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/StringFunctions.cpp -fPIC -DPIC -o shared/.libs/StringFunctions.o /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In constructor 'IConvCachePool::IConvCachePool()': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:93:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int dstIdx = 0; dstIdx < cp_iconv::g_cp_iconv_count; ++dstIdx ) ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:95:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int srcIdx = 0; srcIdx < cp_iconv::g_cp_iconv_count; ++srcIdx ) ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In destructor 'IConvCachePool::~IConvCachePool()': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:107:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int dstIdx = 0; dstIdx < cp_iconv::g_cp_iconv_count; ++dstIdx ) ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:109:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int srcIdx = 0; srcIdx < cp_iconv::g_cp_iconv_count; ++srcIdx ) ^ In file included from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/xplat.h:97:0, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/typedefs_for_linux.h:23, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localization.hpp:25, from /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:22: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In member function 'USHORT IConvCachePool::Depth(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:124:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= dstIdx && dstIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:125:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= srcIdx && srcIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In member function 'const IConvCache* IConvCachePool::Borrow(int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:133:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= dstIdx && dstIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:134:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= srcIdx && srcIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp: In member function 'void IConvCachePool::Return(const IConvCache*, int, int)': /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:154:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= dstIdx && dstIdx < cp_iconv::g_cp_iconv_count ); ^ /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared/localizationimpl.cpp:155:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert( 0 <= srcIdx && srcIdx < cp_iconv::g_cp_iconv_count ); ^ /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=link /usr/local/gcc-4.8.5/bin/gcc -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/include -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/main -I/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS -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/root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/shared -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o sqlsrv.la -export-dynamic -avoid-version -prefer-pic -module -rpath /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules conn.lo util.lo init.lo stmt.lo shared/core_conn.lo shared/core_results.lo shared/core_stream.lo shared/core_init.lo shared/core_stmt.lo shared/core_util.lo shared/FormattedPrint.lo shared/localizationimpl.lo shared/StringFunctions.lo -lstdc++ -lodbc -lodbcinst libtool: link: /usr/local/gcc-4.8.5/bin/gcc -shared .libs/conn.o .libs/util.o .libs/init.o .libs/stmt.o shared/.libs/core_conn.o shared/.libs/core_results.o shared/.libs/core_stream.o shared/.libs/core_init.o shared/.libs/core_stmt.o shared/.libs/core_util.o shared/.libs/FormattedPrint.o shared/.libs/localizationimpl.o shared/.libs/StringFunctions.o -Wl,-rpath -Wl,/usr/local/gcc-4.8.5/lib/../lib64 -Wl,-rpath -Wl,/usr/local/gcc-4.8.5/lib/../lib64 /usr/local/gcc-4.8.5/lib/../lib64/libstdc++.so -lm -lodbc -lodbcinst -m64 -mtune=generic -Wl,-soname -Wl,sqlsrv.so -o .libs/sqlsrv.so libtool: link: ( cd ".libs" && rm -f "sqlsrv.la" && ln -s "../sqlsrv.la" "sqlsrv.la" ) /bin/sh /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/libtool --mode=install cp ./sqlsrv.la /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules libtool: install: cp ./.libs/sqlsrv.so /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules/sqlsrv.so libtool: install: cp ./.libs/sqlsrv.lai /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules/sqlsrv.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/NTS/modules ----------------------------------------------------------------------
Lootan on Fri, 01 Dec 2017 10:26:25
---------------------------------------------------------------------- Libraries have been installed in: /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0/ZTS/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'. + popd ~/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.TkampT + umask 022 + cd /root/rpmbuild/BUILD + '[' /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 '!=' / ']' + rm -rf /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 ++ dirname /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 + mkdir -p /root/rpmbuild/BUILDROOT + mkdir /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 + cd php-pecl-sqlsrv-4.3.0 + LANG=C + export LANG + unset DISPLAY + /bin/rm -rf /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 + /usr/bin/install -D -m 755 NTS/modules/sqlsrv.so /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/lib64/php/modules/sqlsrv.so + /usr/bin/install -D -m 644 40-sqlsrv.ini /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/etc/php.d/40-sqlsrv.ini + /usr/bin/install -D -m 755 ZTS/modules/sqlsrv.so /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/lib64/php-zts/modules/sqlsrv.so + /usr/bin/install -D -m 644 40-sqlsrv.ini /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/etc/php-zts.d/40-sqlsrv.ini + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /root/rpmbuild/BUILD/php-pecl-sqlsrv-4.3.0 extracting debug info from /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/lib64/php-zts/modules/sqlsrv.so extracting debug info from /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/lib64/php/modules/sqlsrv.so 2674 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: php-pecl-sqlsrv-4.3.0-1.el6.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.kGt1JM + umask 022 + cd /root/rpmbuild/BUILD + cd php-pecl-sqlsrv-4.3.0 + DOCDIR=/root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/share/doc/php-pecl-sqlsrv-4.3.0 + export DOCDIR + rm -rf /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/share/doc/php-pecl-sqlsrv-4.3.0 + /bin/mkdir -p /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/share/doc/php-pecl-sqlsrv-4.3.0 + cp -pr NTS/CREDITS NTS/LICENSE /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64/usr/share/doc/php-pecl-sqlsrv-4.3.0 + exit 0 Finding Provides: /bin/sh -c " /bin/grep -v '/usr/lib64/php/modules/.*\.so$' | /bin/grep -v '/usr/lib64/php-zts/modules/.*\.so$' | while read FILE; do /usr/lib/rpm/rpmdeps -P ${FILE}; done | /bin/sort -u " Finding Requires: /bin/sh -c " while read FILE; do /usr/lib/rpm/rpmdeps -R ${FILE}; done | /bin/sort -u " Provides: php-pecl-sqlsrv = 4.3.0 php-pecl-sqlsrv(x86-64) = 4.3.0 php-sqlsrv = 4.3.0 php-sqlsrv(x86-64) = 4.3.0 php-pecl(sqlsrv) = 4.3.0 php-pecl(sqlsrv)(x86-64) = 4.3.0 Requires(rpmlib): rpmlib(VersionedDependencies) <= 3.0.3-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libodbcinst.so.2()(64bit) libodbc.so.2()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Conflicts: php-pecl-sqlsrv < 4.3.0 Processing files: php-pecl-sqlsrv-debuginfo-4.3.0-1.el6.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 Wrote: /root/rpmbuild/RPMS/x86_64/php-pecl-sqlsrv-4.3.0-1.el6.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/php-pecl-sqlsrv-debuginfo-4.3.0-1.el6.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.rFPSZB + umask 022 + cd /root/rpmbuild/BUILD + cd php-pecl-sqlsrv-4.3.0 + rm -rf /root/rpmbuild/BUILDROOT/php-pecl-sqlsrv-4.3.0-1.el7.centos.x86_64 + exit 0 Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.qgzX4z + umask 022 + cd /root/rpmbuild/BUILD + rm -rf php-pecl-sqlsrv-4.3.0 + exit 0
Lootan on Fri, 01 Dec 2017 10:33:41
2017年12月01日星期五下午18:31:59[root@monitor php72-Other]# php -m [PHP Modules] amqp apcu bcmath beast bz2 calendar Core ctype curl date dba dbase dom enchant exif fileinfo filter ftp gd gearman geoip gettext gmp hash iconv igbinary imagick imap interbase intl json ldap libxml mbstring mcrypt memcached mongodb msgpack mysqli mysqlnd OAuth oci8 odbc openssl pcntl pcre PDO pdo_dblib PDO_Firebird pdo_mysql PDO_OCI PDO_ODBC pdo_pgsql pdo_sqlite pdo_sqlsrv pgsql Phar php_screw_plus posix pspell readline recode redis Reflection session shmop SimpleXML snmp soap sockets SPL sqlite3 sqlsrv standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl yaml Zend OPcache zip zlib zookeeper [Zend Modules] Zend OPcache 2017年12月01日星期五下午18:32:09[root@monitor php72-Other]# php -i