Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2020 22:52:48 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r522062 - head/net/asterisk-g72x
Message-ID:  <202001042252.004MqmuP058585@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Jan  4 22:52:48 2020
New Revision: 522062
URL: https://svnweb.freebsd.org/changeset/ports/522062

Log:
  net/asterisk-g72x: fix build of GCC architectures
  
  C11 compiler is necessary:
  In file included from codec_g72x.c:26:
  /usr/local/include/asterisk/lock.h: In function 'ast_atomic_fetchadd_int':
  /usr/local/include/asterisk/lock.h:752: error: '__ATOMIC_RELAXED' undeclared (first use in this function)
  /usr/local/include/asterisk/lock.h:752: error: (Each undeclared identifier is reported only once
  /usr/local/include/asterisk/lock.h:752: error: for each function it appears in.)
  /usr/local/include/asterisk/lock.h: In function 'ast_atomic_dec_and_test':
  /usr/local/include/asterisk/lock.h:762: error: '__ATOMIC_RELAXED' undeclared (first use in this function)
  
  MFH:		2020Q1 (fix build blanket)

Modified:
  head/net/asterisk-g72x/Makefile

Modified: head/net/asterisk-g72x/Makefile
==============================================================================
--- head/net/asterisk-g72x/Makefile	Sat Jan  4 20:47:57 2020	(r522061)
+++ head/net/asterisk-g72x/Makefile	Sat Jan  4 22:52:48 2020	(r522062)
@@ -33,7 +33,7 @@ CONFIGURE_ARGS+=		--with-asterisk160
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=	--with-bcg729
-USES=		autoreconf compiler libtool localbase tar:bzip2
+USES=		autoreconf compiler:c11 libtool localbase tar:bzip2
 
 PLIST_FILES=	lib/asterisk/modules/codec_g729.so
 



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