Answer the question
In order to leave comments, you need to log in
Error building db driver for mssql make: *** [Makefile:204: shared/core_stream.lo] Error 1?
I have Debian 10,
Php 7.4.1, Nginx, php-fpm
I need to connect to the MS SQL server
I go to the off site
https://docs.microsoft.com/ru-RU/sql/connect/php/installation-tutorial-linux-mac?view=aps-pdw-2016#installing-the-drivers-on-debian-8-and-9
sudo apt-get install -y curl apt-transport-https php7.4 php7.4-dev php7.4-xml
https://docs.microsoft.com/ru-RU/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=aps-pdw-2016
sudo pecl install sqlsrv
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/include -I/tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/main -I/tmp/pear/temp/sqlsrv -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/pear/temp/sqlsrv/shared/core_results.cpp -fPIC -DPIC -o shared/.libs/core_results.o
/bin/bash /tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/libtool --mode=compile g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/include -I/tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/main -I/tmp/pear/temp/sqlsrv -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/pear/temp/sqlsrv/shared/core_stream.cpp -o shared/core_stream.lo
g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/include -I/tmp/pear/temp/pear-build-rootZdvETm/sqlsrv-5.6.1/main -I/tmp/pear/temp/sqlsrv -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -I/tmp/pear/temp/sqlsrv/shared/ -DHAVE_CONFIG_H -std=c++11 -D_FORTIFY_SOURCE=2 -O2 -fstack-protector -c /tmp/pear/temp/sqlsrv/shared/core_stream.cpp -fPIC -DPIC -o shared/.libs/core_stream.o
/tmp/pear/temp/sqlsrv/shared/core_stream.cpp:209:1: error: invalid conversion from ‘size_t (*)(php_stream*, char*, size_t)’ {aka ‘long unsigned int (*)(_php_stream*, char*, long unsigned int)’} to ‘ssize_t (*)(php_stream*, char*, size_t)’ {aka ‘long int (*)(_php_stream*, char*, long unsigned int)’} [-fpermissive]
};
^
make: *** [Makefile:204: shared/core_stream.lo] Error 1
Answer the question
In order to leave comments, you need to log in
do not install php 7.4 for a while until the drivers are ported
well, or port it yourself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question