[PATCH] Compile Failure With freetds0.82
| Bug #44991 | [PATCH] Compile Failure With freetds0.82 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2008-05-14 05:08 UTC | Modified: | 2008-10-04 13:21 UTC |
|
||||||||||
| From: | scourgen at gmail dot com | Assigned: | ||||||||||||
| Status: | Closed | Package: | MSSQL related | |||||||||||
| PHP Version: | 5.2.6 | OS: | Centos5.1(k2.6.18) | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2008-05-14 05:08 UTC] scourgen at gmail dot com
Description: ------------ compile failure with freetds version 0.82(no tds.h,libtds.so) Reproduce code: --------------- configure: ./configure --with-mssql=/usr/local/freetds Expected result: ---------------- configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory Actual result: -------------- there is no tds.h,libtds.so in freetds install directory(just in freetds version 0.82)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-05-29 20:09 UTC] brodie at mcw dot edu
[2008-06-12 00:19 UTC] jklowden at freetds dot org
This diff is what you want. --jkl --- config.m4-new 2008-06-11 20:13:47.000000000 -0400 +++ config.m4 2007-07-03 13:25:34.000000000 -0400 @@ -10,11 +10,11 @@ if test "$PHP_MSSQL" = "yes"; then for i in /usr/local /usr; do - if test -f $i/include/sybdb.h; then + if test -f $i/include/tds.h; then FREETDS_INSTALLATION_DIR=$i FREETDS_INCLUDE_DIR=$i/include break - elif test -f $i/include/freetds/sybdb.h; then + elif test -f $i/include/freetds/tds.h; then FREETDS_INSTALLATION_DIR=$i FREETDS_INCLUDE_DIR=$i/include/freetds break @@ -27,10 +27,10 @@ elif test "$PHP_MSSQL" != "no"; then - if test -f $PHP_MSSQL/include/sybdb.h; then + if test -f $PHP_MSSQL/include/tds.h; then FREETDS_INSTALLATION_DIR=$PHP_MSSQL FREETDS_INCLUDE_DIR=$PHP_MSSQL/include - elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then + elif test -f $PHP_MSSQL/include/freetds/tds.h; then FREETDS_INSTALLATION_DIR=$PHP_MSSQL FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds else @@ -38,8 +38,8 @@ fi fi - if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then - AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.[a|so]) + if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.so"; then + AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libtds.[a|so]) fi PHP_ADD_INCLUDE($FREETDS_INCLUDE_DIR)[2008-07-16 18:59 UTC] hoffie at gentoo dot org
[2008-07-26 06:54 UTC] seikath at gmail dot com
[2008-10-04 13:21 UTC] felipe@php.net