From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 8 09:20:19 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A45F816A4CE for ; Tue, 8 Jun 2004 09:20:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99E4043D48 for ; Tue, 8 Jun 2004 09:20:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i589KJcG081519 for ; Tue, 8 Jun 2004 09:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i589KJjv081518; Tue, 8 Jun 2004 09:20:19 GMT (envelope-from gnats) Resent-Date: Tue, 8 Jun 2004 09:20:19 GMT Resent-Message-Id: <200406080920.i589KJjv081518@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henry Karpatskij Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44A0616A518 for ; Tue, 8 Jun 2004 09:10:44 +0000 (GMT) Received: from eloris.spheroid.info (eloris.spheroid.info [62.142.98.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBE1343D1D for ; Tue, 8 Jun 2004 09:10:43 +0000 (GMT) (envelope-from henkka@eloris.spheroid.info) Received: from localhost (localhost [127.0.0.1]) by eloris.spheroid.info (Postfix) with ESMTP id D2EAB115 for ; Tue, 8 Jun 2004 12:10:40 +0300 (EEST) Received: from eloris.spheroid.info ([127.0.0.1]) by localhost (eloris.spheroid.info [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 39589-04-2 for ; Tue, 8 Jun 2004 12:10:36 +0300 (EEST) Received: by eloris.spheroid.info (Postfix, from userid 1001) id 5C3FD10D; Tue, 8 Jun 2004 12:10:36 +0300 (EEST) Message-Id: <20040608091036.5C3FD10D@eloris.spheroid.info> Date: Tue, 8 Jun 2004 12:10:36 +0300 (EEST) From: Henry Karpatskij To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/67708: PHP 4.3.7 wont compile with FreeTDS MsSQL extension X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Henry Karpatskij List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 09:20:19 -0000 >Number: 67708 >Category: ports >Synopsis: PHP 4.3.7 wont compile with FreeTDS MsSQL extension >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:20:19 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 >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 <--- [ EOF ] -- --[ 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; } <--- [ EOF ] -- >Release-Note: >Audit-Trail: >Unformatted: