From owner-freebsd-stable@freebsd.org Thu Jan 2 09:12:00 2020 Return-Path: Delivered-To: freebsd-stable@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 11E551F1F0C for ; Thu, 2 Jan 2020 09:12:00 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (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 47pMjp5F62z46jx for ; Thu, 2 Jan 2020 09:11:58 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:Date:Message-Id:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From; bh=8pMkzoRmcmqgc6iGVlbiPPfKCN4+B4sViEN/9HPbIn8=; b=XUbFFjnOx+qdFe6BYm/h5WEjX2ZDvIRutUGP1rmE0KVDr9xNCyBrz2PtYvoN8KKssWTJ9BhYtGQAzSO1xTttMsSoME3mmdxu/SIvIoETK6MDSAkqsQpS+4ioNqWQWe8lQrAx8MiB5czNJCuHIZtK/9Od2qLlueLoVjywa7Uq15MStgpBpKQAh++g4TlCZ9BfrI9BTyjeplhl3XTV00696PdqjKAlTS+D4vGXSrUiFV3UBIPF82BplEOow6tJOS8hqnoeHyKkddItoL4IsJK3YCxwVBRe7YhBuXfdiTFxxExmbuDJrB63a1LoLEuUOrLb9u6tRosaTOCL8rNGQAHTiA==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1imwWJ-000A95-Uf for freebsd-stable@freebsd.org; Thu, 02 Jan 2020 11:11:55 +0200 From: Daniel Braniss Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: usb QR reader Message-Id: <7DC305EC-7B3F-4859-ABAC-3FF1B2F84B30@cs.huji.ac.il> Date: Thu, 2 Jan 2020 11:11:55 +0200 To: freeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 47pMjp5F62z46jx X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=XUbFFjnO; dmarc=pass (policy=none) header.from=huji.ac.il; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il X-Spamd-Result: default: False [-4.04 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.74)[ip: (-4.36), ipnet: 132.64.0.0/13(-2.44), asn: 378(-1.96), country: IL(0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; RCVD_IN_DNSWL_NONE(0.00)[210.116.65.132.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/13, country:IL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 09:12:00 -0000 Hi,=20 after connecting this QR reader I see a new /dev/ttyU but as soon as I = try tip, the device disconnects. (BTW, it=E2=80=99s configured as a =E2=80=98Virtua= l Serial Port=E2=80=99) dmsg: =E2=80=A6 Jan 2 10:54:57 pampero kernel: umodem0 on uhub1 Jan 2 10:54:57 pampero kernel: umodem0: on usbus0 Jan 2 10:54:57 pampero kernel: umodem0: data interface 1, has no CM = over data, has no break Jan 2 10:56:01 pampero kernel: umodem0: at uhub1, port 2, addr 38 = (disconnected) Jan 2 10:56:02 pampero kernel: umodem0:=20 Jan 2 10:56:02 pampero kernel: detached Jan 2 10:56:03 pampero kernel: umodem0 on uhub1 Jan 2 10:56:03 pampero kernel: umodem0: on usbus0 Jan 2 10:56:03 pampero kernel: umodem0: data interface 1, has no CM = over data, has no break =E2=80=A6 and usbconfig: pampero# usbconfig ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen0.2: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH= (480Mbps) pwr=3DSAVE (500mA) ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (98mA) ugen0.5: at usbus0, = cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA) ugen0.6: at usbus0, cfg=3D0 md=3DHOST = spd=3DSUPER (5.0Gbps) pwr=3DSAVE (0mA) ugen0.3: at usbus0, = cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA) ugen0.7: at usbus0, cfg=3D0 md=3DHOST = spd=3DFULL (12Mbps) pwr=3DON (100mA) <=E2=80=94 this is the QR any ideas? thanks, danny From owner-freebsd-stable@freebsd.org Fri Jan 3 10:56:52 2020 Return-Path: Delivered-To: freebsd-stable@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 6FF911EE33E for ; Fri, 3 Jan 2020 10:56:52 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (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 47q20L255Pz3CrY for ; Fri, 3 Jan 2020 10:56:49 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=P6hUPSAwuZ8cbf+4foRL0JhJKpxqvAGKn2h59nB0ntI=; b=r+ULQgnrb2rb9feVRgZ1a6uwO2J9lJgiwoHhCfEXuhOEprT3Dw2BhdCAXavFfahrLyzjUKalTLrYWn7L8Ii4m9Qpn8RcvNQadP4Lw6+SPRnpQ+zcDa1oj8L7rCh+A5IyfR/Pulqow+BaMSAJkt5NDXPDdWa6IVnc2m08rHfwjfmKsjllH/yAeEcu043bSw5xeAcVar+z179tvMUsewvSB02h/P9EyHnKwEHF2mKY6MZanexQ+pwOh/009ap4a7Go5NOmM93MeOnKRfRBfl7WA25+53dDGkWZi0q35GBs28sawzlUHQkkVJeNbygtB0PZUDEsNb5lXgU76e180WHOOg==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1inKdK-0001wU-JB; Fri, 03 Jan 2020 12:56:46 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: usb QR reader From: Daniel Braniss In-Reply-To: <7DC305EC-7B3F-4859-ABAC-3FF1B2F84B30@cs.huji.ac.il> Date: Fri, 3 Jan 2020 12:56:46 +0200 Cc: Hans Petter Selasky Content-Transfer-Encoding: quoted-printable Message-Id: References: <7DC305EC-7B3F-4859-ABAC-3FF1B2F84B30@cs.huji.ac.il> To: freeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 47q20L255Pz3CrY X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=r+ULQgnr; dmarc=pass (policy=none) header.from=huji.ac.il; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il X-Spamd-Result: default: False [-4.12 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.82)[ip: (-4.58), ipnet: 132.64.0.0/13(-2.54), asn: 378(-2.03), country: IL(0.05)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[210.116.65.132.list.dnswl.org : 127.0.10.0]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/13, country:IL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 10:56:52 -0000 Hi Hans,=20 can you shed some light/help? thanks, danny > On 2 Jan 2020, at 11:11, Daniel Braniss wrote: >=20 > Hi,=20 > after connecting this QR reader I see a new /dev/ttyU but as soon as I = try tip, > the device disconnects. (BTW, it=E2=80=99s configured as a =E2=80=98Virt= ual Serial Port=E2=80=99) >=20 > dmsg: > =E2=80=A6 > Jan 2 10:54:57 pampero kernel: umodem0 on uhub1 > Jan 2 10:54:57 pampero kernel: umodem0: on usbus0 > Jan 2 10:54:57 pampero kernel: umodem0: data interface 1, has no CM = over data, has no break > Jan 2 10:56:01 pampero kernel: umodem0: at uhub1, port 2, addr 38 = (disconnected) > Jan 2 10:56:02 pampero kernel: umodem0:=20 > Jan 2 10:56:02 pampero kernel: detached > Jan 2 10:56:03 pampero kernel: umodem0 on uhub1 > Jan 2 10:56:03 pampero kernel: umodem0: on usbus0 > Jan 2 10:56:03 pampero kernel: umodem0: data interface 1, has no CM = over data, has no break > =E2=80=A6 >=20 > and usbconfig: > pampero# usbconfig > ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER= (5.0Gbps) pwr=3DSAVE (0mA) > ugen0.2: at usbus0, cfg=3D0 md=3DHOST = spd=3DHIGH (480Mbps) pwr=3DSAVE (500mA) > ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL= (12Mbps) pwr=3DON (98mA) > ugen0.5: at usbus0, = cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA) > ugen0.6: at usbus0, cfg=3D0 md=3DHOST = spd=3DSUPER (5.0Gbps) pwr=3DSAVE (0mA) > ugen0.3: at = usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA) > ugen0.7: at usbus0, cfg=3D0 md=3DHOST = spd=3DFULL (12Mbps) pwr=3DON (100mA) <=E2=80=94 this is the QR >=20 > any ideas? >=20 > thanks, > danny >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-stable@freebsd.org Fri Jan 3 12:16:09 2020 Return-Path: Delivered-To: freebsd-stable@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 3D8D51F09D6; Fri, 3 Jan 2020 12:16:09 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47q3ls0XhVz3Htx; Fri, 3 Jan 2020 12:16:09 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1129) id E5A1B1FCC1; Fri, 3 Jan 2020 12:16:08 +0000 (UTC) Date: Fri, 3 Jan 2020 12:16:08 +0000 From: Li-Wen Hsu To: freebsd-testing@freebsd.org Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: FreeBSD CI Weekly Report 2019-12-29 Message-ID: <20200103121608.GA1545@freefall.freebsd.org> Reply-To: freebsd-testing@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 12:16:09 -0000 (Please send the followup to freebsd-testing@ and note Reply-To is set.) FreeBSD CI Weekly Report 2019-12-29 =================================== Here is a summary of the FreeBSD Continuous Integration results for the period from 2019-12-23 to 2019-12-29. During this period, we have: * 1811 builds (95.1% (-3.4) passed, 4.9% (+3.4) failed) of buildworld and buildkernel (GENERIC and LINT) were executed on aarch64, amd64, armv6, armv7, i386, mips, mips64, powerpc, powerpc64, powerpcspe, riscv64, sparc64 architectures for head, stable/12, stable/11 branches. * 197 test runs (88.9% (+2.3) passed, 2.5% (-4.5) unstable, 8.6% (+2.2) exception) were executed on amd64, i386, riscv64 architectures for head, stable/12, stable/11 branches. * 22 doc builds (100% (0) passed) Test case status (on 2019-12-29 23:59): | Branch/Architecture | Total | Pass | Fail | Skipped | | ------------------- | -------- | --------- | ----- | ------- | | head/amd64 | 7636 (0) | 7567 (-3) | 0 (0) | 69 (+3) | | head/i386 | 7634 (0) | 7563 (+3) | 0 (0) | 71 (-3) | | 12-STABLE/amd64 | 7491 (0) | 7440 (-3) | 0 (0) | 51 (+3) | | 12-STABLE/i386 | 7489 (0) | 7434 (0) | 0 (0) | 55 (0) | | 11-STABLE/amd64 | 6860 (0) | 6813 (+3) | 0 (0) | 47 (-3) | | 11-STABLE/i386 | 6858 (0) | 6806 (-3) | 0 (0) | 52 (+3) | (The statistics from experimental jobs are omitted) If any of the issues found by CI are in your area of interest or expertise please investigate the PRs listed below. The latest web version of this report is available at https://hackmd.io/@FreeBSD-CI/report-20191229 and archive is available at https://hackmd.io/@FreeBSD-CI/ , any help is welcome. ## News * FreeBSD Foundation 2019 in Review: CI and Testing Advancements https://www.freebsdfoundation.org/blog/2019-in-review-ci-and-testing-advancements/ ## Failing build * https://ci.freebsd.org/job/FreeBSD-head-powerpcspe-build/ There are some issues after PowerPC switch to llvm toolchain. ## Failing and Flaky Tests (from experimental jobs) * https://ci.freebsd.org/job/FreeBSD-head-amd64-dtrace_test/ * cddl.usr.sbin.dtrace.common.misc.t_dtrace_contrib.tst_dynopt_d * https://bugs.freebsd.org/237641 * https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/ * There are ~13 failing and ~109 skipped cases, including flakey ones, see https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/lastCompletedBuild/testReport/ for more details * Work for cleaning these failing cass are in progress ## Disabled Tests * sys.fs.tmpfs.mount_test.large https://bugs.freebsd.org/212862 * sys.fs.tmpfs.link_test.kqueue https://bugs.freebsd.org/213662 * sys.kqueue.libkqueue.kqueue_test.main https://bugs.freebsd.org/233586 * sys.kern.ptrace_test.ptrace__PT_KILL_competing_stop https://bugs.freebsd.org/220841 * lib.libc.regex.exhaust_test.regcomp_too_big (i386 only) https://bugs.freebsd.org/237450 * sys.netinet.socket_afinet.socket_afinet_bind_zero https://bugs.freebsd.org/238781 * sys.netpfil.pf.names.names * sys.netpfil.pf.synproxy.synproxy https://bugs.freebsd.org/238870 * sys.kern.ptrace_test.ptrace__follow_fork_child_detached_unrelated_debugger https://bugs.freebsd.org/239292 * sys.kern.ptrace_test.ptrace__follow_fork_both_attached_unrelated_debugger https://bugs.freebsd.org/239397 * sys.kern.ptrace_test.ptrace__parent_sees_exit_after_child_debugger https://bugs.freebsd.org/239399 * sys.kern.ptrace_test.ptrace__follow_fork_parent_detached_unrelated_debugger https://bugs.freebsd.org/239425 * lib.libc.gen.getmntinfo_test.getmntinfo_test https://bugs.freebsd.org/240049 * sys.sys.qmath_test.qdivq_s64q https://bugs.freebsd.org/240219 * sys.kern.ptrace_test.ptrace__getppid https://bugs.freebsd.org/240510 * lib.libc.sys.stat_test.stat_socket https://bugs.freebsd.org/240621 * lib.libarchive.functional_test.test_write_filter_zstd https://bugs.freebsd.org/240683 * lib.libcasper.services.cap_dns.dns_test.main https://bugs.freebsd.org/241435 * local.kyua.* (31 cases) & local.lutok.* (3 cases) on 11-i386 https://ci.freebsd.org/job/FreeBSD-stable-11-i386-test/2278/testReport/ * sys.geom.class.multipath.failloop.failloop https://bugs.freebsd.org/242689 ## Issues ### Cause build fails * https://bugs.freebsd.org/233735 Possible build race: genoffset.o /usr/src/sys/sys/types.h: error: machine/endian.h: No such file or directory * https://bugs.freebsd.org/233769 Possible build race: ld: error: unable to find library -lgcc_s ### Cause kernel panics * https://bugs.freebsd.org/238870 sys.netpfil.pf.names.names and sys.netpfil.pf.synproxy.synproxy cause panic Patch exists: * https://reviews.freebsd.org/D20868 * https://reviews.freebsd.org/D20869 ### Open * https://bugs.freebsd.org/242689 sys.geom.class.multipath.failloop.failloop fails due to too many CTF entries * https://bugs.freebsd.org/237403 Tests in sys/opencrypto should be converted to Python3 * https://bugs.freebsd.org/237641 Flakey test case: common.misc.t_dtrace_contrib.tst_dynopt_d * https://bugs.freebsd.org/237656 "Freed UMA keg (rtentry) was not empty (18 items). Lost 1 pages of memory." seen when running sys/netipsec tests * https://bugs.freebsd.org/238781 sys.netinet.socket_afinet.socket_afinet_bind_zero does not work when mac_portacl(4) loaded * https://bugs.freebsd.org/239292 Flakey test case: sys.kern.ptrace_test.ptrace__follow_fork_child_detached_unrelated_debugger * https://bugs.freebsd.org/239397 Flakey test case: sys.kern.ptrace_test.ptrace__follow_fork_both_attached_unrelated_debugger * https://bugs.freebsd.org/239399 Flakey test case: sys.kern.ptrace_test.ptrace__parent_sees_exit_after_child_debugger * https://bugs.freebsd.org/239425 Flakey test case: sys.kern.ptrace_test.ptrace__follow_fork_parent_detached_unrelated_debugger * https://bugs.freebsd.org/241662 Flakey test case: lib.libarchive.functional_test.test_fuzz_iso9660 ### Others * [Tickets related to testing@](https://preview.tinyurl.com/y9maauwg) From owner-freebsd-stable@freebsd.org Fri Jan 3 14:40:19 2020 Return-Path: Delivered-To: freebsd-stable@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 93C8D1F329F for ; Fri, 3 Jan 2020 14:40:19 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from blaine.gmane.org (blaine.gmane.org [195.159.176.226]) (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 47q6yB53mbz3QJf for ; Fri, 3 Jan 2020 14:40:18 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1inNsr-000fTq-Os for freebsd-stable@freebsd.org; Fri, 03 Jan 2020 15:25:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Alexander Koeppe Subject: FreeBSD SSL libraries and OpenSSL libraries - how to compile own source code Date: Fri, 3 Jan 2020 15:16:35 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 X-Mozilla-News-Host: news://news.gmane.org:119 Content-Language: en-US X-Rspamd-Queue-Id: 47q6yB53mbz3QJf X-Spamd-Bar: +++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-stable@m.gmane.org has no SPF policy when checking 195.159.176.226) smtp.mailfrom=freebsd-stable@m.gmane.org X-Spamd-Result: default: False [7.54 / 15.00]; ARC_NA(0.00)[]; GREYLIST(0.00)[pass,body]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[online.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[0.998,0]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(1.34)[ipnet: 195.159.0.0/16(4.05), asn: 2116(2.67), country: NO(-0.01)]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[format_c@online.de,freebsd-stable@m.gmane.org]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2116, ipnet:195.159.0.0/16, country:NO]; FROM_NEQ_ENVFROM(0.00)[format_c@online.de,freebsd-stable@m.gmane.org]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; RCVD_COUNT_TWO(0.00)[2] X-Spam: Yes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 14:40:19 -0000 Hello list, Since I've upgraded to FreeBSD 12, I've linker issues when I try to build my own source code which is depending on OpenSSL library. It's claiming that there are undefined references to SSL_library_init or SSLv23_server_method for instance. I detected the OpenSSL libraries using the FindOpenSSL.cmake file in /usr/local/share/cmake/Modules. It returned /usr/lib32/libssl.so and /usr/lib32/libcrypto.so. Cmake is for some reason translating the found libraries to the `-lssl` and `-lcrypto` linker flags. This seem to default back to /usr/lib/libssl.so and /usr/lib/libcrypto.so. These files point by default to: /usr/lib/libssl.so -> libssl.so.111 /usr/lib/libcrypto.so -> /lib/libcrypto.so.111 But when I check which libraries have been provided by OpenSSL package, I get a different outcome: $ pkg list openssl | egrep 'lib(ssl|crypto).so' /usr/local/lib/libcrypto.so /usr/local/lib/libcrypto.so.9 /usr/local/lib/libssl.so /usr/local/lib/libssl.so.9 $ These files are different to what openssl package provided. When I replace these symlinks to point to the .so files provided by the openssl package, building and running the application works as expected. So: /usr/lib/libssl.so -> /usr/local/lib/libssl.so /usr/lib/libcrypto.so -> /usr/local/lib/libcrypto.so I've read that FreeBSD 12 provides it's own SSL libraries and there is the possibility to edit the /etc/make.conf to make the ports building against the "real" OpenSSL library. However I often need to build the latest source code from GitHub, so that I cannot make use of the ports approach (I tend to use the pkg management). What is the best way to use the "real" OpenSSL libraries when building custom source code on FreeBSD? Thanks in advance for any advice. - Alex From owner-freebsd-stable@freebsd.org Fri Jan 3 18:15:18 2020 Return-Path: Delivered-To: freebsd-stable@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 D9ED71D2397 for ; Fri, 3 Jan 2020 18:15:18 +0000 (UTC) (envelope-from thenomad@gmail.com) Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qCkF6rphz48gG; Fri, 3 Jan 2020 18:15:17 +0000 (UTC) (envelope-from thenomad@gmail.com) Received: by mail-pf1-x430.google.com with SMTP id q10so23857561pfs.6; Fri, 03 Jan 2020 10:15:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=E0Z265ogbglR1Cep2H8O4kUHpk04QhJeff0ofWDWNN8=; b=MpR3XdMS46JDQnrJwsBMLB/b2wZNqoHIlf2t6v5837TVY3P5WvZVC2HSNNNbTRJurr YI9RRB9V2YCpojwe9+HuJmQ4sgoXL3zGfQqeFB2XxBJSkheNUHrKdqmc7j1grm0XADyq hAMpRZPhr4Yxr5g0QryBXISzKghXRJT+LQYfXiUN/lqVajglkdM7j/uc4xdWk8cE4Gun DAK40zuUR4n/giLap03KiCOw6XVgbV9rFzU419DIviHvu5/E/bRjh8L7Rg5p/KIy/z5I aUO+e1a7PbuDq9OAJCyE4NvUT0WIIWkZWBpev0HDcJqCqz4dXtxWG3KJYjnCjTXolwik ZhHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=E0Z265ogbglR1Cep2H8O4kUHpk04QhJeff0ofWDWNN8=; b=h9RlONleL4/6VY+CsBDcvE+Q/wFJoDisUnZDefj5NxG44fBSxbkW9hZL4wZV5VANnK QrBzfJP4tQQoQ1CfeK7U3QMvMKe8NToq64vEbql9YMY5n1omndTiXKw/+b/0RgH65LjP 3po/B0Km+NOqBktx0yVGq1LgC0ajpbHc5OtVcXoigej083eB0q+ueFCCzqH4DB19XuXD xyj40R4o+mnPz3rPifUlWVDftVMVJS/mTe/z/jCl49OQ9qrJ1Skt8mpd/1mufB6kE/Tj 3HLwhGR5R6O1rEDbxdSBT3JCD8Jc/sEJp+6mRX/EafMg8VmiV5CIJ7bb7veBSUG4xauG VikA== X-Gm-Message-State: APjAAAW3sIsjQKCEdEKL8K+dhxlGVy+fAdyczMrJa3YYmhA8O8tJ7FkP cM1l62ORSrcmhW8tAOPRnPDRCOf5 X-Google-Smtp-Source: APXvYqwCAZwoBc7ryJXxu7BcsJ8feI6xKrdV38LTT9WuUQOqZta8N5VAdjLSj9l0Qstl/7XOSm9c0g== X-Received: by 2002:a63:d041:: with SMTP id s1mr98683347pgi.363.1578075316213; Fri, 03 Jan 2020 10:15:16 -0800 (PST) Received: from vanyel.ee.washington.edu (vanyel.ee.washington.edu. [128.208.232.99]) by smtp.gmail.com with ESMTPSA id u6sm15590549pjv.31.2020.01.03.10.15.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jan 2020 10:15:15 -0800 (PST) Sender: Lee Damon Subject: Re: amd and LDAP - a sad story To: Brooks Davis Cc: freebsd-stable@freebsd.org References: <44772535-277d-c50d-f93f-57b3e4162ed7@castle.org> <20200103175452.GK91104@spindle.one-eyed-alien.net> From: Lee Damon Message-ID: Date: Fri, 3 Jan 2020 10:15:14 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200103175452.GK91104@spindle.one-eyed-alien.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 47qCkF6rphz48gG X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=MpR3XdMS; dmarc=none; spf=pass (mx1.freebsd.org: domain of thenomad@gmail.com designates 2607:f8b0:4864:20::430 as permitted sender) smtp.mailfrom=thenomad@gmail.com X-Spamd-Result: default: False [-4.81 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[castle.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-2.61)[ip: (-9.01), ipnet: 2607:f8b0::/32(-2.14), asn: 15169(-1.86), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[0.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FORGED_SENDER(0.30)[nomad@castle.org,thenomad@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[nomad@castle.org,thenomad@gmail.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 18:15:18 -0000 On 1/3/20 09:54 , Brooks Davis wrote: > Adding nss_ldap to the mix makes all programs threaded so a bunch of > code paths are different. Unfortunately, amd is complicated, out of > date, and unmaintained so I'm not sure who will be able to help. If > possible, I would suggest putting effort into migrating to automount > rather than debugging amd since amd will be removed prior to FreeBSD 13. I was afraid that was going to be the answer. I have ~18 years worth of layering in the AMD maps. Converting isn't going to be fun and I've been putting it off for years but I guess it's time. Of course, I'm pushing against a deadline for this host and that deadline is well before I'll be able to finish the conversion. I guess it's time for duct tape and some bailing wire. The confusing thing to me is that the exact same set up, with the exact same FBSD release, works just fine for my existing hosts. nomad From owner-freebsd-stable@freebsd.org Sat Jan 4 00:02:24 2020 Return-Path: Delivered-To: freebsd-stable@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 A08711D1BBE for ; Sat, 4 Jan 2020 00:02:24 +0000 (UTC) (envelope-from thenomad@gmail.com) Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qMQl49ZPz4WpL for ; Sat, 4 Jan 2020 00:02:23 +0000 (UTC) (envelope-from thenomad@gmail.com) Received: by mail-pf1-x42c.google.com with SMTP id x6so23082540pfo.10 for ; Fri, 03 Jan 2020 16:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=TR9JH1GH77NO1lkfwDMSVr5FjLKuWJJiRXOOHnRyK/U=; b=FKeBlLGVJmjXNVYDbVarxiS2PSm0x6Z3xHuSAMiB5eR7tx6PJfP+Mng/w6i3/aoZv8 yu1EnHxn5Ec+SVqnNbn4hKNtGNN8Pl1LpaXSExUx/Km2T2hwLYgqlYIjuQPZPTLzUn7h 28VY107fdlbErA75i7Pttrep9kGrdwCOm+W1JLSHDquTw/ghFuHSpeKJ3q5zUHolOIqo dL1ue8ddTfIgebIRwFZQcunP69h9wTpttiKvSMmd98P9wMbg8MNZLy+X6bwitj1+5IHp HCZPY/wFrC/Y8i5+uKyUwtpe2/UmRtLVvFQrO2zzchbqMahn0sk84/RpXr8u94ZCwgfp szSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=TR9JH1GH77NO1lkfwDMSVr5FjLKuWJJiRXOOHnRyK/U=; b=j+/pF9BL6/Fa3LLxBlJj7edWI0J78wa5zyKD7JIpCsQgsClHGuxPEQOldSCXabLj1m zrXkP+QaSQTPpbZfEJRZAjzi4itJCYPmpV5Bnx6J62UHA4SBFZGPaHkTMEP3DRgle3TH 6kfIOpV/Y1jwGR3smIfymDCI6OFfFXx5bKayZPGKFM6EC1px4MqEg5RpSIz/TSmrcUXC Jih/Reydgc7kPegRjRLd/XYVuNFtpXeJNg7gtS9t4f+feKHbrTq4UpgPOcH5NJUjFDBN Lt0chdbZhaCZ/6HvyOsK2IWTErDZ9zOkU0LdpgIo+zzU0Z95+KlYkMr+DvoB3q6snWO4 PdOg== X-Gm-Message-State: APjAAAVD5fNSlAeHTd4WSPYPFIvwJlyhwlDFGuX3qB2oAq1J5NY2fR1Q XOFZSbbI4tfg7gB+gtIyqKJbtBn/ X-Google-Smtp-Source: APXvYqxICsDQpIJ0WyLFTB23TWNICZ9ngT1XPo055NsOiyxB9syX5s8bAHODeAnOH8pQvJe9ZXGAlQ== X-Received: by 2002:a05:6a00:8a:: with SMTP id c10mr85602399pfj.191.1578096141539; Fri, 03 Jan 2020 16:02:21 -0800 (PST) Received: from vanyel.ee.washington.edu (vanyel.ee.washington.edu. [128.208.232.99]) by smtp.gmail.com with ESMTPSA id e16sm62393863pgk.77.2020.01.03.16.02.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jan 2020 16:02:20 -0800 (PST) Sender: Lee Damon To: freebsd-stable@freebsd.org From: Lee Damon Subject: two questions about autofs on FBSD Message-ID: <578798e4-5e26-6116-9ffe-6dcc4f08ed59@castle.org> Date: Fri, 3 Jan 2020 16:02:19 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47qMQl49ZPz4WpL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FKeBlLGV; dmarc=none; spf=pass (mx1.freebsd.org: domain of thenomad@gmail.com designates 2607:f8b0:4864:20::42c as permitted sender) smtp.mailfrom=thenomad@gmail.com X-Spamd-Result: default: False [-4.80 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@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]; DMARC_NA(0.00)[castle.org]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_IN_DNSWL_NONE(0.00)[c.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-2.60)[ip: (-8.92), ipnet: 2607:f8b0::/32(-2.14), asn: 15169(-1.86), country: US(-0.05)]; FORGED_SENDER(0.30)[nomad@castle.org,thenomad@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[nomad@castle.org,thenomad@gmail.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 00:02:24 -0000 I am (reluctantly) replacing am-utils (amd) with autofs. To do this I need to replace a lot of functionality that I've had embedded for a very long time and which my users absolutely rely on. I have two (so far) questions that I need to solve before I can proceed with this process. Question 1 - One of those features is the ability to use a symlink instead of a NFS mount. For a simplistic example: /homes/accountname -> /net/server/home/accountname On Linux this is a : entry in /etc/auto.homes: accountname :/net/server/home/accountname but when I test it on FBSD 11-3 I get: automountd[1784]: "mount -t nfs -o automounted,retrycnt=1 /net/[redacted]/vol/home/[redacted] /homes/[redacted]/", pid 1785, terminated with exit status 1 Which sure looks like it is trying to NFS mount the local filesystem, which clearly won't work. I use this functionality all over the place including linking into AFS space and making smart decisions of which subdirectory to present, so I can't just turn all of the links into NFS mounts. I found a bug report against the 10.1 version of autofs asking for the linking functionality but it was closed with no comment. I'm not finding any other documentation that references how to do a link. The media mount seems to be done via a special script instead of just a link. So, I have to ask, is this something that can be done? How do I do it? Question 2 - How do I get automount to reload a map if a filesystem is already mounted? It looks like issuing the "automount" command with no flags should get it to reload maps but it seems to be ignoring any changes to a map if that map has anything active. 99% of my map updates are to add a new filesystem to an existing map and I need all of the hosts to pick up the changes the next time CM runs. On Linux "systemctl reload autofs" does it but "service automount reload" doesn't exist, and as I said, "automount" ignores map changes for active maps. I'm _certain_ I'm missing something simple and obvious here, I can't believe there's no way to reload an active map. Any information related to either question is much appreciated. thanks nomad From owner-freebsd-stable@freebsd.org Sat Jan 4 21:21:11 2020 Return-Path: Delivered-To: freebsd-stable@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 4FDBC1D3F3C for ; Sat, 4 Jan 2020 21:21:11 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 47qvpG17zLz4dnr for ; Sat, 4 Jan 2020 21:21:09 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.15.2/8.15.2) with ESMTP id 004LL6sJ062282; Sat, 4 Jan 2020 15:21:07 -0600 (CST) (envelope-from mike@karels.net) Message-Id: <202001042121.004LL6sJ062282@mail.karels.net> To: Alexander Koeppe cc: freebsd-stable@freebsd.org From: Mike Karels Reply-to: mike@karels.net Subject: Re: FreeBSD SSL libraries and OpenSSL libraries - how to compile own source code In-reply-to: Your message of Fri, 03 Jan 2020 15:16:35 +0100. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <62280.1578172866.1@mail.karels.net> Date: Sat, 04 Jan 2020 15:21:06 -0600 X-Rspamd-Queue-Id: 47qvpG17zLz4dnr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@karels.net designates 216.160.39.52 as permitted sender) smtp.mailfrom=mike@karels.net X-Spamd-Result: default: False [-4.32 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[mike@karels.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:216.160.39.52]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[karels.net]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.12)[ip: (-7.02), ipnet: 216.160.0.0/15(-3.52), asn: 209(-0.03), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 21:21:11 -0000 Not having seen an answer to this yet, I'm going to provide a partial answer. Hopefully someone plugged into the current plans can provide the rest, especially where ports are going with this. > To: freebsd-stable@freebsd.org > From: Alexander Koeppe > Hello list, > Since I've upgraded to FreeBSD 12, I've linker issues when I try to > build my own source code which is depending on OpenSSL library. > It's claiming that there are undefined references to SSL_library_init or > SSLv23_server_method for instance. The linker is correct; see below. > I detected the OpenSSL libraries using the FindOpenSSL.cmake file in > /usr/local/share/cmake/Modules. It returned /usr/lib32/libssl.so and > /usr/lib32/libcrypto.so. > Cmake is for some reason translating the found libraries to the `-lssl` > and `-lcrypto` linker flags. This seem to default back to > /usr/lib/libssl.so and /usr/lib/libcrypto.so. > These files point by default to: > /usr/lib/libssl.so -> libssl.so.111 > /usr/lib/libcrypto.so -> /lib/libcrypto.so.111 Those are the shared libraries used by the base. They are from OpenSSL 1.1.1. > But when I check which libraries have been provided by OpenSSL package, > I get a different outcome: > $ pkg list openssl | egrep 'lib(ssl|crypto).so' > /usr/local/lib/libcrypto.so > /usr/local/lib/libcrypto.so.9 > /usr/local/lib/libssl.so > /usr/local/lib/libssl.so.9 > $ > These files are different to what openssl package provided. These are the libraries used by ports (packages). > When I replace these symlinks to point to the .so files provided by the > openssl package, building and running the application works as expected. So: > /usr/lib/libssl.so -> /usr/local/lib/libssl.so > /usr/lib/libcrypto.so -> /usr/local/lib/libcrypto.so > I've read that FreeBSD 12 provides it's own SSL libraries and there is > the possibility to edit the /etc/make.conf to make the ports building > against the "real" OpenSSL library. FreeBSD 12 uses OpenSSL 1.1.1 in the base (not its own SSL libraries). However, ports were not converted to 1.1.1 at that time, but instead use the /usr/local version (which I think is OpenSSL 1.0.2t as of 12.1). Changing the symlinks in /usr/lib will cause newly-compiled programs to use the old version, but will probably also prevent part of the base system from being recompiled/linked. The include paths are different as well. However, note that OpenSSL 1.0.2 is no longer supported upstream, even for security fixes, as of the new year. OpenSSL 1.1.1 is quite different than past versions. For example, SSL v2 is gone (hence entry points like SSLv23_server_method; I've forgotten what the replacement is). Many data structures have been made opaque, requiring the use of accessor functions. I have spent the best part of the last month retrofitting our own software at $WORK. > However I often need to build the latest source code from GitHub, so > that I cannot make use of the ports approach (I tend to use the pkg > management). > What is the best way to use the "real" OpenSSL libraries when building > custom source code on FreeBSD? The "best" approach is to convert your code to use OpenSSL 1.1.1, or to find versions of external source that have been converted. OpenSSL 1.0.2 may still be usable for a while in some environments, but is not a good path going forward. Alternatively, I assume it is still possible to compile using the ports environment by using the right -I and -L options to use the 1.0.2 headers and libraries in /usr/local. > Thanks in advance for any advice. Good luck! > - Alex Mike