tcl-snmptools: fix for -fno-common. ok naddy@

This commit is contained in:
matthieu 2021-02-02 19:35:13 +00:00
parent d20c075f11
commit 188433bf54
3 changed files with 32 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.7 2019/07/12 21:15:35 sthen Exp $
# $OpenBSD: Makefile,v 1.8 2021/02/02 19:35:13 matthieu Exp $
COMMENT = Tcl package that provides SNMP tools
V = 1.0
DISTNAME = tcl-snmptools-${V}
REVISION = 1
REVISION = 2
CATEGORIES = net
MAINTAINER = Matthieu Herrb <matthieu@openbsd.org>

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-generic_snmptools_c,v 1.1 2021/02/02 19:35:13 matthieu Exp $
Fix for -fno-common
Index: generic/snmptools.c
--- generic/snmptools.c.orig
+++ generic/snmptools.c
@@ -39,6 +39,8 @@ static int snmpCmd(ClientData clientData, Tcl_Interp *
static int sessionCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]);
+Tcl_DString Result;
+
/*
* Function Bodies
*/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-generic_util_h,v 1.1 2021/02/02 19:35:13 matthieu Exp $
fix for -fno-common
--- generic/util.h.orig Tue Jan 29 10:09:38 2008
+++ generic/util.h Tue Feb 2 07:43:51 2021
@@ -48,7 +48,6 @@
# define TMP "/tmp"
#endif
-Tcl_DString Result;
extern Tcl_DString Result;
int printres(const char *fmt, ...);