php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71887 fatal error: odbcsdk.h: No such file or directory
Submitted: 2016-03-23 10:31 UTC Modified: 2021-03-05 18:22 UTC
From: vvvaagn at gmail dot com Assigned: cmb (profile)
Status: Closed Package: PDO related
PHP Version: 7.0.5RC1 OS: debian
Private report: No CVE-ID: None
 [2016-03-23 10:31 UTC] vvvaagn at gmail dot com
Description:
------------
hi
I want do built php with this configuration

./configure --enable-all --without-imap  --without-oci8  --without-adabas --enable-opcache=no --disable-pcntl --without-sapdb --without-solid  --without-ibm-db2  --without-pdo-oci --without-pdo-odbc --without-pdo-pgsql --without-pgsql  --without-readline --without-libedit --without-recode --without-snmp -without-odbcver  --without-iodbc  --without-pdo-mysql --without-pdo-firebird --without-pdo-dblib --without-iodbc 

Test script:
---------------
but got this error 

/bin/bash /root/php-src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/phar/ -I/root/php-src/ext/phar/ -DPHP_ATOM_INC -I/root/php-src/include -I/root/php-src/main -I/root/php-src -I/root/php-src/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/opt/firebird/include -I/root/php-src/ext/mbstring/oniguruma -I/root/php-src/ext/mbstring/libmbfl -I/root/php-src/ext/mbstring/libmbfl/mbfl -I/root/php-src/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/root/php-src/ext/zip/lib -I/root/php-src/TSRM -I/root/php-src/Zend    -I/usr/include -g -O2 -fvisibility=hidden   -c /root/php-src/ext/phar/dirstream.c -o ext/phar/dirstream.lo 
In file included from /root/php-src/ext/odbc/php_odbc.c:37:0:
/root/php-src/ext/odbc/php_odbc_includes.h:135:21: fatal error: odbcsdk.h: No such file or directory
 #include <odbcsdk.h>
                     ^
compilation terminated.
/bin/bash /root/php-src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/phar/ -I/root/php-src/ext/phar/ -DPHP_ATOM_INC -I/root/php-src/include -I/root/php-src/main -I/root/php-src -I/root/php-src/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/opt/firebird/include -I/root/php-src/ext/mbstring/oniguruma -I/root/php-src/ext/mbstring/libmbfl -I/root/php-src/ext/mbstring/libmbfl/mbfl -I/root/php-src/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/root/php-src/ext/zip/lib -I/root/php-src/TSRM -I/root/php-src/Zend    -I/usr/include -g -O2 -fvisibility=hidden   -c /root/php-src/ext/phar/phar.c -o ext/phar/phar.lo 
/bin/bash /root/php-src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/phar/ -I/root/php-src/ext/phar/ -DPHP_ATOM_INC -I/root/php-src/include -I/root/php-src/main -I/root/php-src -I/root/php-src/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/opt/firebird/include -I/root/php-src/ext/mbstring/oniguruma -I/root/php-src/ext/mbstring/libmbfl -I/root/php-src/ext/mbstring/libmbfl/mbfl -I/root/php-src/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/root/php-src/ext/zip/lib -I/root/php-src/TSRM -I/root/php-src/Zend    -I/usr/include -g -O2 -fvisibility=hidden   -c /root/php-src/ext/phar/phar_object.c -o ext/phar/phar_object.lo 
/bin/bash /root/php-src/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/phar/ -I/root/php-src/ext/phar/ -DPHP_ATOM_INC -I/root/php-src/include -I/root/php-src/main -I/root/php-src -I/root/php-src/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/opt/firebird/include -I/root/php-src/ext/mbstring/oniguruma -I/root/php-src/ext/mbstring/libmbfl -I/root/php-src/ext/mbstring/libmbfl/mbfl -I/root/php-src/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/root/php-src/ext/zip/lib -I/root/php-src/TSRM -I/root/php-src/Zend    -I/usr/include -g -O2 -fvisibility=hidden   -c /root/php-src/ext/phar/phar_path_check.c -o ext/phar/phar_path_check.lo 
Makefile:1493: recipe for target 'ext/odbc/php_odbc.lo' failed
make: *** [ext/odbc/php_odbc.lo] Error 1
make: *** Waiting for unfinished jobs....
root@dns:~/php-src# 

/root/php-src/ext/odbc/php_odbc_includes.h:135:21: fatal error: odbcsdk.h: No such file or directory
 #include <odbcsdk.h>


I can't fount this file

Can you help me, how I can built in? what I do wrong, tnx



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-05 18:22 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-05 18:22 UTC] cmb@php.net
odbcsdk.h is no longer included as of PHP 7.3.0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC