From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 10 16:06:48 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AB6410656EF for ; Fri, 10 Aug 2012 16:06:48 +0000 (UTC) (envelope-from dplassche@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 294628FC1C for ; Fri, 10 Aug 2012 16:06:47 +0000 (UTC) Received: by wicr5 with SMTP id r5so445312wic.13 for ; Fri, 10 Aug 2012 09:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3Lb29Zb7Gv/7T2bIoGKMRxoXbosMw7uQbIILOgLRXJ8=; b=I7fAg5wuheFPb5SWK5b3CZjDKf3kvtjiWpvur2vFi6a+9Qw1MKlj0m48iATayiGfNl zwfU0NxrXw2ZoL0fReLzWBuFt8q4ZQB2wQ35KSn02Hm+qqzkZxeKskZzASFSmJQVVhoz WdhzQa5x9Bbqd0baw1zsYzFvW6Lz/n6a/cBPNOzblj7P8NADHI7P4bVTFcXMs+8qMg8z oG70E/5nlZ2IHPt8fl+UoLEM9vvE6K25ZVGdQpiiD5F7knF4qyNMzm1AWabAlebxW1iG zLOH/TQhlRjg9okdPEGkJyai7xp2Xvry03NOXWSaYjDhMAqvvkp+YG87PjkWBv81FYIc faEw== MIME-Version: 1.0 Received: by 10.180.83.66 with SMTP id o2mr7113430wiy.14.1344614807051; Fri, 10 Aug 2012 09:06:47 -0700 (PDT) Received: by 10.223.134.7 with HTTP; Fri, 10 Aug 2012 09:06:46 -0700 (PDT) Date: Fri, 10 Aug 2012 12:06:46 -0400 Message-ID: From: Dan Plassche To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Fri, 10 Aug 2012 16:29:53 +0000 Subject: FreeBSD 1.x Binaries Work Except under Chroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2012 16:06:48 -0000 Hello, I'm successfully running FreeBSD 1.1.5.1 binaries from a directory on an 8.2 system. The goal is to ultimately setup a chroot build environment targeting 1.x for an old 386. However, whenever I chroot to the /freebsd-1.1.5.1 directory tree, the old binaries suddenly start failing with linker error messages such as this one: "ld.so: whereis: libc.so.1.1". I've tried to run ldconfig (static old and new versions) on clean copies of /freebsd-1.1.5.1 to correct the problem. Each copy of the tree has libc.so.1.1 under /usr/lib and the full /usr/lib/compat/aout (just in case). Running the old ldconfig with the -v flag against both library directories shows the libraries added and produces a new /var/run/ld.so.hints file. Running that same old ldconfig with -r shows "2:-lc.1.1 => /usr/lib/libc.so.1.1 (9-> -1)" but the binaries still fail in the chroot. The same process with the 8.2 ldconfig (after copying in /libexec/ld-elf.so.1 and /lib/libc.so.7 to make it work) also fails to resolve the problem after creating the aout /var/run/ld.so.hints file for /usr/lib/* and the elf /var/run/ld-elf.so.hints file for /lib. Would anyone have a suggestion please? The setup outside of the chroot works with the 1.x compat libraries combines with a kernel compiled with the compat options and PID_MAX set to 3000. Thank you, Dan Plassche -- Dan Plassche