From owner-freebsd-questions@FreeBSD.ORG Mon Feb 8 04:10:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D8CE106566C for ; Mon, 8 Feb 2010 04:10:15 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505c.appriver.com [98.129.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 43FEC8FC0A for ; Mon, 8 Feb 2010 04:10:15 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.45 X-Note-Reverse-DNS: ht03.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G173 G174 G175 G176 G180 G181 G192 G279 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.45] (HELO HT03.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.3.2) with ESMTPS id 26607467; Sun, 07 Feb 2010 22:10:20 -0600 Received: from mbx03.exg5.exghost.com ([169.254.1.200]) by HT03.exg5.exghost.com ([10.242.228.75]) with mapi; Sun, 7 Feb 2010 22:10:13 -0600 From: Peter Steele To: Pieter de Goeje , "freebsd-questions@freebsd.org" Date: Sun, 7 Feb 2010 22:10:11 -0600 Thread-Topic: What is easiest way to build a BSD 8 binary on a BSD 7 box? Thread-Index: AcqoXvsilpAc2Jr/RcGrpUI3DrXDZgAEpZlg Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B258A@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B24D6@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2501@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B255E@MBX03.exg5.exghost.com> <201002080233.59464.pieter@degoeje.nl> In-Reply-To: <201002080233.59464.pieter@degoeje.nl> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: What is easiest way to build a BSD 8 binary on a BSD 7 box? 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: Mon, 08 Feb 2010 04:10:15 -0000 >You could check that the tool is actually linked to the correct libraries = with ldd(1). If all else fails, you could try building a full FreeBSD 8 jai= l or chroot. >However running FBSD 8 userland on a 7 kernel is unsupported so I have no = idea if that will actually work well enough to build software... I suspect I know the problem. The tool I'm building links with a bunch of o= ther libraries we've developed, which I didn't write. I only modified the m= akefile of my own code. I'm going to have to tweak the makefiles of a dozen= different library modules. That'll be more work but it needs to be done to= confirm this approach works. I checked the binaries built on BSD7 and a re= al BSD8 system and there are clear differences: BSD7 binary: libm.so.5 =3D> /lib/libm.so.5 (0x800724000) libreadline.so.7 =3D> /usr/local/lib/compat/libreadline.so.7 (0x800= 843000) libncurses.so.7 =3D> /usr/local/lib/compat/libncurses.so.7 (0x80098= 0000) libcrypto.so.5 =3D> /usr/local/lib/compat/libcrypto.so.5 (0x800acc0= 00) libdevinfo.so.4 =3D> /usr/local/lib/compat/libdevinfo.so.4 (0x800d5= e000) libkvm.so.4 =3D> /usr/local/lib/compat/libkvm.so.4 (0x800e60000) libutil.so.7 =3D> /usr/local/lib/compat/libutil.so.7 (0x800f68000) libthr.so.3 =3D> /lib/libthr.so.3 (0x801077000) libc.so.7 =3D> /lib/libc.so.7 (0x80118f000) BSD8 binary: libm.so.5 =3D> /lib/libm.so.5 (0x800724000) * libreadline.so.8 =3D> /lib/libreadline.so.8 (0x800843000) * libncurses.so.8 =3D> /lib/libncurses.so.8 (0x800981000) * libcrypto.so.6 =3D> /lib/libcrypto.so.6 (0x800acd000) * libdevinfo.so.5 =3D> /usr/lib/libdevinfo.so.5 (0x800d67000) * libkvm.so.5 =3D> /lib/libkvm.so.5 (0x800e69000) * libutil.so.8 =3D> /lib/libutil.so.8 (0x800f71000) libthr.so.3 =3D> /lib/libthr.so.3 (0x801081000) libc.so.7 =3D> /lib/libc.so.7 (0x801199000) I suspect the libkvm library is the culprit. This list though is what I nee= d to aim for using the sysroot approach.=20