From nobody Thu Jul 27 13:11:55 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 4RBWQ20Nwlz4q034 for ; Thu, 27 Jul 2023 13:12:10 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (1.212.52.36.ap.yournet.ne.jp [36.52.212.1]) (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 (2048 bits) client-digest SHA256) (Client CN "smtp", Issuer "smtp" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RBWQ05009z42Cd; Thu, 27 Jul 2023 13:12:08 +0000 (UTC) (envelope-from kiri@truefc.org) Authentication-Results: mx1.freebsd.org; none Received: from kx.truefc.org (kx.truefc.org [36.52.212.1]) by kx.truefc.org (8.16.1/8.16.1) with ESMTP id 36RDBt6h090830; Thu, 27 Jul 2023 22:11:55 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <202307271311.36RDBt6h090830@kx.truefc.org> Date: Thu, 27 Jul 2023 22:11:55 +0900 From: KIRIYAMA Kazuhiko To: Hiroo Ono Cc: Yasuhiro Kimura , kiri@truefc.org, yuri@aetern.org, ports@freebsd.org Subject: Re: devel/mongo-c-driver failed with undefined reference due to --no-allow-shlib-undefined: ERR_load_BIO_strings In-Reply-To: <20230727213020.2601092a@nowhere.oikumene.ukehi.net> 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> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 MULE XEmacs/21.4 (patch 24) (Standard C) (amd64--freebsd) 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 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4RBWQ05009z42Cd X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:10013, ipnet:36.52.208.0/21, country:JP] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated On Thu, 27 Jul 2023 21:30:20 +0900, Hiroo Ono wrote: > > On Thu, 27 Jul 2023 17:07:28 +0900 (JST) > Yasuhiro Kimura wrote: > > > 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) > > > > >> I tried build with poudriere and following 2 jails. > > >> > > >> * 13.2-RELEASE-p1 amd64 > > >> * 14.0-CURRENT main-n264279-92fd2f39e5b amd64 > > >> > > >> And build with the former succeeds but build with the latter fails > > >> with same error as KIRIYAMA-san. > > > > > > I added 'DEFAULT_VERSIONS+=ssl=openssl30' 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. > > > > If I remove following 3 lines from Makefile, then build succeeds with > > OpenSSL 3.0. > > > > ---------------------------------------------------------------------- > > .if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && > > ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} CFLAGS+= > > -DOPENSSL_API_COMPAT=0x30000000L" .endif > > ---------------------------------------------------------------------- > > OK. The trailing double quote after 0x30000000L is the suspect. I removed above trailing double quate and then compiled done completeley ! Thanx for your efforts and thanx correct identification > Kimura san :-) > See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272753 for the patch. > > There are other ports with this mistake. > > ./mail/datovka/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > ./mail/archiveopteryx/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L > " > ./news/nzbget/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > ./devel/ucommon/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > ./devel/thrift-c_glib/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L > " > ./security/git-crypt/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L > " > ./databases/xrootd/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > ./lang/php80/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > ./net/asterisk18/Makefile:CFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > ./sysutils/istatserver/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L > " > ./www/lagrange/Makefile:CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" > > > Not sure if built binaries work fine. > > > > --- > > Yasuhiro Kimura > > > > --- Kazuhiko Kiriyama