Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2004 02:06:52 -0500
From:      "Michael R. Wayne" <amd64@wayne47.com>
To:        freebsd-amd64@freebsd.org
Subject:   Re: How to use older libs in 32bit mode?
Message-ID:  <20041124070652.GT49800@manor.msen.com>
In-Reply-To: <20041120014424.GI20068@dragon.nuxi.com>
References:  <20041116052630.GD49800@manor.msen.com> <20041120014424.GI20068@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 19, 2004 at 05:44:24PM -0800, David O'Brien wrote:
> On Tue, Nov 16, 2004 at 12:26:30AM -0500, Michael R. Wayne wrote:
> > I'm trying to use a 32 bit executable which uses older libraries
> > (e.g. libm.so.2) and can not easily be regenerated.
> 
> This should be fine.  You just want *.so.*.
> 
> > I've tried copying the libs from a i386 5.3 RELEASE system into
> > /usr/lib32 with no success.
> 
> Please give details about "no success" -- that doesn't give us much to go
> on.

Sorry.  No success as in it cores.

I reduced the problem down to a very simple case:
   > cat hello.c
   #include <stdio.h>
   main () { printf("Hello world\n"); }

Put this onto a 5.3 RELEASE i386 platform and compiled it:
   > file hello
   hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.3.0, dynamically linked (uses shared libs), not stripped

It won't run though:
   > ./hello
   Segmentation fault (core dumped)

I did run the script to build the libs:
   > ls /usr/lib32 | wc
	393     393    5069

/\/\ \/\/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041124070652.GT49800>