From: bbenbouzid at lear dot com
Operating system: AIX 5.2
PHP version: 5.2.9
PHP Bug Type: Compile Failure
Bug description: unixODBC
Description:
------------
Hello,
I am trying to built unixODBC with PHP to be able to connect to progress
Database. But this process failed with the follwoing error message:
#./configure --with-unixODBC=/usr/local/unixODBC
# make
....
....
-I/usr/include -g -O2 -c /ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c -o
ext/odbc/php_odbc.lo
In file included from /usr/local/unixODBC/include/sql.h:19,
from
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc_includes.h:118,
from /ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:37:
/usr/local/unixODBC/include/sqltypes.h:177:1: warning: "SQLLEN" redefined
In file included from /ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:36:
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.h:34:1: warning: this is the
location of the previous definition
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c: In function
'zif_odbc_execute':
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:993: warning: useless type name
in empty declaration
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:993: error: 'precision'
undeclared (first use in this function)
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:993: error: (Each undeclared
identifier is reported only once
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:993: error: for each function
it appears in.)
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c: In function
'zif_odbc_fetch_into':
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1568: warning: useless type
name in empty declaration
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1568: error: 'crow' undeclared
(first use in this function)
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c: In function
'zif_odbc_fetch_row':
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1725: warning: useless type
name in empty declaration
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1725: error: 'crow' undeclared
(first use in this function)
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c: In function
'zif_odbc_result':
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1789: warning: useless type
name in empty declaration
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1789: error: 'crow' undeclared
(first use in this function)
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c: In function
'zif_odbc_result_all':
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1960: warning: useless type
name in empty declaration
/ssc-ams/PHP/php-5.2.9/ext/odbc/php_odbc.c:1960: error: 'crow' undeclared
(first use in this function)
make: 1254-004 The error code from the last command is 1.
Stop.
Please help.
Thanks in advance.
Belkacem
--
Edit bug report at http://bugs.php.net/?id=48459&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48459&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48459&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48459&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48459&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48459&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48459&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48459&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48459&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48459&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48459&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48459&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48459&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48459&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48459&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48459&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48459&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48459&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48459&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48459&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48459&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48459&r=mysqlcfg