Subject: pkg/36943: net/ttt fails to build with gcc4 (please update to 1.8.2)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Yakovetsky Vladimir <yx@x.ua>
List: pkgsrc-bugs
Date: 09/07/2007 08:20:00
>Number: 36943
>Category: pkg
>Synopsis: net/ttt: fails to build (please update to 1.8.2)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Sep 07 08:20:00 +0000 2007
>Originator: Yakovetsky Vladimir
>Release: NetBSD 4.99.29
>Organization:
>Environment:
System: NetBSD lrou.x.ua 4.99.29 NetBSD 4.99.29 (lrou_odd-1.840) #0: Wed Aug 15 18:46:47 EEST 2007 yx@lrou.x.ua:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386
>Description:
net/ttt fails to build with gcc4
(writable-strings support is excluded)
>How-To-Repeat:
% cd /usr/pkgsrc/net/ttt
% make
...
cc -O2 -Wall -Wwrite-strings -fwritable-strings -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_GETHOSTENT=1 -DHAVE_LIBM=1 -DIPV6 -DTTT_LIBRARY=\"/usr/pkg/lib/ttt\" -I. -I/usr/pkg/include/tk8.4 -I/usr/pkg/include/tcl8.4 -I/usr/pkg/include -INONE -I/usr/pkg/include -c ttt.c
cc1: error: unrecognized command line option "-fwritable-strings"
*** Error code 1
Stop.
>Fix:
update to 1.8.2:
Makefile.diff + adapted to 1.8.2 patch-ab below
(patches -aa and -ac without changes)
--- net/ttt/Makefile.orig
+++ net/ttt/Makefile
@@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.16 2006/09/03 00:56:30 wiz Exp $
#
-DISTNAME= ttt-1.8.1
-PKGREVISION= 2
+DISTNAME= ttt-1.8.2
CATEGORIES= net
MASTER_SITES= ftp://ftp.csl.sony.co.jp/pub/kjc/
:r net/ttt/patches/patch-ab
--- net_names.c.orig
+++ net_names.c
@@ -126,6 +126,9 @@
#define IPPROTO_OSPFIGP 89 /* OSPFIGP */
#endif
+static char *inet6_ntoa(u_int32_t *addr); /* should be replaced
+ by addr2ascii */
+
static struct pname_tab ip_tab[] =
{
{ "tcp", IPPROTO_TCP }, /* tcp */
@@ -261,8 +264,6 @@
case TTTTYPE_IPV6HOST:
{
u_int32_t tmp[4];
- static char *inet6_ntoa(u_int32_t *addr); /* should be replaced
- by addr2ascii */
if ((buf = malloc(sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx")))
== NULL)
fatal_error("get_protoname: no memory\n");