Please. Help...
sudo pecl install sqlsrv
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pdo_sqlsrv.so' - /usr/lib/php/20151012/pdo_sqlsrv.so: cannot open shared object file: No such file or directory in Unknown on line 0
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading sqlsrv-4.0.8.tgz ...
Starting to download sqlsrv-4.0.8.tgz (192,155 bytes)
.........................................done: 192,155 bytes
33 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
building in /tmp/pear/temp/pear-build-rootWHWajO/sqlsrv-4.0.8
running: /tmp/pear/temp/sqlsrv/configure --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 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-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable sqlsrv functions... yes, shared
checking for SQLSRV headers... /tmp/pear/temp/sqlsrv/shared/
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) /bin/sed
checking for fgrep... /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 how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt 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... yes
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... yes
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
running: make
/bin/bash /tmp/pear/temp/pear-build-rootWHWajO/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootWHWajO/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-rootWHWajO/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/conn.cpp -o conn.lo
libtool: compile: g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootWHWajO/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-rootWHWajO/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/conn.cpp -fPIC -DPIC -o .libs/conn.o
In file included from /usr/local/include/sql.h:19:0,
from /tmp/pear/temp/sqlsrv/shared/xplat.h:36,
from /tmp/pear/temp/sqlsrv/shared/typedefs_for_linux.h:23,
from /tmp/pear/temp/sqlsrv/shared/winnls.h:24,
from /tmp/pear/temp/sqlsrv/shared/FormattedPrint.h:24,
from /tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:40,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/conn.cpp:20:
/usr/local/include/sqltypes.h:400:19: error: ‘SQLBIGINT’ does not name a type
typedef ODBCINT64 SQLBIGINT;
^
/usr/local/include/sqltypes.h:403:20: error: ‘SQLUBIGINT’ does not name a type
typedef UODBCINT64 SQLUBIGINT;
^
/tmp/pear/temp/sqlsrv/conn.cpp:152:75: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char* ss_sqlsrv_conn::resource_name = static_cast<char *>("ss_sqlsrv_conn");
^
Makefile:194: recipe for target 'conn.lo' failed
make: *** [conn.lo] Error 1
ERROR: `make' failed
Hi @emalherbi ,
What is the output of the following commands?
lsb_release -aodbcinst -jodbcinst -q -d -n "ODBC Driver 13 for SQL Server"No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
unixODBC 2.2.14
DRIVERS............: /usr/local/etc/odbcinst.ini
SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini
FILE DATA SOURCES..: /usr/local/etc/ODBCDataSources
USER DATA SOURCES..: /home/eduardo/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
md5-1191b1f1cd40870b0420ea3503a63844
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 13 for SQL Server
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.0.so.0.0
Threading=1
UsageCount=2
@emalherbi , you need at least unixODBC 2.3.1 installed in your machine to be able to use the drivers.
I would suggest to check the installation instructions: https://github.com/Microsoft/msphpsql/tree/dev#install-unix
Note that, you will need to remove unixODBC 2.2.14 first, if you installed it manually.
Tnks @ulvii
Can you help me how to remove unixODBC?
@emalherbi ,
Please run find /usr 2>/dev/null -name "libodbc*" and post the output.
/usr/local/lib/libodbc.so.1
/usr/local/lib/libodbcpsql.la
/usr/local/lib/libodbcpsqlS.so.1.0.0
/usr/local/lib/libodbcdrvcfg2S.so.1.0.0
/usr/local/lib/libodbctxtS.la
/usr/local/lib/libodbctxtS.so
/usr/local/lib/libodbcdrvcfg2S.so.1
/usr/local/lib/libodbcmyS.so
/usr/local/lib/libodbc.la
/usr/local/lib/libodbcinst.la
/usr/local/lib/libodbcmyS.la
/usr/local/lib/libodbc.so.1.0.0
/usr/local/lib/libodbccr.so.1
/usr/local/lib/libodbcdrvcfg2S.la
/usr/local/lib/libodbctxtS.so.1.0.0
/usr/local/lib/libodbcpsql.so.2.0.0
/usr/local/lib/libodbcdrvcfg1S.so
/usr/local/lib/libodbctxtS.so.1
/usr/local/lib/libodbcpsql.so.1.0.0
/usr/local/lib/libodbcdrvcfg1S.la
/usr/local/lib/libodbccr.so.1.0.0
/usr/local/lib/libodbcnnS.la
/usr/local/lib/libodbcdrvcfg1S.so.1.0.0
/usr/local/lib/libodbccr.so
/usr/local/lib/libodbcminiS.so
/usr/local/lib/libodbcnnS.so.1.0.0
/usr/local/lib/libodbcinst.so.1
/usr/local/lib/libodbcnnS.so
/usr/local/lib/libodbcdrvcfg2S.so
/usr/local/lib/libodbcpsqlS.la
/usr/local/lib/libodbcinst.so.1.0.0
/usr/local/lib/libodbcpsqlS.so
/usr/local/lib/libodbcdrvcfg1S.so.1
/usr/local/lib/libodbcmyS.so.1
/usr/local/lib/libodbcpsqlS.so.1
/usr/local/lib/libodbccr.la
/usr/local/lib/libodbc.so
/usr/local/lib/libodbcpsql.so.2
/usr/local/lib/libodbcminiS.la
/usr/local/lib/libodbcminiS.so.1
/usr/local/lib/libodbcminiS.so.1.0.0
/usr/local/lib/libodbcmyS.so.1.0.0
/usr/local/lib/libodbcpsql.so
/usr/local/lib/libodbcpsql.so.1
/usr/local/lib/libodbcinst.so
/usr/local/lib/libodbcnnS.so.1
/usr/lib64/libodbcinst.so.2
/usr/lib64/libodbc.so.2.0.0
/usr/lib64/libodbc.la
/usr/lib64/libodbcinst.la
/usr/lib64/libodbccr.so.2.0.0
/usr/lib64/libodbccr.so.2
/usr/lib64/libodbccr.so
/usr/lib64/libodbccr.la
/usr/lib64/libodbc.so
/usr/lib64/libodbcinst.so.2.0.0
/usr/lib64/libodbcinst.so
/usr/lib64/libodbc.so.2
/usr/share/doc/libodbc1
/usr/share/lintian/overrides/libodbc1
/usr/lib/x86_64-linux-gnu/libodbc.so.1
/usr/lib/x86_64-linux-gnu/libodbcinst.so.2
/usr/lib/x86_64-linux-gnu/libodbc.so.2.0.0
/usr/lib/x86_64-linux-gnu/libodbc.la
/usr/lib/x86_64-linux-gnu/libodbcinst.la
/usr/lib/x86_64-linux-gnu/libodbccr.so.1
/usr/lib/x86_64-linux-gnu/libodbccr.so.2.0.0
/usr/lib/x86_64-linux-gnu/libodbccr.so.2
/usr/lib/x86_64-linux-gnu/libodbccr.so
/usr/lib/x86_64-linux-gnu/odbc/libodbctxtS.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcdrvcfg1S.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcminiS.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcnnS.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcdrvcfg2S.so
/usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so
/usr/lib/x86_64-linux-gnu/libodbcinst.so.1
/usr/lib/x86_64-linux-gnu/libodbccr.la
/usr/lib/x86_64-linux-gnu/libodbc.so
/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0
/usr/lib/x86_64-linux-gnu/libodbcinst.so
/usr/lib/x86_64-linux-gnu/libodbc.so.2
Hi @emalherbi ,
Looks like you have 3 different Driver Managers (unixODBC) installed in your machine. I am guessing the libs in /usr/lib/x86_64-linux-gnu/ are installed using apt-get, the rest are installed manually. Is there any reason why you have multiple versions of unixODBC?
Could you also post the output of ldd /opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.0.so.0.0?
@emalherbi any updates? :)
Sorry for late... But I had to format my computer... Now de odbc is correctly (@ulvii), ok?
unixODBC 2.3.1
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /home/eduardo/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
Now Works. Tks @ulvii ...
I have a similar problem with building sqlsrv on Ubuntu, however I get a different error message (please see the log below).
pecl install sqlsrv
Starting to download sqlsrv-4.0.8.tgz (192,155 bytes)
.........................................done: 192,155 bytes
33 source files, building
running: phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
building in /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8
running: /tmp/pear/temp/sqlsrv/configure --with-php-config=/home/morozov/.phpbrew/php/php-7.1.5/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 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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /home/morozov/.phpbrew/php/php-7.1.5
checking for PHP includes... -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib
checking for PHP extension directory... /home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix... /home/morozov/.phpbrew/php/php-7.1.5/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable sqlsrv functions... yes, shared
checking for SQLSRV headers... /tmp/pear/temp/sqlsrv/shared/
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 for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... 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
creating libtool
appending configuration tag "CXX" to libtool
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
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/conn.cpp -o conn.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/util.cpp -o util.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/init.cpp -o init.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/stmt.cpp -o stmt.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_conn.cpp -o shared/core_conn.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_results.cpp -o shared/core_results.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_stream.cpp -o shared/core_stream.lo
/bin/bash /tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_init.cpp -o shared/core_init.lo
/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool: line 1283: shared/core_conn.loT: No such file or directory
mkdir shared/.libs
/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool: line 1283: shared/core_init.loT: No such file or directory
mkdir: cannot create directory 'shared/.libs': No such file or directory
mkdir shared/.libs
Makefile:202: recipe for target 'shared/core_conn.lo' failed
make: *** [shared/core_conn.lo] Error 1
make: *** Waiting for unfinished jobs....
mkdir: cannot create directory 'shared/.libs': No such file or directory
mkdir .libs
Makefile:208: recipe for target 'shared/core_init.lo' failed
make: *** [shared/core_init.lo] Error 1
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/conn.cpp -fPIC -DPIC -o .libs/conn.o
/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool: line 1283: shared/core_stream.loT: No such file or directory
mkdir shared/.libs
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/init.cpp -fPIC -DPIC -o .libs/init.o
mkdir: cannot create directory 'shared/.libs': No such file or directory
/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/libtool: line 1283: shared/core_results.loT: No such file or directory
Makefile:206: recipe for target 'shared/core_stream.lo' failed
make: *** [shared/core_stream.lo] Error 1
mkdir shared/.libs
mkdir: cannot create directory 'shared/.libs': No such file or directory
Makefile:204: recipe for target 'shared/core_results.lo' failed
make: *** [shared/core_results.lo] Error 1
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/stmt.cpp -fPIC -DPIC -o .libs/stmt.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/include -I/tmp/pear/temp/pear-build-morozovl87wS2/sqlsrv-4.0.8/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/util.cpp -fPIC -DPIC -o .libs/util.o
/tmp/pear/temp/sqlsrv/stmt.cpp:31:75: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char* ss_sqlsrv_stmt::resource_name = static_cast<char *>("ss_sqlsrv_stmt"); // not const for a reason. see sqlsrv_stmt in php_sqlsrv.h
^
/tmp/pear/temp/sqlsrv/conn.cpp:152:75: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char* ss_sqlsrv_conn::resource_name = static_cast<char *>("ss_sqlsrv_conn");
^
In file included from /home/morozov/.phpbrew/php/php-7.1.5/include/php/main/php_ini.h:24:0,
from /home/morozov/.phpbrew/php/php-7.1.5/include/php/main/fopen_wrappers.h:26,
from /home/morozov/.phpbrew/php/php-7.1.5/include/php/main/php.h:407,
from /tmp/pear/temp/sqlsrv/shared/core_sqlsrv.h:34,
from /tmp/pear/temp/sqlsrv/php_sqlsrv.h:25,
from /tmp/pear/temp/sqlsrv/init.cpp:19:
/tmp/pear/temp/sqlsrv/init.cpp: In function ‘int zm_activate_sqlsrv(int, int)’:
/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
#define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)
^
/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend/zend_ini.h:142:37: note: in expansion of macro ‘INI_INT’
#define INI_BOOL(name) ((zend_bool) INI_INT(name))
^
/tmp/pear/temp/sqlsrv/init.cpp:639:45: note: in expansion of macro ‘INI_BOOL’
SQLSRV_G( warnings_return_as_errors ) = INI_BOOL( INI_PREFIX INI_WARNINGS_RETURN_AS_ERRORS);
^
/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
#define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)
^
/tmp/pear/temp/sqlsrv/init.cpp:640:32: note: in expansion of macro ‘INI_INT’
SQLSRV_G( log_severity ) = INI_INT( INI_PREFIX INI_LOG_SEVERITY);
^
/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
#define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)
^
/tmp/pear/temp/sqlsrv/init.cpp:641:34: note: in expansion of macro ‘INI_INT’
SQLSRV_G( log_subsystems ) = INI_INT( INI_PREFIX INI_LOG_SUBSYSTEMS);
^
/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
#define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)
^
/tmp/pear/temp/sqlsrv/init.cpp:642:40: note: in expansion of macro ‘INI_INT’
SQLSRV_G( buffered_query_limit ) = INI_INT( INI_PREFIX INI_BUFFERED_QUERY_LIMIT);
^
ERROR: `make' failed
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
odbcinst -j
unixODBC 2.3.1
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /home/morozov/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
odbcinst -q -d -n "ODBC Driver 13 for SQL Server"
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 13 for SQL Server
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.7.0
UsageCount=1
The build fails if started as pecl install but works if I do pecl download && tar -xf && phpize && ./configure && make && make install.
Can you guys try targeting the latest release?
pecl install sqlsrv-4.1.9preview
That one worked:
pecl install sqlsrv-4.1.8preview
downloading sqlsrv-4.1.8preview.tgz ...
Starting to download sqlsrv-4.1.8preview.tgz (195,103 bytes)
.........................................done: 195,103 bytes
33 source files, building
running: phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
building in /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview
running: /tmp/pear/temp/sqlsrv/configure --with-php-config=/home/morozov/.phpbrew/php/php-7.1.5/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 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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /home/morozov/.phpbrew/php/php-7.1.5
checking for PHP includes... -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib
checking for PHP extension directory... /home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix... /home/morozov/.phpbrew/php/php-7.1.5/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable sqlsrv functions... yes, shared
checking for SQLSRV headers... /tmp/pear/temp/sqlsrv/shared/
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 for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... 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
creating libtool
appending configuration tag "CXX" to libtool
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
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/conn.cpp -o conn.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/util.cpp -o util.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/init.cpp -o init.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/stmt.cpp -o stmt.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_conn.cpp -o shared/core_conn.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_results.cpp -o shared/core_results.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_stream.cpp -o shared/core_stream.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_init.cpp -o shared/core_init.lo
mkdir shared/.libs
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_init.cpp -fPIC -DPIC -o shared/.libs/core_init.o
mkdir .libs
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/init.cpp -fPIC -DPIC -o .libs/init.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_conn.cpp -fPIC -DPIC -o shared/.libs/core_conn.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/util.cpp -fPIC -DPIC -o .libs/util.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/conn.cpp -fPIC -DPIC -o .libs/conn.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/stmt.cpp -fPIC -DPIC -o .libs/stmt.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_results.cpp -fPIC -DPIC -o shared/.libs/core_results.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_stream.cpp -fPIC -DPIC -o shared/.libs/core_stream.o
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_stmt.cpp -o shared/core_stmt.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_util.cpp -o shared/core_util.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/FormattedPrint.cpp -o shared/FormattedPrint.lo
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_util.cpp -fPIC -DPIC -o shared/.libs/core_util.o
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/localizationimpl.cpp -o shared/localizationimpl.lo
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/StringFunctions.cpp -o shared/StringFunctions.lo
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/core_stmt.cpp -fPIC -DPIC -o shared/.libs/core_stmt.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/FormattedPrint.cpp -fPIC -DPIC -o shared/.libs/FormattedPrint.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/StringFunctions.cpp -fPIC -DPIC -o shared/.libs/StringFunctions.o
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -c /tmp/pear/temp/sqlsrv/shared/localizationimpl.cpp -fPIC -DPIC -o shared/.libs/localizationimpl.o
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/include -I/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/main -I/tmp/pear/temp/sqlsrv -I/home/morozov/.phpbrew/php/php-7.1.5/include/php -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/main -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/TSRM -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/Zend -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext -I/home/morozov/.phpbrew/php/php-7.1.5/include/php/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -g -O2 -o sqlsrv.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/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/S
tringFunctions.lo -lstdc++ -lodbc -lodbcinst
cc -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 -lstdc++ -lodbc -lodbcinst -Wl,-soname -Wl,sqlsrv.so -o .libs/sqlsrv.so
creating sqlsrv.la
(cd .libs && rm -f sqlsrv.la && ln -s ../sqlsrv.la sqlsrv.la)
/bin/bash /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/libtool --mode=install cp ./sqlsrv.la /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/modules
cp ./.libs/sqlsrv.so /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/modules/sqlsrv.so
cp ./.libs/sqlsrv.lai /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/modules/sqlsrv.la
PATH="$PATH:/sbin" ldconfig -n /tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/temp/pear-build-morozoviNoFMn/sqlsrv-4.1.8preview/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'.
running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview" install
Installing shared extensions: /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions/no-debug-non-zts-20160303/
running: find "/tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview" | xargs ls -dils
920055 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview
920184 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home
920185 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov
920186 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew
920187 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php
920188 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5
920189 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5/lib
920190 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5/lib/php
920191 4 drwxrwxr-x 3 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions
920192 4 drwxrwxr-x 2 morozov morozov 4096 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions/no-debug-non-zts-20160303
920183 804 -rwxr-xr-x 1 morozov morozov 820744 May 15 17:16 /tmp/pear/temp/pear-build-morozoviNoFMn/install-sqlsrv-4.1.8preview/home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions/no-debug-non-zts-20160303/sqlsrv.so
Build process completed successfully
Installing '/home/morozov/.phpbrew/php/php-7.1.5/lib/php/extensions/no-debug-non-zts-20160303/sqlsrv.so'
install ok: channel://pecl.php.net/sqlsrv-4.1.8preview
configuration option "php_ini" is not set to php.ini location
You should add "extension=sqlsrv.so" to php.ini
You need to run:
Running on CentOS, I've followed this guide. I ran
pecl download sqlsrv
tar xvzf sqlsrv-5.6.0.tgz
cd sqlsrv-5.6.0/
phpize
./configure --with-php-config=/usr/bin/php-config
make
at which point I get
/bin/sh /home/robert/sqlsrv-5.6.0/libtool --mode=compile g++ -std=c++11 -I. -I/home/robert/sqlsrv-5.6.0 -DPHP_ATOM_INC -I/home/robert/sqlsrv-5.6.0/include -I/home/robert/sqlsrv-5.6.0/main -I/home/robert/sqlsrv-5.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/robert/sqlsrv-5.6.0/shared -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /home/robert/sqlsrv-5.6.0/conn.cpp -o conn.lo
libtool: compile: g++ -std=c++11 -I. -I/home/robert/sqlsrv-5.6.0 -DPHP_ATOM_INC -I/home/robert/sqlsrv-5.6.0/include -I/home/robert/sqlsrv-5.6.0/main -I/home/robert/sqlsrv-5.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/robert/sqlsrv-5.6.0/shared -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /home/robert/sqlsrv-5.6.0/conn.cpp -fPIC -DPIC -o .libs/conn.o
In file included from /usr/include/php/Zend/zend_types.h:27:0,
from /usr/include/php/Zend/zend.h:29,
from /usr/include/php/main/php.h:35,
from /home/robert/sqlsrv-5.6.0/php_sqlsrv.h:25,
from /home/robert/sqlsrv-5.6.0/conn.cpp:21:
/usr/include/php/Zend/zend_operators.h: In function ‘void fast_long_increment_function(zval*)’:
/usr/include/php/Zend/zend_operators.h:446:68: error: ‘__builtin_saddl_overflow’ was not declared in this scope
if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), 1, &lresult))) {
^
/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro ‘UNEXPECTED’
# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
^
/usr/include/php/Zend/zend_operators.h: In function ‘void fast_long_decrement_function(zval*)’:
/usr/include/php/Zend/zend_operators.h:500:68: error: ‘__builtin_ssubl_overflow’ was not declared in this scope
if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), 1, &lresult))) {
^
/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro ‘UNEXPECTED’
# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
^
/usr/include/php/Zend/zend_operators.h: In function ‘void fast_long_add_function(zval*, zval*, zval*)’:
/usr/include/php/Zend/zend_operators.h:554:80: error: ‘__builtin_saddl_overflow’ was not declared in this scope
if (UNEXPECTED(__builtin_saddl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) {
^
/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro ‘UNEXPECTED’
# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
^
/usr/include/php/Zend/zend_operators.h: In function ‘void fast_long_sub_function(zval*, zval*, zval*)’:
/usr/include/php/Zend/zend_operators.h:657:80: error: ‘__builtin_ssubl_overflow’ was not declared in this scope
if (UNEXPECTED(__builtin_ssubl_overflow(Z_LVAL_P(op1), Z_LVAL_P(op2), &lresult))) {
^
/usr/include/php/Zend/zend_portability.h:312:52: note: in definition of macro ‘UNEXPECTED’
# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)
^
make: *** [conn.lo] Error 1
@robertmain
Did you follow Step 1?
The following steps should be done first before compiling:
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
sudo yum install devtoolset-7
scl enable devtoolset-7 bash
If it's unclear, you can follow this tutorial too
Wow, thanks for the quick reply @yitam!
Yes, I did do that, but I'm still having trouble compiling. I'll try again though...
If not working please create a new issue instead, @robertmain
Aha! It looks to be working now!
still getting error
Makefile:206: recipe for target 'shared/core_stream.lo' failed
make: * [shared/core_stream.lo] Error 1
ERROR: `make' failed
@hardeeksharma please create a new issue and provide more details by answering the questions in a new issue template.
unixODBC 2.3.7
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
PHP 7.3.13-1+ubuntu18.04.1+ install
I have followed everything what you have mentioned above install the below package because it did not let me install sqlsrv-5.6.0 and Build process completed successfully
Installing '/usr/lib/php/20190902/sqlsrv.so'
install ok: channel://pecl.php.net/sqlsrv-5.7.1preview
but unable to load the sqlsrv drivers and it is throwing error as below:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20180731/pdo_sqlsrv.so (/usr/lib/php/20180731/pdo_sqlsrv.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/pdo_sqlsrv.so.so (/usr/lib/php/20180731/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Please help on this, Many thanks,
@shiromani2018
let me install sqlsrv-5.6.0 and Build process completed successfully
Installing '/usr/lib/php/20190902/sqlsrv.so'
install ok: channel://pecl.php.net/sqlsrv-5.7.1preview
You mentioned two versions the driver, 5.6.0 and 5.7.1 preview. Which one do you want? Also, looks like you have php 7.4 as well (20190902). Issue #1075 might give you some insights. If not, please create a new issue.
Hi,
That is superfast reply, I m so please with this first. You guys are great! 😊
Yes, I do have php7.4 is install too but I made php7.3 is a default to make this work. Ideally, I like to have a php7.4 and 5.7.1 preview but which is did not work so that I have to lower down the php version to 7.3.
I also tried to RUN this command pecl install sqlsrv but did not work and it only let me install 5.7.1. Hope it makes sense.
Many thanks,
Mani
@shiromani2018https://github.com/shiromani2018
let me install sqlsrv-5.6.0 and Build process completed successfully
Installing '/usr/lib/php/20190902/sqlsrv.so'
install ok: channel://pecl.php.net/sqlsrv-5.7.1preview
You mentioned two versions the driver, 5.6.0 and 5.7.1 preview. Which one do you want? Also, looks like you have php 7.4 as well (20190902). Issue #1075https://github.com/microsoft/msphpsql/issues/1075 might give you some insights. If not, please create a new issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/msphpsql/issues/370?email_source=notifications&email_token=AJMMJ23ZXVJP66HQXGWBW7DQ64O2PA5CNFSM4DINUAI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJQLDBY#issuecomment-576762247, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJMMJ24SC4VZLXX2DWOYIBTQ64O2PANCNFSM4DINUAIQ.
As I mentioned above, have you checked issue #1075? Very similar issue.
Ideally, I like to have a php7.4 and 5.7.1 preview but which is did not work
What do you mean it did not work, @shiromani2018 ? Did you do sudo pecl install sqlsrv-5.7.1preview?
Hi Jenny,
I have followed that thoroughly but it did not help me at all. My logs are as below:
running: phpize
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
Many thanks,
Mani
From: Jenny Tam notifications@github.com
Sent: 21 January 2020 16:56
As I mentioned above, have you checked issue #1075https://github.com/microsoft/msphpsql/issues/1075? Very similar issue.
Ideally, I like to have a php7.4 and 5.7.1 preview but which is did not work
What do you mean it did not work, @shiromani2018https://github.com/shiromani2018 ? Did you do sudo pecl install sqlsrv-5.7.1preview?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/msphpsql/issues/370?email_source=notifications&email_token=AJMMJ26IV3GKZEESMTTIYZ3Q64SLBA5CNFSM4DINUAI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJQOPSI#issuecomment-576776137, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJMMJ26ZYYVPLN557GU5723Q64SLBANCNFSM4DINUAIQ.
Please create a new issue @shiromani2018
does anyone know any docker image that contains this drive already installed, here where I work we need this drive to consult the system of another company but we always go through the same suffering to configure this drive on a new machine
Most helpful comment
You need to run: