Bug #71887 [Opn->Csd]: fatal error: odbcsdk.h: No such file or directory

From: Date: Fri, 05 Mar 2021 18:22:25 +0000
Subject: Bug #71887 [Opn->Csd]: fatal error: odbcsdk.h: No such file or directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232581@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71887&edit=1

 ID:                 71887
 Updated by:         cmb@php.net
 Reported by:        vvvaagn at gmail dot com
 Summary:            fatal error: odbcsdk.h: No such file or directory
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            PDO related
 Operating System:   debian
 PHP Version:        7.0.5RC1
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

odbcsdk.h is no longer included as of PHP 7.3.0.


Previous Comments:
------------------------------------------------------------------------
[2016-03-23 10:31:11] 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




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71887&edit=1


Thread (2 messages)

« previous php.bugs (#232581) next »