From owner-freebsd-questions Mon May 1 15:48:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from aragorn.neomedia.it (aragorn.neomedia.it [195.103.207.6]) by hub.freebsd.org (Postfix) with ESMTP id 38F7037BCB2 for ; Mon, 1 May 2000 15:48:29 -0700 (PDT) (envelope-from bartequi@neomedia.it) Received: from bartequi.ottodomain.org (ppp2-pa5.neomedia.it [195.103.207.114]) by aragorn.neomedia.it (8.9.3/8.9.3) with SMTP id AAA06733; Tue, 2 May 2000 00:48:22 +0200 (CEST) From: Salvo Bartolotta Date: Mon, 01 May 2000 23:50:06 GMT Message-ID: <20000501.23500600@bartequi.ottodomain.org> Subject: Re: ldconfig not configuring NOT solved To: "Sean O'Connell" , freebsd-questions@FreeBSD.ORG X-Mailer: SuperCalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Salvo- > Did you brandelf -t Linux /compat/linux/sbin/ldconfig ? > This the ldconfig that you must use for the linux compatiblity > layer. It maintains /compat/linux/etc/ld.so.cache . > The brandelf needs to change for static linux binaries and this > is one. Witness: > %ldd /compat/linux/sbin/ldconfig > ldd: /compat/linux/sbin/ldconfig: not a dynamic executable > Once you have brandelf'd it, rerun > /compat/linux/sbin/ldconfig > S > --------------------------------------------------------------------- -- > Sean O'Connell Email: sean@stat.Duke.EDU > Institute of Statistics and Decision Sciences Phone: (919) 684-5419 > Duke University Fax: (919) 684-8594 [redirected to -questions] Dear Sean, thanks again for replying. In the meanwhile, I remade the world (-CURRENT sources as of 30 April 9:30 GMT.) Most of the following operations were carried out in the new world. /usr/compat/linux/sbin/ldconfig should be correctly brandelfed: I copied it to ldconfig.orig and re-brandelfed ldconfig. "Diff" shows NO difference between the two files. In the "old" (as of 25 April 9 GMT) world, I had performed an analogous operation on /usr/compat/linux/lib/ld-2.1.2.so. In this case, there WAS a difference between the two binary files ld-2.1.2.so and ld-2.1.2.so.orig. Also, (in the "new" world) I had made sure that the symlink ld-linux.so.2 pointed at the right file: I had moved ld-2.1.2.so.orig to another directory as well as moving (paranoia) /usr/compat/linux/sbin/ldconfig.orig. NOT moving ld-config-2.1.2.so.orig had in fact previously produced weird effects: launching the Linux ldconfig had modified the ld-linux.so.2 symlink, and had made it point at ... ld-2.1.2.so.orig. However, whether I used the brandelfed version of ld-2.1.2.so or not, issuing "acroread4" produced the same error: ELF interpreter /lib/ld-linux.so2. not found. By the way, after brandelfing the dreaded ld-2.1.2.so, I issued "/usr/compat/linux/usr/bin/ldd /usr/compat/linux/sbin/ldconfig". It spat out "[...] /lib/ld-linux.so.2: not found ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)". Needless to say, I executed "/usr/compat/linux/sbin/ldconfig -p | grep ld" and I was told (wait for it) that ld-linux.so.2 WAS in the hints. Ok, probably brandelfing ld-2.1.2.so was not a good idea. The fact is, Acrobat Reader does NOT work (same error) with the original ld-2.1.2.so, either. I am a little confused. I may be missing something trivial; the Linux emulation layer may be *partly* broken (StarOffice 5.1a does work); or else the Linux emulation has been doing all this ... just to spite me :-) Is anybody out there running Acrobat Reader 4.05 (installed via ports) under -CURRENT ? As I had already said, the 4.05 Reader runs fine on another 4.0-S system of mine. Best regards, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message