Compile failure with freetds 0.91
| Bug #60267 | Compile failure with freetds 0.91 | ||||
|---|---|---|---|---|---|
| Submitted: | 2011-11-11 13:31 UTC | Modified: | 2011-11-16 12:13 UTC | ||
| From: | gnubug at billmann-edv dot net | Assigned: | felipe (profile) | ||
| Status: | Closed | Package: | Compile Failure | ||
| PHP Version: | 5.3.9RC1 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2011-11-11 13:31 UTC] gnubug at billmann-edv dot net
Description: ------------ Trying to use PHP 5.3 (and 5.4) with the current FreeTDS 0.91 results in the following error message: In file included from php-5.4.0RC1/ext/mssql/php_mssql.c:33: php-5.4.0RC1/ext/mssql/php_mssql.h:69: error: redefinition of typedef 'LPBYTE' include/sqlfront.h:35: note: previous declaration of 'LPBYTE' was here It seems that FreeTDS expects PHP_MSSQL_API to be defined which isn't anymore as of PHP 5.3. Simply adding "#define PHP_MSSQL_API" to ext/mssql/php_mssql.h in line 24 solves this error... I'm not sure whether this should be considered a PHP or FreeTDS problem... Regards Oliver
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2011-11-12 00:04 UTC] gnubug at billmann-edv dot net
[2011-11-16 10:27 UTC] art dot frela at gmail dot com
[2011-11-16 12:09 UTC] felipe@php.net
[2011-11-16 12:13 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
[2012-06-29 08:27 UTC] emanuele dot coniglio at grupposme dot com