From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.6RC3 PHP Bug Type: MSSQL related Bug description: FreeTDS support will not compile
Description: ------------ See bug #21544 -- I was asked to open a new report. ./configure --with-mssql ... works, but a make of the same fails with: (see actual result). FreeTDS version: (debian unstable) 0.53-7 Sniper mentioned that he thinks it's my FreeTDS install. Could be. The attached patch seems to completely fix the problem, though. As mentioned in the other bug: I'm not a C guy, so I could be way wrong on this. All I know is that after patching, --with-mssql compiles and the library seems to work (as) well (as mssql on linux has ever worked). S --- Index: ext/mssql/php_mssql.c =================================================================== RCS file: /repository/php-src/ext/mssql/php_mssql.c,v retrieving revision 1.86.2.31 diff -u -r1.86.2.31 php_mssql.c --- ext/mssql/php_mssql.c 30 Mar 2004 17:54:38 -0000 1.86.2.31 +++ ext/mssql/php_mssql.c 14 Apr 2004 15:18:18 -0000 @@ -336,7 +336,7 @@ dbsetlogintime(MS_SQL_G(connect_timeout)); if (MS_SQL_G(timeout) < 0) MS_SQL_G(timeout) = 60; dbsettime(MS_SQL_G(timeout)); - dbsetmaxprocs((SHORT)MS_SQL_G(max_procs)); + dbsetmaxprocs((int)MS_SQL_G(max_procs)); return SUCCESS; } Reproduce code: --------------- n/a Expected result: ---------------- compile Actual result: -------------- ext/mssql/php_mssql.c: In function `zm_activate_mssql': ext/mssql/php_mssql.c:339: `SHORT' undeclared (first use in this function) ext/mssql/php_mssql.c:339: (Each undeclared identifier is reported only once ext/mssql/php_mssql.c:339: for each function it appears in.) make: *** [ext/mssql/php_mssql.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=28007&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28007&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28007&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28007&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28007&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28007&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28007&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28007&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28007&r=support Expected behavior: http://bugs.php.net/fix.php?id=28007&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28007&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28007&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28007&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28007&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28007&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28007&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28007&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28007&r=float