From owner-freebsd-questions@freebsd.org Thu Jan 23 11:42:35 2020 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 8AD2D2365E0 for ; Thu, 23 Jan 2020 11:42:35 +0000 (UTC) (envelope-from stanb@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 483L3v0KqJz4WKR for ; Thu, 23 Jan 2020 11:42:34 +0000 (UTC) (envelope-from stanb@panix.com) Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 483L3s71Ffz1F1l for ; Thu, 23 Jan 2020 06:42:33 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 483L3s5MFgzfYh; Thu, 23 Jan 2020 06:42:33 -0500 (EST) Date: Thu, 23 Jan 2020 06:42:33 -0500 From: stan To: freebsd-questions@freebsd.org Subject: Recompiling openssl library Message-ID: <20200123114233.GA17488@panix.com> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Rspamd-Queue-Id: 483L3v0KqJz4WKR X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of stanb@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=stanb@panix.com X-Spamd-Result: default: False [-5.85 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[89.1.84.166.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:166.84.0.0/16]; 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_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[89.1.84.166.list.dnswl.org : 127.0.5.2]; DMARC_NA(0.00)[panix.com]; IP_SCORE(-3.35)[ip: (-9.48), ipnet: 166.84.0.0/16(-4.00), asn: 2033(-3.20), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Thu, 23 Jan 2020 11:42:35 -0000 I need to recompile the openssl library on the latest released version of FreeBSD with the enable-weak-ssl-cipher option turned on. I need to do this to connect to a large number of devices with old firmware in them, and this is on an internal network. I downloaded the openssl tarball from github, configured it this way, and did a make, and make test. All went well. However the default location to install this is /usr/local, so I thought it made more sense to compile the version in the delivered tree with this option. I went to /usr/src and did a successful make buildworld. Now we get to my issue I see 2 places that the installed binaries might be compile from. These are crypto/openssl or secure/usr.bin/openssl. Looking in secure/usr.bin/openssl (post make buildworld) I do not see sources, just some man pages. Looking in crypto/openssl I do find the sources. So, I tried to run ./config with that option, and here is the result: root@noc-server:/usr/src/crypto/openssl # ./config enable-weak-ssl-ciphers Operating system: amd64-whatever-freebsd Can't locate OpenSSL/Glob.pm in @INC (you may need to install the OpenSSL::Glob module) (@INC contains: /usr/src/crypto/openssl/util/perl /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at ./Configure line 20. BEGIN failed--compilation aborted at ./Configure line 20. Can't locate OpenSSL/Glob.pm in @INC (you may need to install the OpenSSL::Glob module) (@INC contains: /usr/src/crypto/openssl/util/perl /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at ./Configure line 20. BEGIN failed--compilation aborted at ./Configure line 20. This system (BSD-x86_64) is not supported. See file INSTALL for details. What am I doing wrong? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin