From owner-freebsd-ports@FreeBSD.ORG Sat Mar 10 08:57:05 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A4C7106566B; Sat, 10 Mar 2012 08:57:05 +0000 (UTC) (envelope-from svyatoslav.lempert@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 84A408FC16; Sat, 10 Mar 2012 08:57:04 +0000 (UTC) Received: by lboi15 with SMTP id i15so696007lbo.13 for ; Sat, 10 Mar 2012 00:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=UE9kDKLi8nz+MDtQY63VwA2lD4vGa0fLhzpzsWoQUJE=; b=Ko4bmjoToIVoGYMKwQ0oNQ9q9pgNVM1TE22zGH9cmd+SS1ceVb8czR1jpI7+uCoibL fHm133A+KScUfqlR1JrHbcVHk2o+hb5waZcBFfv3y3+Gql23JIG8m8jI8yt7yPap12Jk 2JojN+wVZL/0ynBOurS6gI7DASIjyMJhHoPUERgwoWpCfRs7WP12XkfKDpQdj0kDwVKX vVl60KQBOv9LQgoeSCGPQvkVlat0LcXmgERpnATKgYpB7RQaYshgyNeHXoVxY55eMWH8 It6J1GU/LSA8jFxc2IyJ1Z8ZtX305YWW3o4h4vQOLbSEEEJWS3FjIJPDbhkLuKJdNYp1 MO0Q== Received: by 10.112.37.73 with SMTP id w9mr1918292lbj.22.1331369823273; Sat, 10 Mar 2012 00:57:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.99.101 with HTTP; Sat, 10 Mar 2012 00:56:43 -0800 (PST) In-Reply-To: <20120310092217.00007cfc@unknown> References: <1331226987.9802.19.camel@work> <20120309134425.Horde.RIrSbJjmRSRPWfspeJi2piA@webmail.leidinger.net> <20120309134433.GX23354@e-new.0x20.net> <20120309153952.Horde.n8gTQpjmRSRPWhY4YaaoHcA@webmail.leidinger.net> <20120310092217.00007cfc@unknown> From: Svyatoslav Lempert Date: Sat, 10 Mar 2012 17:56:43 +0900 Message-ID: To: Alexander Leidinger Content-Type: text/plain; charset=UTF-8 Cc: emulation@freebsd.org, ports@freebsd.org Subject: Re: FreeBSD Port: linux_base-f10-10_4 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2012 08:57:05 -0000 2012/3/10 Alexander Leidinger : >> >> # ./bash >> FATAL: kernel too old >> >> # file bash >> bash: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), >> dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped >> >> # sysctl compat.linux.osrelease=2.6.32 >> compat.linux.osrelease: 2.6.16 -> 2.6.32 >> >> # ./bash >> Segmentation fault > > Can you please ktrace it and use linux_kdump to have a look what is the > most likely cause of this? It would be good to know what's missing in > the kernel. > ldconfig does not work too, any binary crashed, this file is first (it called by port installation script) # ktrace ./ldconfig Segmentation fault # kdump -f ktrace.out 69021 ktrace RET ktrace 0 69021 ktrace CALL execve(0x7fffffffed97,0x7fffffffeb30,0x7fffffffeb40) 69021 ktrace NAMI "./ldconfig" 69021 ldconfig RET linux_olduname 0 69021 ldconfig CALL linux_newuname(0xffffda4a) 69021 ldconfig RET linux_newuname 0 69021 ldconfig CALL linux_brk(0) 69021 ldconfig RET linux_brk 135380992/0x811c000 69021 ldconfig CALL linux_brk(0x811cd40) 69021 ldconfig RET linux_brk 135384384/0x811cd40 69021 ldconfig CALL linux_set_thread_area(0xffffdc00) 69021 ldconfig RET linux_set_thread_area 0 69021 ldconfig PSIG SIGSEGV SIG_DFL code=0x1 >> What do you think about the CentOS? It may be more optimal to look on >> CentOS 6 userland port? > > Any long-term release looks better than what we have now. A RPM based > one (like CentOS) looks more easy to port because of the existing RPM > infrastructure, than any non-RPM based one. I just tested CentOS 6.2 and this system binaries work and run without problem, but I need change compat.linux.osrelease to 2.6.18, I'll make soon port for setup CentOS 6.x userland (like emulators/linux_base-f10 there are all very similar) and send this as PR. -- Svyatoslav