From owner-freebsd-questions@FreeBSD.ORG Sun Aug 28 10:13:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6C0BA16A41F for ; Sun, 28 Aug 2005 10:13:09 +0000 (GMT) (envelope-from wigry@uninet.ee) Received: from mail.neti.ee (smtp-out-1.neti.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17E5143D48 for ; Sun, 28 Aug 2005 10:13:09 +0000 (GMT) (envelope-from wigry@uninet.ee) Message-ID: <43118E24.9060904@uninet.ee> Date: Sun, 28 Aug 2005 13:12:52 +0300 From: Rein Kadastik User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee Subject: sed problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2005 10:13:09 -0000 Hi, Once upon a time I manage to upgrade one of my FreeBSD servers to some arbitrary 4.6-STABLE release. It was summer 2002. Since then I am not able to upgrade the system anymore as make buildworld will always terminate while compiling ncurses (specifically compiling lib_gen.c). I have no complaints about the stability os the system but being nt able to apply securty patches is actually bad. Finally I took a time to break the compilation procedure to a pieces and found out that the sed command in MKib_gen.sh script does not behave as it should. Here is the sed command: sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' On working system, the input is transformed: int something() -> int gen_something on non_working system, the result remains the same: int something() -> int something() That is aso the reason, why build process fails. I copied the sed binary from the working system over to this broken system but no luck, the sed refuses to work crectly. The ldd command shows that sed depends only from C library and of course that part is different on working system and the broken system. So I guess I need some advice here what to do next. I would not like to make a full reinstall (otherwise I would have done that already long tme ago). So the question is, How to fix that sed problem and if C library update is neccessary to get the "make buildworld" working, how can I do it without rendering my system useless. -- wigry