From owner-freebsd-isdn@freebsd.org Mon Feb 22 10:16:34 2016 Return-Path: Delivered-To: freebsd-isdn@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37E0FAAF7F7 for ; Mon, 22 Feb 2016 10:16:34 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0DE414C3 for ; Mon, 22 Feb 2016 10:16:32 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (pD9FE990D.dip0.t-ipconnect.de [217.254.153.13]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id u1M98KLF027318; Mon, 22 Feb 2016 10:08:20 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id u1M98SQu016230; Mon, 22 Feb 2016 10:08:28 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id u1M97qVX025180; Mon, 22 Feb 2016 10:08:10 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201602220908.u1M97qVX025180@fire.js.berklix.net> To: Andreas Longwitz cc: Hans Petter Selasky , freebsd-isdn@freebsd.org Subject: Re: chan_capi error after update From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-URL: http://www.berklix.eu In-reply-to: Your message "Mon, 22 Feb 2016 09:38:59 +0100." <56CAC923.8030704@incore.de> Date: Mon, 22 Feb 2016 10:07:52 +0100 X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 10:16:34 -0000 Andreas Longwitz wrote: > Hi Hans, > > >> because I have > >> > >> ASTCFLAGS+=-DDEBUG_THREADS -DBETTER_BACKTRACES -DNO_OPTIMIZE > >> > >> in the configure step. Then I found PR/193610 which includes your > >> comment to the compiler flag "-fno-omit-frame-pointer". After adding > >> this flag to the asterisk18 Makefile the dumps are gone and on my > >> (small) test machine everything works as expected. > >> > >> Maybe it is better to use this flag for chan_capi too ? > >> > > > > I've now created version 2.0.17 of chan_capi and that also includes an > > option to use clang to compile it, which supports the -fblocks argument. > > I think 8.4-stable has the clang compiler? > > No, I use FreeBSD 8 (no clang) and 10 (has clang). My asterisk version > from from port branch 2014Q4 has the entry "USE_GCC=YES" in his Makefile > independent of OS version. > > > -- > Andreas Longwitz In case it might help anyone, I looked on my laptop with 4 MBR slices with latest minor releases of each major, (3 releases not stables though) S1 8.4-RELEASE S3 9.3-RELEASE S2 10.2-RELEASE S4 11.0-CURRENT chroot /s1 head -1 /etc/motd FreeBSD 8.4-RELEASE (LAPR.small) #0: Fri May 9 02:23:49 CEST 2014 which clang /usr/local/bin/clang clang -v clang version 3.2 (tags/RELEASE_32/final) Target: amd64-portbld-freebsd8.4 Thread model: posix which cc /usr/bin/cc cc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] ------ head -1 /etc/motd FreeBSD 9.3-RELEASE (LAPR.small) #1: Tue Nov 4 22:22:57 CET 2014 which clang /usr/bin/clang clang -v FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd9.3 Thread model: posix Selected GCC installation: which cc /usr/bin/cc cc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070831 patched [FreeBSD] ------ head -1 /etc/motd FreeBSD 10.2-RELEASE (LAPR.small) #0: Tue Jan 19 21:14:45 CET 2016 which clang /usr/bin/clang clang -v FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix Selected GCC installation: which cc /usr/bin/cc cc -v FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 Target: x86_64-unknown-freebsd10.2 Thread model: posix Selected GCC installation: ------ S4 Current: head -1 /etc/motd FreeBSD 11.0-CURRENT (GENERIC) #0 r295216M: Thu Feb 4 12:18:23 CET 2016 which clang /usr/bin/clang clang -v FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225 Target: x86_64-unknown-freebsd11.0 Thread model: posix which cc /usr/bin/cc cc -v FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225 Target: x86_64-unknown-freebsd11.0 Thread model: posix ------ Cheers, Julian -- Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/ Mail plain text, No quoted-printable, HTML, base64, MS.doc. Prefix old lines '> ' Reply below old, like play script. Break lines by 80.