Bug #71887 [NEW]: fatal error: odbcsdk.h: No such file or directory

From: Date: Wed, 23 Mar 2016 10:31:18 +0000
Subject: Bug #71887 [NEW]: fatal error: odbcsdk.h: No such file or directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200056@lists.php.net to get a copy of this message
From:             vvvaagn at gmail dot com
Operating system: debian
PHP version:      7.0.5RC1
Package:          PDO related
Bug Type:         Bug
Bug description:fatal error: odbcsdk.h: No such file or directory  

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 bug report at https://bugs.php.net/bug.php?id=71887&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71887&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71887&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71887&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71887&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71887&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71887&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71887&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71887&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71887&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71887&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71887&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71887&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71887&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71887&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71887&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71887&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71887&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71887&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71887&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71887&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#200056) next »