Date: Sun, 7 Feb 2010 22:10:11 -0600 From: Peter Steele <psteele@maxiscale.com> To: Pieter de Goeje <pieter@degoeje.nl>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: RE: What is easiest way to build a BSD 8 binary on a BSD 7 box? Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B258A@MBX03.exg5.exghost.com> In-Reply-To: <201002080233.59464.pieter@degoeje.nl> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B24D6@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2501@MBX03.exg5.exghost.com> <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B255E@MBX03.exg5.exghost.com> <201002080233.59464.pieter@degoeje.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B9397B189EB6E46A5EE7B4C8A4BB7CB383B258A>