Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2006 12:46:18 +0900
From:      Tod McQuillin <devin@spamcop.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        demon@FreeBSD.org
Subject:   ports/92242: [PATCH] www/links: [Fix build on 4.x]
Message-ID:  <E1F1F8M-0000wW-BX@mail.distalzou.net>
Resent-Message-ID: <200601240420.k0O4K4J1082898@freefall.freebsd.org>

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

>Number:         92242
>Category:       ports
>Synopsis:       [PATCH] www/links: [Fix build on 4.x]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 24 04:20:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Tod McQuillin
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Dec 15 19:04:55 JST 2005
>Description:
Build fails on FreeBSD 4.x due to variable declared in the middle
of a block which gcc 2.95 doesn't like.

Added file(s):
- files/patch-regexp.c

Port maintainer (demon@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
Try to build on 4.x

>Fix:

--- links-2.1.p20,1.patch begins here ---
Index: files/patch-regexp.c
===================================================================
RCS file: files/patch-regexp.c
diff -N files/patch-regexp.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-regexp.c	24 Jan 2006 03:39:38 -0000
@@ -0,0 +1,19 @@
+--- regexp.c~	Fri Nov 25 02:38:35 2005
++++ regexp.c	Tue Jan 24 12:39:04 2006
+@@ -148,6 +148,7 @@
+ #ifdef HAVE_PCRE
+ 	const char *er_ptr;
+ 	int erroffset;
++	pcre *ppat;
+ #else
+ 	regmatch_t pmat[MAXCAPTURE/3];
+ 	regex_t ppat_data;
+@@ -197,7 +198,7 @@
+ #endif /* REGEX_DEBUG */
+ 	
+ #ifdef HAVE_PCRE
+-	pcre *ppat = pcre_compile(pom, 0/*PCRE_ANCHORED*/, &er_ptr, &erroffset, NULL);
++	ppat = pcre_compile(pom, 0/*PCRE_ANCHORED*/, &er_ptr, &erroffset, NULL);
+ 	pcre_free(pom);
+ #else /* HAVE_PCRE */
+ 	ppat = &ppat_data;
--- links-2.1.p20,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1F1F8M-0000wW-BX>