Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2002 15:03:25 -0400 (EDT)
From:      Alexander Kabaev <ak03@gte.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42454: Fix DDD-3.3.1 build on -CURRENT
Message-ID:  <200209051903.g85J3PZ7076711@kanpc.gte.com>

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

>Number:         42454
>Category:       ports
>Synopsis:       Fix DDD-3.3.1 build on -CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 12:10:03 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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