Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  8 Jun 2004 12:21:43 +0300 (EEST)
From:      Henry Karpatskij <henkka@spheroid.info>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67710: PHP 4.3.7 wont compile with FreeTDS MsSQL extension [RESEND]
Message-ID:  <20040608092143.C24AA10D@eloris.spheroid.info>
Resent-Message-ID: <200406080930.i589UWmv082245@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67710
>Category:       ports
>Synopsis:       PHP 4.3.7 wont compile with FreeTDS MsSQL extension [RESEND]
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 08 09:30:32 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Henry Karpatskij
>Release:        FreeBSD 4.9-RELEASE-p4 i386
>Organization:
none
>Environment:
System: FreeBSD eloris.spheroid.info 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #0: Thu Mar 18 00:29:33 EET 2004 root@eloris.
spheroid.info:/usr/obj/usr/src/sys/ELORIS i386

>Description:
        PHP compile process fails as described in <http://bugs.php.net/bug.php?id=28626>;

	Ob: I'm resending this one with a proper email address (sorry about that)

>How-To-Repeat:
        Just compile PHP with FreeTDS MsSQL support.
>Fix:
        Add the following files to the lang/php4/files directory and recompile PHP.

------------------------------------------------------------
patch-ext::mssql::php_mssql.h
------------------------------------------------------------

--- ext/mssql/php_mssql.h.orig  Tue Jun  8 11:24:27 2004
+++ ext/mssql/php_mssql.h       Tue Jun  8 11:23:39 2004
@@ -17,7 +17,7 @@
  */


-/* $Id: php_mssql.h,v 1.23.4.10 2004/04/20 23:37:26 fmk Exp $ */
+/* $Id: php_mssql.h,v 1.23.4.11 2004/06/04 01:02:21 pollita Exp $ */

 #ifndef PHP_MSSQL_H
 #define PHP_MSSQL_H
@@ -37,9 +37,7 @@
 #include "sqldb.h"

 #if HAVE_FREETDS
-#ifndef SHORT
-typedef short SHORT;
-#endif
+typedef short TDS_SHORT;
 #define SQLTEXT SYBTEXT
 #define SQLCHAR SYBCHAR
 #define SQLVARCHAR SYBVARCHAR

------------------------------------------------------------
patch-ext::mssql::php_mssql.c
------------------------------------------------------------

--- ext/mssql/php_mssql.c.orig  Tue Jun  8 11:24:50 2004
+++ ext/mssql/php_mssql.c       Tue Jun  8 11:23:22 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */

-/* $Id: php_mssql.c,v 1.86.2.32 2004/04/20 23:31:39 fmk Exp $ */
+/* $Id: php_mssql.c,v 1.86.2.33 2004/06/04 01:02:21 pollita Exp $ */

 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -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((TDS_SHORT)MS_SQL_G(max_procs));

        return SUCCESS;
 }
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040608092143.C24AA10D>