From owner-freebsd-questions@FreeBSD.ORG Wed May 21 20:36:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B02537B401 for ; Wed, 21 May 2003 20:36:20 -0700 (PDT) Received: from smtp-out.comcast.net (smtp-out.comcast.net [24.153.64.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7695D43F85 for ; Wed, 21 May 2003 20:36:19 -0700 (PDT) (envelope-from ralph@maxsoft.com) Received: from kq9.net (pcp02336465pcs.echryh01.nj.comcast.net [68.84.64.177]) by mtaout01.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HF900ET7RBM69@mtaout01.icomcast.net> for freebsd-questions@freebsd.org; Wed, 21 May 2003 23:35:46 -0400 (EDT) Received: from [192.168.1.27] (rd.dratman.com [192.168.1.27]) by kq9.net (8.12.9/8.11.1) with ESMTP id h4M3ZjXI041531; Wed, 21 May 2003 23:35:45 -0400 (EDT envelope-from ralph@maxsoft.com) Date: Wed, 21 May 2003 23:35:45 -0400 From: Ralph Dratman In-reply-to: <20030522014859.GA13024@dan.emsphone.com> X-Sender: ralph99@popmail.voicenet.com To: Dan Nelson , freebsd-questions@freebsd.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <20030522002446.GE99691@webserver.get-linux.org> <20030522014859.GA13024@dan.emsphone.com> Subject: Re: libintl.so.2 problems (REPOST: wrong subject and recipient) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2003 03:36:20 -0000 Dan, Your basic idea (fiddle with the source) worked, and now wget is working! I really hadn't thought of changing any source code, because I don't know much about FreeBSD internals. Well, nothing, you might say. But I guess in the case of getting ports to build, it's really not such a big deal. I only had to modify the wget source, no libraries, thank goodness. In this case I went back to the 4.2 distribution and loaded up the old wget port that came with it. Even that version wouldn't build (something updated later out of sync, no doubt). But the link message, which was unrelated to the earlier libintl problem, was quite clear, and I just needed to eliminate a few lines of code that, fortunately, were noted in the comments as inessential. And yes, I tried ldd. Most informative. (I could no doubt spend the rest of my life learning this stuff.) Thank you very much for your help. Any advice on getting a live server, now running 4.2, up to 4.7 or 4.8? Regards, Ralph >In the last episode (May 21), Ralph Dratman said: >> So it appears that the particular shared object in question, >> libintl.so.2, is not included in (this version of?) gettext. > >Find whatever port is trying to use libintl.so.2 and rebuild it too. >ldd /usr/local/bin/* should help here. The portupgrade port makes it a >cinch to do a force-rebuild of arbitrary ports. You won't be able to >use binary packages on a userland as old as 4.2, but you should be able >to compile whatever you need from ports. > >> There is an additional cryptic message I keep getting during builds, >> which just might conceivably be relevant: >> >> /bin/realpath: not found > >I've been able to use the ports tree on a system with a 4.0(!) kernel >and userland by rebuilding certain binaries from the base system as >necessary. From a quick examination, it looks like I've only had to >build newer versions of lib/libc, lib/libfetch, usr.bin/make, >usr.sbin/pkg_install, bin/realpath, share/mk, and the files in >etc/mtree. You can get away with not updating libc if you replace >calls to getprogname() with __progname (prototype it as extern char >*__progname). > >-- > Dan Nelson > dnelson@allantgroup.com