Subject: pkg/33691: net/netcat6 fails to build (+fix)
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 06/10/2006 16:45:00
>Number:         33691
>Category:       pkg
>Synopsis:       net/netcat6 fails to build.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 10 16:45:00 +0000 2006
>Release:        NetBSD 3.99.21
System: NetBSD 3.99.21 NetBSD 3.99.21 (ATLAS) #0: Sat Jun 10 12:31:01 CEST 2006 amd64
Architecture: x86_64
Machine: amd64
	net/netcat6 fails to build on a -current system w/ gcc4 due to a 
conflicting redifinition of alloca:

source='netsupport.c' object='netsupport.o' libtool=no  depfile='.deps/netsupport.Po' tmpdepfile='.deps/netsupport.TPo'  depmode=gcc3 /bin/sh ../config/depcomp  cc -DHAVE_CONFIG_H -I. -I. -I..  -I../contrib -I../intl -DLOCALEDIR=\"/usr/pkg/share/locale\"  -I/usr/include -O2 -I/usr/include  -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wcast-align -finline-functions -O2 -I/usr/include -c `test -f 'netsupport.c' || echo './'`netsupport.c
netsupport.c:42: warning: function declaration isn't a prototype
netsupport.c:42: error: conflicting types for 'alloca'
*** Error code 1

	Try to build net/netcat6
	Have the existing workaround for FreeBSD and DragonFlyBSD apply to
NetBSD as well. 

Index: patches/patch-aa
RCS file: /cvsroot/pkgsrc/net/netcat6/patches/patch-aa,v
retrieving revision 1.3
diff -r1.3 patch-aa
< --- src/netsupport.c.orig	2006-03-14 01:33:01.000000000 +0000
> --- src/netsupport.c.orig	2006-01-19 23:46:23.000000000 +0100
< +#if !defined(alloca) && !defined(__DragonFly__) && !defined(__FreeBSD__)
> +#if !defined(alloca) && !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__NetBSD__)