From ak03@gte.com  Thu Sep  5 12:03:28 2002
Return-Path: <ak03@gte.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3903A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Sep 2002 12:03:28 -0700 (PDT)
Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2DFB643E65
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  5 Sep 2002 12:03:27 -0700 (PDT)
	(envelope-from ak03@gte.com)
Received: from kanpc.gte.com (localhost [IPv6:::1])
	by h132-197-179-27.gte.com (8.12.5/8.12.5) with ESMTP id g85J3QOB076712
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 5 Sep 2002 15:03:26 -0400 (EDT)
	(envelope-from ak03@kanpc.gte.com)
Received: (from ak03@localhost)
	by kanpc.gte.com (8.12.6/8.12.6/Submit) id g85J3PZ7076711;
	Thu, 5 Sep 2002 15:03:25 -0400 (EDT)
Message-Id: <200209051903.g85J3PZ7076711@kanpc.gte.com>
Date: Thu, 5 Sep 2002 15:03:25 -0400 (EDT)
From: Alexander Kabaev <ak03@gte.com>
Reply-To: Alexander Kabaev <ak03@gte.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fix DDD-3.3.1 build on -CURRENT
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42454
>Category:       ports
>Synopsis:       Fix DDD-3.3.1 build on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 12:10:03 PDT 2002
>Closed-Date:    Fri Sep 06 21:41:43 PDT 2002
>Last-Modified:  Fri Sep 06 21:41:43 PDT 2002
>Originator:     Alexander Kabaev
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD kanpc.gte.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Sep 1 12:18:56 EDT 2002 root@kanpc.gte.com:/usr/obj/usr/src/sys/KANPC i386


	
>Description:
	Make DDD build on CURRENT with GCC 3.x.
	Tested on both -CURRENT and -STABLE
>How-To-Repeat:
	N/A
>Fix:
Note: patch-str* are new files.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/ddd/Makefile,v
retrieving revision 1.40
diff -u -r1.40 Makefile
--- Makefile	14 May 2002 16:58:42 -0000	1.40
+++ Makefile	5 Sep 2002 18:40:14 -0000
@@ -25,6 +25,8 @@
 
 MAN1=		ddd.1
 
+CFLAGS+= -Wno-deprecated
+
 .if defined(MOTIFLIB)
 .if defined(MOTIF_STATIC)
 LIBXMDIR!=	${ECHO_CMD} ${MOTIFLIB} | ${SED} -e 's/\/libXm\.a//g' | ${AWK} '{print $$1}'
Index: files/patch-02
===================================================================
RCS file: /home/ncvs/ports/devel/ddd/files/patch-02,v
retrieving revision 1.5
diff -u -r1.5 patch-02
--- files/patch-02	9 Apr 2002 06:59:29 -0000	1.5
+++ files/patch-02	5 Sep 2002 18:40:14 -0000
@@ -6,6 +6,9 @@
 @@ -1961 +1961 @@
 -for ac_prog in 'bison -y' byacc
 +for ac_prog in byacc
+@@ -6168 +6168 @@
+-#include <iostream.h>
++#include <fstream.h>
 @@ -13358 +13358 @@
 -  egrep "${ice_re_word}ioctl *\(" >/dev/null 2>&1; then
 +  egrep "${ice_re_word}\(?ioctl\)? *\(" >/dev/null 2>&1; then
Index: files/patch-strerror.c
===================================================================
RCS file: files/patch-strerror.c
diff -N files/patch-strerror.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-strerror.c	5 Sep 2002 18:46:27 -0000
@@ -0,0 +1,17 @@
+--- libiberty/strerror.c.orig	Wed Sep  4 12:56:21 2002
++++ libiberty/strerror.c	Wed Sep  4 12:56:45 2002
+@@ -454,7 +454,7 @@
+    We don't export it for use in other modules because even though it has the
+    same name, it differs from other implementations in that it is dynamically
+    initialized rather than statically initialized. */
+-
++#ifndef __FreeBSD__
+ #ifndef HAVE_SYS_ERRLIST
+ 
+ static int sys_nerr;
+@@ -465,6 +465,7 @@
+ extern int sys_nerr;
+ extern char *sys_errlist[];
+ 
++#endif
+ #endif
Index: files/patch-strsignal.c
===================================================================
RCS file: files/patch-strsignal.c
diff -N files/patch-strsignal.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-strsignal.c	5 Sep 2002 18:49:23 -0000
@@ -0,0 +1,17 @@
+--- libiberty/strsignal.c.orig	Wed Sep  4 12:32:03 2002
++++ libiberty/strsignal.c	Wed Sep  4 12:32:52 2002
+@@ -236,6 +236,7 @@
+    same name, it differs from other implementations in that it is dynamically
+    initialized rather than statically initialized. */
+ 
++#ifndef __FreeBSD__
+ #ifndef HAVE_SYS_SIGLIST
+ 
+ static int sys_nsig;
+@@ -252,6 +253,7 @@
+ #endif
+ extern const char * const sys_siglist[];
+ 
++#endif
+ #endif
+ 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->lioux 
Responsible-Changed-By: ijliao 
Responsible-Changed-When: Fri Sep 6 20:19:53 PDT 2002 
Responsible-Changed-Why:  
over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42454 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Sep 6 21:41:33 PDT 2002 
State-Changed-Why:  
Patches committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42454 
>Unformatted:
