Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2020 15:45:44 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r545771 - head/net/libsrtp2/files
Message-ID:  <202008221545.07MFjirB042924@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Sat Aug 22 15:45:44 2020
New Revision: 545771
URL: https://svnweb.freebsd.org/changeset/ports/545771

Log:
  net/libsrtp2: Fix build with -fno-common
  
  Add a patch from upstream that fixes the build of net/libsrtp2 with
  -fno-common, which is the default with llvm 11.
  
  MFH:		2020Q3 (implicit, -fno-common fixes, ok by joenum)

Added:
  head/net/libsrtp2/files/patch-716a7386.c   (contents, props changed)

Added: head/net/libsrtp2/files/patch-716a7386.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libsrtp2/files/patch-716a7386.c	Sat Aug 22 15:45:44 2020	(r545771)
@@ -0,0 +1,26 @@
+diff --git a/crypto/math/datatypes.c b/crypto/math/datatypes.c
+index 001584c1..4fcb3965 100644
+--- crypto/math/datatypes.c
++++ crypto/math/datatypes.c
+@@ -79,7 +79,7 @@ int octet_get_weight(uint8_t octet)
+ 
+ /* the value MAX_PRINT_STRING_LEN is defined in datatypes.h */
+ 
+-char bit_string[MAX_PRINT_STRING_LEN];
++static char bit_string[MAX_PRINT_STRING_LEN];
+ 
+ uint8_t srtp_nibble_to_hex_char(uint8_t nibble)
+ {
+diff --git a/test/util.c b/test/util.c
+index 2abc28e7..c0f76149 100644
+--- test/util.c
++++ test/util.c
+@@ -49,7 +49,7 @@
+ #include <stdint.h>
+ 
+ /* include space for null terminator */
+-char bit_string[MAX_PRINT_STRING_LEN + 1];
++static char bit_string[MAX_PRINT_STRING_LEN + 1];
+ 
+ static inline int hex_char_to_nibble(uint8_t c)
+ {



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