Edit report at https://bugs.php.net/bug.php?id=50689&edit=1
ID: 50689 Updated by: [email protected] Reported by: fmostini at aerolineas dot com dot ar Summary: PHP don't compile error php_odbc.c when pdo_informix -Status: Feedback +Status: No Feedback Type: Bug Package: PDO related Operating System: Linux SLES10 32bit PHP Version: 5.2.12 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2010-12-03 20:24:32] fmostini at aerolineas dot com dot ar Hi After applying diff patch provided and recompiling again, appears errors when using GUID Structure, related to a types WORD and DWORD. I made a dirty fix, including #include <sqltypes.h> at the beginning of the ext/odbc/php_odbc_includes.h This allows php_odbc.c compiles successful, but should find the proper place to define or include these types (WORD/DWORD) in the file. In file included from /home/mostinif/php-5.2.14/ext/odbc/php_odbc.c:37: /home/mostinif/php-5.2.14/ext/odbc/php_odbc_includes.h:122: error: expected specifier-qualifier-list before âDWORDâ /home/mostinif/php-5.2.14/ext/odbc/php_odbc.c: In function âzif_odbc_columnsâ: /home/mostinif/php-5.2.14/ext/odbc/php_odbc.c:2964: warning: comparison between pointer and integer make: *** [ext/odbc/php_odbc.lo] Error 1 Best regards, Flavio ------------------------------------------------------------------------ [2010-11-24 17:06:05] [email protected] I attached a patch that defines the GUID struct if not already defined prior to the inclusion of sqlext.h, does that fix the problem for you? ------------------------------------------------------------------------ [2010-11-24 17:05:21] [email protected] The following patch has been added/updated: Patch Name: bug50689 Revision: 1290614721 URL: http://bugs.php.net/patch-display.php?bug=50689&patch=bug50689&revision=1290614721 ------------------------------------------------------------------------ [2010-01-08 01:56:35] fmostini at aerolineas dot com dot ar PDO INFORMIX is 1.2.6 (not .26) ------------------------------------------------------------------------ [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; ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=50689 -- Edit this bug report at https://bugs.php.net/bug.php?id=50689&edit=1
