#50689 [Opn]: PHP don't compile error php_odbc.c when pdo_informix

From: Date: Fri, 08 Jan 2010 01:56:36 +0000
Subject: #50689 [Opn]: PHP don't compile error php_odbc.c when pdo_informix
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146426@lists.php.net to get a copy of this message
 ID:               50689
 User updated by:  fmostini at aerolineas dot com dot ar
 Reported By:      fmostini at aerolineas dot com dot ar
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: Linux SLES10 32bit
 PHP Version:      5.2.12
 New Comment:

PDO INFORMIX is 1.2.6 (not .26)


Previous Comments:
------------------------------------------------------------------------

[2010-01-07 21:29:11] fmostini at aerolineas dot com dot ar

in $INFORMIXDIR/incl/cli/sqlext.h lines 2044 for some reason the GUID
tag is undefined in previus includes
php-5.2.12/ext/odbc/php_odbc_includes.h:119

typedef struct tagODBC_VS_ARGS {
        const GUID      *pguidEvent;    /* the GUID for event */
        DWORD   dwFlags;                /* flags for the call */
        union {
                WCHAR   *wszArg;
                CHAR    *szArg;
        };
        union {
                WCHAR   *wszCorrelation;
                CHAR    *szCorrelation;
        };
        RETCODE RetCode;
} ODBC_VS_ARGS, *PODBC_VS_ARGS;

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

[2010-01-07 21:15:25] fmostini at aerolineas dot com dot ar

Description:
------------
Informix PDO 1.2.26 
Informix ClientSDK 3.50
SUSE Linux Enterprise Server 10SP2


./configure  --prefix=/usr --datadir=/usr/share/php5
--mandir=/usr/share/man --bindir=/usr/bin \
        --with-libdir=lib \
        --includedir=/usr/includei \
        --sysconfdir=/etc/php5/apache2 \
        --with-config-file-path=/etc/php5/apache2 \
        --with-config-file-scan-dir=/etc/php5/conf.d  \
        --enable-spl \
        --enable-calendar \
        --enable-filter \
        --enable-ftp    \
        --enable-gd-native-ttf \
        --enable-inline-optimization \
        --enable-safe-mode \
        --enable-session \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-shared \
        --enable-shmop \
        --disable-debug \
        --disable-rpath \
        --program-suffix=5 \
        --with-apxs2=/usr/sbin/apxs2 \
        --with-bz2  \
        --with-gd \
        --with-gettext   \
        --with-informix=/opt/informix \
        --with-pdo-informix=/opt/informix \
        --with-jpeg-dir=/usr \
        --with-mm \
        --with-mysql \
        --with-openssl \
        --with-pear \
        --with-pcre-regex \
        --with-pic \
        --with-ttf \
        --with-unixODBC=/usr  \
        --with-zlib \
        --enable-xml \
        --enable-simplexml \
        --enable-libxml \
        --enable-sigchild



lxalem01:/home/mostinif/php-5.2.12 # make
/bin/sh /home/mostinif/php-5.2.12/libtool --silent --preserve-dup-deps
--mode=compile gcc -I/usr/include -Iext/odbc/
-I/home/mostinif/php-5.2.12/ext/odbc/ -DPHP_ATOM_INC
-I/home/mostinif/php-5.2.12/include -I/home/mostinif/php-5.2.12/main
-I/home/mostinif/php-5.2.12 -I/home/mostinif/php-5.2.12/ext/date/lib
-I/usr/include/libxml2 -I/usr/include/freetype -I/usr/include/mysql
-I/opt/informix/incl/cli -I/opt/informix/incl/esql
-I/home/mostinif/php-5.2.12/TSRM -I/home/mostinif/php-5.2.12/Zend   
-I/usr/include -g -O2  -prefer-pic -c
/home/mostinif/php-5.2.12/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo
In file included from
/home/mostinif/php-5.2.12/ext/odbc/php_odbc_includes.h:119,
                 from
/home/mostinif/php-5.2.12/ext/odbc/php_odbc.c:37:
/opt/informix/incl/cli/sqlext.h:2044: error: expected ':', ',', ';',
'}' or '__attribute__' before '*' token
/home/mostinif/php-5.2.12/ext/odbc/php_odbc.c: In function
'zif_odbc_columns'


The problem don't happen in php 5.2.9



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


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



Thread (7 messages)

« previous php.bugs (#146426) next »