From owner-freebsd-questions@freebsd.org Mon Dec 30 18:45:09 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 01A331E733B for ; Mon, 30 Dec 2019 18:45:09 +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 47mmZW6wRWz4MX3 for ; Mon, 30 Dec 2019 18:45:07 +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 xBUIj189071948 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 30 Dec 2019 19:45:01 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1577731501; bh=pNqL6Lh3i8kN9CXbs4CtLCVmhcb1NhwIOGyWrHHJemE=; h=Date:From:To:Subject:In-Reply-To:References; b=evsQwcU+YMxqtocfSYZN4KpaDaHHXWbbd4XMezhrdkPeWpr7HQbqtr5TUtKkyNehE JQ7LCy5I/2Vqc+dsrqY32SMuwwPrr59uU14eGKJEndydFuMpZ65vFIyCVaN/Ce/9rn 65hTonYCcsOoydcldkMG4UovcUA7lV9pRbpju/BNbwwfxaMthR1z6IQGv6tXrGdJq2 qgGasVyJREMduDRq5FrPhl1v0BZz2BUdDY17alFkXTTzqu6qMkPTVm3fj+w4XNQMh8 AGEunFGeo9dE53x8Rf5rHE7GAArcc8SS/s1SGIL122N+Bmg+ydLXp6yJLW2rku/613 zWXFe9HMZubCg== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id xBUIj1e9071945 for ; Mon, 30 Dec 2019 19:45:01 +0100 (CET) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Mon, 30 Dec 2019 19:45:01 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-questions@freebsd.org Subject: Re: perl confusion --> failed to start spamd In-Reply-To: Message-ID: References: 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=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_INVALID, DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.3 X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on enterprise.ximalas.info X-Rspamd-Queue-Id: 47mmZW6wRWz4MX3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=evsQwcU+; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; HAS_XAW(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; IP_SCORE(-2.00)[ip: (-7.96), ipnet: 2001:700::/32(-1.29), asn: 224(-0.74), country: NO(-0.01)] 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: Mon, 30 Dec 2019 18:45:09 -0000 On Mon, 30 Dec 2019 13:39-0500, Andy Firman wrote: > Hi, > > I recently updated a "php" package due to security vulns. This caused a > problem with Apache, and (thanks to this mailing list) I was told I need to > upgrade package "apr". During that process, something happened with perl, > and I now have 2 versions installed. Now I am unable to use spamassassin. > How do I troubleshoot this? > > FreeBSD 12.0-RELEASE-p10 > > #pkg info |grep perl > > perl5-5.30.0 Practical Extraction and Report Language > perl5.28-5.28.2 Practical Extraction and Report Language > > # /usr/local/etc/rc.d/sa-spamd start > Starting spamd. > Can't locate NetAddr/IP.pm in @INC (you may need to install the NetAddr::IP > module) (@INC contains: /usr/local/lib/perl5/site_perl For some reason you're missing net-mgmt/p5-NetAddr-IP. Either pkg add net-mgmt/p5-NetAddr-IP, or (forcefully) reapply mail/spamassassin. Here's the dependency list for mail/spamassassin on my system, and yours should be the same: Depends on : p5-HTTP-Date-6.05 p5-HTML-Parser-3.72 p5-Net-IDN-Encode-2.500 p5-IO-Socket-SSL-2.066 p5-Digest-SHA1-2.13_1 p5-Crypt-OpenSSL-RSA-0.31 gnupg-2.2.19 p5-URI-1.76 p5-Net-CIDR-Lite-0.21_1 p5-NetAddr-IP-4.079 razor-agents-2.84_1 py37-pyzor-1.0.0 p5-Mail-SPF-2.9.0_5 p5-Mail-DKIM-0.57 perl5-5.30.1 p5-Net-LibIDN-0.12_5 p5-Net-DNS-1.21,1 re2c-0.14.3 p5-Encode-Detect-1.01_1 > /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/5.30/mach > /usr/local/lib/perl5/5.30) at > /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/Util.pm line 70. > BEGIN failed--compilation aborted at > /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/Util.pm line 70. > Compilation failed in require at > /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/Conf.pm line 85. > BEGIN failed--compilation aborted at > /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/Conf.pm line 85. > Compilation failed in require at > /usr/local/lib/perl5/site_perl/Mail/SpamAssassin.pm line 71. > BEGIN failed--compilation aborted at > /usr/local/lib/perl5/site_perl/Mail/SpamAssassin.pm line 71. > Compilation failed in require at /usr/local/bin/spamd line 240. > BEGIN failed--compilation aborted at /usr/local/bin/spamd line 240. > /usr/local/etc/rc.d/sa-spamd: WARNING: failed to start spamd -- Trond.