From nobody Thu Jul 27 15:09:36 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RBZ1s3y0Wz4p7HC for ; Thu, 27 Jul 2023 15:09:53 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RBZ1s0MK2z3k1p; Thu, 27 Jul 2023 15:09:53 +0000 (UTC) (envelope-from bofh@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690470593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b7/Z/UuhR96vL0aajOJSWhSs9gg8YOsl6dxbyFJMK4E=; b=J5oCXgVcfGmubr9Bi7+o9oDRFzKCCo0zr8Wrz9+ROGoUuOlDlat+qUajb9tLGCEqxob3gG wYX9YnQ/H3lPV6jjJyVbiYSa8NBk4mD6BBwzAkwvJf6WjewPIhQASleop6lVGeSRXMhbtc t32K9zhU1JcdKMEZ9aNVcPYl0a0TMY9THqgxi09s+25V0/D9By1mQeC7IS5rfsdiakwbPP a9vSPp8ZQZ7rYsIrVIWyeGaPIzNx/HrYlxaZ3JvjkV+sW8PrgjlbP9C1ypDZC4UyWLsbfy qcsk/0McS1gWdeUt8SSKdtEP9+8FvIMHr8/e9j410daGf39qaf07Y4SZvcsdlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690470593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b7/Z/UuhR96vL0aajOJSWhSs9gg8YOsl6dxbyFJMK4E=; b=MUTBYrhYuABp2Qu/x9PzF7Q2sRsUjZEFYGsfIUxwx7uW7wtT3NPWPXoYv45YJ5goX+VXNL b9TXIhxuyEJM1QaoK7+ciDKRFVv2XUFVhtY0BZgMwlI4uTyF61ht4wyTfG4rS/0gbJy8IV 5GDRcMOL8vEU1W85l6ctGHwSd42pIS4580Xs+/qoevJsdjFN6HtyU9zT0/Nv8w5p275M0t DKoZJL9YX7tBUcPAg9/Uo95WPE5s72DlVY3maTt2RnPgGoMXenJ84e8yx/z2vBn1qtxSiU F7pNFCFifzhr3z3bCjPlJTkWN9JZkbgpkGoWB9hFAlQknlghr7Ws8KUdUr8D+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690470593; a=rsa-sha256; cv=none; b=sG9Q3kYCXLXkLD6SbJ/Xo8zhTsHcvXWXOxfCn6xQ8uH0a3V4WcrqOX3fVeTsNuvWOKSmJ4 YPfHHC3ALDrUu6Va+K56CQDE2F8uWbMAQhCc8fvkVBEWAx/V3/oTuUF5V2CrtfeJEQZwyJ EEa73equ7lpQiS78+3mp8ONnPnwVChm+vu+7QCMLX71ypNGj+FO7LxVRiPuhUr8+KAog7t 3/1wxJN+mbVGP/xtJaIdMLo1d6oA03NEt3C3QGtMmvbzSg6/EJJgOAUbRGr1CGH5T75CNk JUeoMgPGpxNL3+bItv1VjHlh0Hb7RTnjSkb4DzzJrls5jReaUSwJOSuqll04rg== Received: from mx.bofh.network (mx.bofh.network [IPv6:2a01:4f8:261:25de::227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mx.bofh.network", Issuer "R3" (verified OK)) (Authenticated sender: bofh/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RBZ1r00LwzdTr; Thu, 27 Jul 2023 15:09:51 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtpclient.apple (cust-178.17.7.198.uvt.cz [178.17.7.198]) by mx.bofh.network (OpenSMTPD) with ESMTPSA id a7541c6d (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Thu, 27 Jul 2023 15:09:47 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE"; protocol="application/pgp-signature"; micalg=pgp-sha512 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: devel/mongo-c-driver failed with undefined reference due to --no-allow-shlib-undefined: ERR_load_BIO_strings From: Moin Rahman In-Reply-To: <202307271311.36RDBt6h090830@kx.truefc.org> Date: Thu, 27 Jul 2023 17:09:36 +0200 Cc: Hiroo Ono , Yasuhiro Kimura , yuri@aetern.org, ports@freebsd.org Message-Id: <8F8316AA-BC36-40CB-9D98-28BFAC99AFB8@freebsd.org> References: <20230727110225.6cc13af4@nowhere.oikumene.ukehi.net> <20230727.141523.508759182737262133.yasu@FreeBSD.org> <20230727.145511.1697988446343021363.yasu@FreeBSD.org> <20230727.170728.1696216470137112287.yasu@FreeBSD.org> <20230727213020.2601092a@nowhere.oikumene.ukehi.net> <202307271311.36RDBt6h090830@kx.truefc.org> To: KIRIYAMA Kazuhiko X-Mailer: Apple Mail (2.3731.600.7) --Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jul 27, 2023, at 3:11 PM, KIRIYAMA Kazuhiko = wrote: >=20 > On Thu, 27 Jul 2023 21:30:20 +0900, > Hiroo Ono wrote: >>=20 >> On Thu, 27 Jul 2023 17:07:28 +0900 (JST) >> Yasuhiro Kimura wrote: >>=20 >>> From: Yasuhiro Kimura >>> Subject: Re: devel/mongo-c-driver failed with undefined reference = due >>> to --no-allow-shlib-undefined: ERR_load_BIO_strings Date: Thu, 27 = Jul >>> 2023 14:55:11 +0900 (JST) >>>=20 >>>>> I tried build with poudriere and following 2 jails. >>>>>=20 >>>>> * 13.2-RELEASE-p1 amd64 >>>>> * 14.0-CURRENT main-n264279-92fd2f39e5b amd64 >>>>>=20 >>>>> And build with the former succeeds but build with the latter fails >>>>> with same error as KIRIYAMA-san. >>>>=20 >>>> I added 'DEFAULT_VERSIONS+=3Dssl=3Dopenssl30' and tried build with >>>> poudriere and 13.2-RELEASE-p1 amd64 jail. Then build fails with = same >>>> error as 14-CURRENT. So it seems the error is related with OpenSSL >>>> 3.0. >>>=20 >>> If I remove following 3 lines from Makefile, then build succeeds = with >>> OpenSSL 3.0. >>>=20 >>> = ---------------------------------------------------------------------- >>> .if ( ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} >=3D 1400092 && >>> ${SSL_DEFAULT} =3D=3D base ) || ${SSL_DEFAULT:Mopenssl3*} CFLAGS+=3D >>> -DOPENSSL_API_COMPAT=3D0x30000000L" .endif >>> = ---------------------------------------------------------------------- >>=20 >> OK. The trailing double quote after 0x30000000L is the suspect. >=20 > I removed above trailing double quate and then compiled done > completeley ! >=20 > Thanx for your efforts and thanx correct identification > Kimura san = :-) >=20 >> See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272753 for = the patch. >>=20 >> There are other ports with this mistake. >>=20 >> ./mail/datovka/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" Ouch it hurts and I am sorry for that. I will try to fix this at the = latest on next Monday. >> ./mail/archiveopteryx/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L >> " >> ./news/nzbget/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" >> ./devel/ucommon/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" >> ./devel/thrift-c_glib/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L >> " >> ./security/git-crypt/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L >> " >> ./databases/xrootd/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" >> ./lang/php80/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" >> ./net/asterisk18/Makefile:CFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" >> ./sysutils/istatserver/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L >> " >> ./www/lagrange/Makefile:CXXFLAGS+=3D = -DOPENSSL_API_COMPAT=3D0x30000000L" >>=20 >>> Not sure if built binaries work fine. >>>=20 >>> --- >>> Yasuhiro Kimura >>>=20 >>=20 >>=20 > --- > Kazuhiko Kiriyama --Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmTCiLBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJE4kQ//aXhXw9GiZVqcZK+p8HCy0g2ujsn8iQXRvREicIlwiXTEqz2G3X/+9xF+ nmUEm3SHNHHBCml+KS0fMgB2WIC2NmHoH2Z5tHyiBIR+d0brpFqbmNDKBnhbTuxk AL/LsOqy/hw5JMjFfJx5GJB+YrdT7UZ1Y+8gn6Qh2iLfxQ7D05f/Dfh5+YPM7bnl JZ5c9EyCBFKDcNTyT+rg8GxVDUCcFZGqvgCrIyiucNi1qy6g2ItEFlz5jvvLInAs 2M6iMB30mN021F3ErlyKZPAaP3+QUKhc/c0RQ3tg4Tcz2BWnRWNiIV3nil7MzSyV vJ+qD4m7PWQcw0iOMV8ranuVhalft9Rw0PHSXbgIpeloIIHK2yu0KW8ZDdxf9d43 yyNoUZ5xM+SS2vG0h28NcXgFlVJP1R36bO9+V7JcM0KD4sHqS9Zn8gzNBp6RjeL3 ETKiDz1tnbxPXE5XR0NvZvzyqoB6iBAiJ6aKOkphwEOlp+ejI/lDEv48Pc8SH7Fs ozAZeEX0lJ5WNNUg9KLZcK/6giFZnvI+nCG7Jpk4J3+NiSJlZ4BS8Q5GMGMaHIHc 17XACTuM+R7dnPs+LLHixr4Z0jwlNhGWKykj2PqaM413MhD2xLzXMMdmyFIQ1ll+ kuTneboWuki161kVVGXRZsCRqKnUK/nOaRjgVXQDsR6uJOLa72U= =+TEn -----END PGP SIGNATURE----- --Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE--