From owner-freebsd-questions@freebsd.org Sat Dec 14 19:55:50 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5102F1D5C56 for ; Sat, 14 Dec 2019 19:55:50 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47ZyvV0WNTz3CnM for ; Sat, 14 Dec 2019 19:55:49 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id xBEJtaoZ034294 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 14 Dec 2019 20:55:37 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1576353337; bh=h2lZSb6TCtrorsCFhOYlpN/t/qO4q9/VpNX52Fm6Afw=; h=Date:From:To:Subject:In-Reply-To:References; b=n1L3ykapVRaJSmThs8cIKh/7Vl4KobsSYTMCrYkCYb3WanRiiqi+U1Grd30Pic4yx gEmnKhg2aBhAYGYunLRZX7e86pkClf7pWyqE5bgbWfrvGU9ScCveCtViak6W9X/Hqz QGZqMilw6QI5jFvUzEH9G3GceB1UOIvROQuw3vVaQmPIwD7KGguLBCFO/fp7oQILAZ nbg/ioqgj9WwPqnf/iWGZCD1v/vE87U8/JL5dfPoMGNHjgVOSVZW2J9C/LgaZzMcS2 2Hhv5Aoap11YIhA40M3lKJoYcpmjB/Cu6HHCfPb6x8B3HkyG/D5s7lPy3h5wtni8Sv H8xgj3hmNSdQQ== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id xBEJtaQU034291 for ; Sat, 14 Dec 2019 20:55:36 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Sat, 14 Dec 2019 20:55:36 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-questions@freebsd.org Subject: Re: Building "Kleopatra" with debug symbols In-Reply-To: <20191214141334.00001fbf@seibercom.net> Message-ID: References: <20191214141334.00001fbf@seibercom.net> User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on enterprise.ximalas.info X-Rspamd-Queue-Id: 47ZyvV0WNTz3CnM X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Dec 2019 19:55:50 -0000 On Sat, 14 Dec 2019 14:13-0500, Jerry wrote: > I am having a problem with "Kleopatra" crashing. Unfortunately, the > back-trace is useless. I was told to build "Kleopatra" with debugging > symbols. > > I have tried a few methods I found while Googling, but nothing actually > worked. Probably, because they were based on Linux. > > Can anyone tel me how to go about it? I had to do the same for net/ocserv a while back. Option 1: Create /usr/ports/security/kleopatra/Makefile.local, giving it this content: WITH_DEBUG=YES Option 2: Add the aforementioned line to /etc/make.conf. Don't forget to remove or comment it out when you have rebuilt Kleopatra, otherwise all ports will be built with debug symbols, leading to huge executables all over /usr/local. I prefer the first option as it gives me finegrained control over which ports are built with debug symbols or other customizations. -- Trond.