Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo pecl install sqlsrv causes error on char size #1078

Closed
sqlAllAround opened this issue Jan 16, 2020 · 5 comments
Closed

sudo pecl install sqlsrv causes error on char size #1078

sqlAllAround opened this issue Jan 16, 2020 · 5 comments

Comments

@sqlAllAround
Copy link

Banging my head. Is there a config that changes the unsigned integer to something that compiles?

sudo pecl install sqlsrv

errors out with:

g++ -std=c++11 -I. -I/tmp/pear/temp/sqlsrv -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootZ76h5K/sqlsrv-5.6.1/include -I/tmp/pear/temp/pear-build-rootZ76h5K/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]
};
^
Makefile:204: recipe for target 'shared/core_stream.lo' failed
make: *** [shared/core_stream.lo] Error 1
ERROR: `make' failed
yeh@linux1:/etc/php/7.4$ sudo update-alternatives --set phpize /usr/bin/phpize7.1
update-alternatives: error: alternative /usr/bin/phpize7.1 for phpize not registered; not setting
yeh@linux1:/etc/php/7.4$ ^C

php -v
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.1, Copyright (c), by Zend Technologies

@yitam
Copy link
Contributor

yitam commented Jan 16, 2020

@sqlAllAround v5.6.1 do not support 7.4. Please do sudo pecl install sqlsrv-5.7.1preview or wait for the next stable release.

@miurabo
Copy link

miurabo commented Jan 17, 2020

@yitam Thank you. I was able to install.

@miurabo
Copy link

miurabo commented Jan 17, 2020

pdo_sqlsrv can be made with:

sudo pecl install pdo_sqlsrv-5.7.1preview

@yitam
Copy link
Contributor

yitam commented Jan 17, 2020

Thanks @miurabo for the confirmation

@yitam
Copy link
Contributor

yitam commented Jan 22, 2020

@sqlAllAround we are going to close this issue due to inactivity. Please feel free to reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants