Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2006 11:15:47 GMT
From:      Ronald MacNeil <macro@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/99178: [patch] to build security/gnupg-devel with gcc41
Message-ID:  <200606191115.k5JBFlMU014758@www.freebsd.org>
Resent-Message-ID: <200606191120.k5JBKNGn067702@freefall.freebsd.org>

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

>Number:         99178
>Category:       ports
>Synopsis:       [patch] to build security/gnupg-devel with gcc41
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 19 11:20:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Ronald MacNeil
>Release:        7-CURRENT
>Organization:
>Environment:
FreeBSD ... 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jun 10 01:02:59 EST 2006
..@...:/usr/obj/usr/src/sys/MYKERNEL  i386

>Description:
There is an instance in security/gnupg-devel where the stpcpy function is static redefined, which gcc41 doesn't like and refuses to compile.

>How-To-Repeat:

>Fix:
The following patch (obtained from gnupg cvs) adds an #ifndef HAVE_STPCPY check which fixes the problem and allows one to build the port with gcc41.  The patch should be added as a new patch file in the port's files/ subdirectory.

Love your work, guys.
Ron



--- tools/gpgparsemail.c.orig	Mon Jun 19 20:58:24 2006
+++ tools/gpgparsemail.c	Mon Jun 19 21:00:31 2006
@@ -24,6 +24,9 @@
    for the content of the line.  Several options are available to
    scrutinize the message.  S/MIME and OpenPGP support is included. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -145,6 +148,7 @@
   return p;
 }
 
+#ifndef HAVE_STPCPY
 static char *
 stpcpy (char *a,const char *b)
 {
@@ -154,6 +158,7 @@
   
   return (char*)a;
 }
+#endif
 
 
 static int

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



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