From nobody Thu Jul 27 02:02:25 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 4RBDYV5k8cz4nt4l for ; Thu, 27 Jul 2023 02:02:38 +0000 (UTC) (envelope-from hiroo@oikumene.net) Received: from barleycorn.oikumene.net (tk2-231-25124.vs.sakura.ne.jp [160.16.110.128]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RBDYS0tmQz4Dvw for ; Thu, 27 Jul 2023 02:02:36 +0000 (UTC) (envelope-from hiroo@oikumene.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of hiroo@oikumene.net designates 160.16.110.128 as permitted sender) smtp.mailfrom=hiroo@oikumene.net; dmarc=none Received: from nowhere.oikumene.ukehi.net (KD059129091046.ppp-bb.dion.ne.jp [59.129.91.46]) by barleycorn.oikumene.net (Postfix) with ESMTPSA id 0F87561FC7; Thu, 27 Jul 2023 11:02:27 +0900 (JST) Received: from nowhere.oikumene.ukehi.net ([IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e]) by nowhere.oikumene.ukehi.net (8.17.2/8.17.1) with ESMTP id 36R22PY0011238; Thu, 27 Jul 2023 11:02:25 +0900 (JST) (envelope-from hiroo@oikumene.net) X-Authentication-Warning: nowhere.oikumene.ukehi.net: Host [IPv6:240f:3f:802f:2:82c1:6eff:fef8:b41e] claimed to be nowhere.oikumene.ukehi.net Date: Thu, 27 Jul 2023 11:02:25 +0900 From: Hiroo Ono To: KIRIYAMA Kazuhiko Cc: Yuri , ports@freebsd.org Subject: Re: devel/mongo-c-driver failed with undefined reference due to --no-allow-shlib-undefined: ERR_load_BIO_strings Message-ID: <20230727110225.6cc13af4@nowhere.oikumene.ukehi.net> In-Reply-To: <202307260154.36Q1sBnJ052203@kx.truefc.org> References: <202307220652.36M6q6P4091348@kx.truefc.org> <20230725090137.2f027530@nowhere.oikumene.ukehi.net> <202307250650.36P6oifI090430@kx.truefc.org> <20230725192341.6a1edc69@nowhere.oikumene.ukehi.net> <20230726004611.545333a4@nowhere.oikumene.ukehi.net> <202307260154.36Q1sBnJ052203@kx.truefc.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; amd64-portbld-freebsd13.2) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip4:160.16.110.128]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[oikumene.net]; HAS_XAW(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:9370, ipnet:160.16.0.0/17, country:JP]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4RBDYS0tmQz4Dvw X-Spamd-Bar: --- Hello, On Wed, 26 Jul 2023 10:54:11 +0900 KIRIYAMA Kazuhiko wrote: > On Wed, 26 Jul 2023 00:46:11 +0900, > Hiroo Ono wrote: > > > > On Tue, 25 Jul 2023 19:23:41 +0900 > > Hiroo Ono wrote: > > > > > Sorry, I meant that the upstream has already fixed it, so no need > > > to report upstream but version up of the devel/mongo-c-driver > > > port is needed. > > > > Filed updates to bugzilla: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272720 > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272721 > > Thanx for your patches!!! I tried both, and libbson fine but > mongo-c-driver failed as follows: > > Installing libbson-1.24.2... > Extracting libbson-1.24.2: .......... done > ===> mongo-c-driver-1.24.2 depends on shared library: > libbson-1.0.so - found (/usr/local/lib/libbson-1.0.so) ===> > Returning to build of mongo-c-driver-1.24.2 ===> > mongo-c-driver-1.24.2 depends on shared library: libzstd.so - not > found ===> Installing existing package > /var/ports/packages/All/zstd-1.5.5.pkg Installing zstd-1.5.5... `-- > Installing liblz4-1.9.4,1... `-- Extracting liblz4-1.9.4,1: > .......... done Extracting zstd-1.5.5: .......... done > ===> mongo-c-driver-1.24.2 depends on shared library: libzstd.so - > found (/usr/local/lib/libzstd.so) ===> Returning to build of > mongo-c-driver-1.24.2 ===> Configuring for mongo-c-driver-1.24.2 > ===> Performing out-of-source build > /bin/mkdir -p > /var/ports/work/var/ports/jwebkx/devel/mongo-c-driver/work/.build > CMake Warning: Ignoring extra path from command line: > > "/var/ports/work/var/ports/jwebkx/devel/mongo-c-driver/work/.build/ > -DCMAKE_C_FLAGS_DEBUG:STRING=-O2" > > > CMake Warning: > Ignoring extra path from command line: > > " -DCMAKE_CXX_FLAGS_RELEASE:STRING=-O2" > > > CMake Error: Unknown argument -pipe It seems that default CFLAGS content contaminated CMAKE_ARGS, but the patch should not have done such things. Isn't there some mis-patching that makes the content of CFLAGS go into CMAKE_ARGS? > CMake Error: Run 'cmake --help' for all supported options. > *** Error code 1 > > Stop. > make: stopped in /var/ports/jwebkx/devel/mongo-c-driver > > > > > > > Hi, Ono san > > > > > > > > On Tue, 25 Jul 2023 09:01:37 +0900, > > > > Hiroo Ono wrote: > > > > > > > > > > Hello, > > > > > > > > > > On Sat, 22 Jul 2023 10:28:21 +0200 > > > > > Yuri wrote: > > > > > > > > > > > Exactly, it's fallout from openssl 3 migration. > > > > > > > > > > > > From > > > > > > https://www.openssl.org/docs/manmaster/man7/migration_guide.html: > > > > > > --- ERR_load_*(), ERR_func_error_string(), > > > > > > ERR_get_error_line(), ERR_get_error_line_data(), > > > > > > ERR_get_state() > > > > > > > > > > > > OpenSSL now loads error strings automatically so these > > > > > > functions are not needed. > > > > > > --- > > > > > > > > > > > > Looks like this needs to be reported upstream. > > > > > > > > > > Checked MongoDB JIRA. It was fixed in CDRIVER-4590 and > > > > > released as version 1.24.0. The port needs to be updated to > > > > > the latest version. > > > > > > > > I git pulled, but devel/mongo-c-driver not updated still > > > > 1.23.2_3: > > > > > > > > root@vm:~ # git -C /ds/ports/freebsd/head pull > > > > hint: Pulling without specifying how to reconcile divergent > > > > branches is hint: discouraged. You can squelch this message by > > > > running one of the following hint: commands sometime before > > > > your next pull: : > > > > 31 files changed, 176 insertions(+), 152 deletions(-) > > > > rename > > > > sysutils/barrier/files/{patch-src_lib_net_SecureUtils.cpp => > > > > extra-patch-src_lib_net_SecureUtils.cpp} (100%) root@vm:~ # > > > > egrep '^DISTVERSION=' > > > > /ds/ports/freebsd/head/devel/mongo-c-driver/Makefile > > > > DISTVERSION= 1.23.2 root@vm:~ # git -C > > > > /ds/ports/freebsd/head rev-parse --verify --short HEAD > > > > 07f40427f1f9 root@vm:~ # git -C /ds/ports/freebsd/head show > > > > --quiet --max-count=1 --format="%ci" HEAD 2023-07-24 23:30:15 > > > > -0700 root@vm:~ # > > > > > > > > Could you tell me how to get 1.24.0 ? > > > > > > > > Regards > > > > --- > > > > Kazuhiko Kiriyama > > > > > > > > > > > > > > > > Regards > --- > Kazuhiko Kiriyama >