From nobody Thu Jul 27 05:56:13 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 4RBKlD1qP1z4pw2B for ; Thu, 27 Jul 2023 05:56:24 +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 4RBKlC4dLxz3M8Y for ; Thu, 27 Jul 2023 05:56:23 +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 36R5uDf4074737; Thu, 27 Jul 2023 14:56:13 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <202307270556.36R5uDf4074737@kx.truefc.org> Date: Thu, 27 Jul 2023 14:56:13 +0900 From: KIRIYAMA Kazuhiko To: Hiroo Ono Cc: KIRIYAMA Kazuhiko , Yuri , 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: <20230727110225.6cc13af4@nowhere.oikumene.ukehi.net> 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> <20230727110225.6cc13af4@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: 4RBKlC4dLxz3M8Y 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 11:02:25 +0900, Hiroo Ono wrote: > > 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? I've patched with [1] and port skelton that I used is [2]. [1] https://bz-attachments.freebsd.org/attachment.cgi?id=243613 [2] http://www.truefc.org/~kiri/freebsd/ports/mongo-c-driver/ > > > 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 > > >