From nobody@FreeBSD.org  Sun Apr 15 13:00:41 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 69B1D16A402
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Apr 2007 13:00:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 2EC2213C44C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Apr 2007 13:00:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l3FD0fQm060919
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Apr 2007 13:00:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l3FCtdM7053957;
	Sun, 15 Apr 2007 12:55:40 GMT
	(envelope-from nobody)
Message-Id: <200704151255.l3FCtdM7053957@www.freebsd.org>
Date: Sun, 15 Apr 2007 12:55:40 GMT
From: Patrick Powell<papowell@astart.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port www/mod_auth_mysql_another patch (repeat with all of patch this time)
X-Send-Pr-Version: www-3.0

>Number:         111601
>Category:       ports
>Synopsis:       port www/mod_auth_mysql_another patch (repeat with all of patch this time)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 15 13:10:01 GMT 2007
>Closed-Date:    Sun Jul 29 12:11:25 GMT 2007
>Last-Modified:  Sun Jul 29 12:20:02 GMT 2007
>Originator:     Patrick Powell
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
Astart Technologies
>Environment:
FreeBSD astart.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Mon Mar 12 13:59:28 PDT 2007 root@laptop.private:/usr/src/sys/i386/compile/SMP i386

>Description:
The current version of the www/mod_auth_mysql_another needs to be updated
to work with the newer/latest version of Apache 2.2.  Basically, the APR
support has changed to use different macros.



>How-To-Repeat:
    Install Apache22:
       cd /usr/ports/www/apache22; make all install
    Make mod_auth_mysql_another
    cd /usr/ports/www/mod_auth_mysql_another
      ... Errors reported are not very informative.
    The cause is that the Apr_Xt... functions/macros are
      now APR_... functions.

>Fix:
Note: the full patch seems to have been truncated from the
last posting,  here is the full patch:


To correct, add:
#define APR_XtOffsetOf APR_OFFSETOF

A new version of /usr/ports/www/mod_auth_mysql_another/files/patch-strcat:

--- mod_auth_mysql.c.orig   Wed Jun 22 09:17:45 2005
+++ mod_auth_mysql.c    Sat Apr 14 08:16:20 2007
@@ -206,7 +206,7 @@
   #define SNPRINTF apr_snprintf
   #define PSTRDUP apr_pstrdup
   #define PSTRNDUP apr_pstrndup
-  #define STRCAT ap_pstrcat
+  #define STRCAT apr_pstrcat
   #define POOL apr_pool_t
   #define POOL apr_pool_t
   #include "http_request.h"   /* for ap_hook_(check_user_id | auth_checker)*/
   #include "ap_compat.h"
@@ -255,6 +255,10 @@
   #define NOT_AUTHORIZED AUTH_REQUIRED
   #define TABLE_GET ap_table_get
   #define ISSPACE ap_isspace
+#endif
+
+#ifndef APR_XtOffsetOf
+#define APR_XtOffsetOf APR_OFFSETOF
 #endif

 #include "util_md5.h"



Note:  when trying to send the patch file using the Browse,  I got the error:

There is an error with your problem report submission. The problem was: Patch file has wrong content type: gotapplication/octet-stream but was expecting one matching text/.*.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mbr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Apr 15 13:10:09 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111601 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun Jul 29 11:57:18 UTC 2007 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111601 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/111601: commit references a PR
Date: Sun, 29 Jul 2007 12:11:15 +0000 (UTC)

 pav         2007-07-29 12:11:07 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www/mod_auth_mysql_another/files patch-strcat 
   Log:
   - Fix build with Apache 2.2
   
   PR:             ports/111601
   Submitted by:   Patrick Powell <papowell@astart.com>
   Approved by:    maintainer timeout (mbr; 3 months)
   
   Revision  Changes    Path
   1.2       +11 -0     ports/www/mod_auth_mysql_another/files/patch-strcat
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
