From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 24 Oct 2022 15:01:33 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1omx5B-000j0r-RQ for lore@lore.pengutronix.de; Mon, 24 Oct 2022 15:01:33 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1omx5A-0000lu-QT; Mon, 24 Oct 2022 15:01:32 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1omx4q-0000lj-21 for ptxdist@pengutronix.de; Mon, 24 Oct 2022 15:01:12 +0200 From: Alexander Dahl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1666616471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0BtqdojWB6nn1wW937oWE2+xxt3T/XaNNvpZn5grkSM=; b=IUjPU5kh/QDo85eiNQjp1Dy5y+7E35XkFui/k/KrV1ilKhFjNKXBkStNcsbSKnjjgQJfFI 1uf5wxDW7prowMVtcnLyxNUPOXU8uiZNFcN7aLRxVXyI51C1kt/UPnx8HGDxm03DZGOEJR qODvql+G39FFqATjXKOYm7xmeRpvpazkUyZjhj6JeHHnqC8AezAbG/iZEjQ72iMSNOY+5y mfThx2BMwr/Lf/CDs2DKaM5tK/+QMdW/+V7gsXW9KCSWx5i3iVvjr7n4atBpv64AFjeqr5 fImx2dSIrnaCPdvBIvC+djwgfLNTKEw76Mh51lQ+r7S3SDs43vg2FjeeMLAOfw== To: ptxdist@pengutronix.de Date: Mon, 24 Oct 2022 15:01:10 +0200 Message-ID: <2858000.5br6j6eiH4@ada> In-Reply-To: <17374513.6R07E8ZAPD@ada> References: <20221024083035.32746-1-ada@thorsis.com> <17374513.6R07E8ZAPD@ada> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Clacks-Overhead: GNU Terry Pratchett X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH] monit: Add dependency to nsl X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hello, Am Montag, 24. Oktober 2022, 14:28:50 CEST schrieb Alexander Dahl: > Hei hei, >=20 > Am Montag, 24. Oktober 2022, 10:30:35 CEST schrieb Alexander Dahl: > > Console log is flooded with this: > > /usr/bin/monit: error while loading shared libraries: libnsl.so.1: > > cannot open shared object file: No such file or directory > >=20 > > Output of readelf is this: > > Dynamic section at offset 0xa5a50 contains 35 entries: > > Tag Type Name/Value > > =20 > > 0x00000001 (NEEDED) Shared library: [librt.so.= 1] > > 0x00000001 (NEEDED) Shared library: [libm.so.6] > >=20 > > 0x00000001 (NEEDED) Shared library: > > [libpthread.so.0] 0x00000001 (NEEDED) Shared librar= y: > > [libcrypt.so.1] 0x00000001 (NEEDED) Shared library: > > [libresolv.so.2] 0x00000001 (NEEDED) Shared library: > > [libnsl.so.1] 0x00000001 (NEEDED) Shared library: > > [libc.so.6] 0x00000001 (NEEDED) Shared library: > > [ld-linux-armhf.so.3] > >=20 > > Console log flooding is gone after setting the option. > >=20 > > Signed-off-by: Alexander Dahl > > --- > >=20 > > rules/monit.in | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/rules/monit.in b/rules/monit.in > > index 383433e78..9db337331 100644 > > --- a/rules/monit.in > > +++ b/rules/monit.in > > @@ -3,6 +3,7 @@ > >=20 > > menuconfig MONIT > > =20 > > tristate > > prompt "monit " > >=20 > > + select LIBC_NSL > >=20 > > select OPENSSL if MONIT_SSL > > select ZLIB if MONIT_ZLIB > > select BUSYBOX_START_STOP_DAEMON if MONIT_STARTSCRIPT >=20 > Well, this works with OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf > which I used up to now in the BSP in question. However on another BSP wi= th > OSELAS.Toolchain-2020.08.0/arm-v7a-linux-gnueabihf I get the following > error: >=20 > [74/86] started : glibc.targetinstall > install_copy_toolchain_lib: libnsl.so not found >=20 > Both BSPs are still on ptxdist-2021.03.0 =E2=80=A6 what's the best way to= quickly > solve this? Upgrade to recent ptxdist and toolchain might be possible, b= ut > that takes quite some time, and I don't have much for that currently, so = an > alternative approach would be appreciated. O:-) Backported commit fd688d2239bc ("glibc: specify the major version number wh= en=20 installing most of the libraries") now and builds are successful again with= =20 both toolchains. Runtime testing will follow, but I'm confident. Greets Alex