Hideki Yamamoto
2004-Dec-22 19:24 UTC
'Shared object "libc.so.4" not found' when running FreeBSD 4 command on 5.3
Hi, When trying to run my application, which was compiled on FreeBSD4.8, on FreeBSD 5.3, It does not work and appears 'Shared object "libc.so.4" not found.' After make an symbolic link as follows, # ln -s /usr/lib/libc.so /usr/lib/libc.so.4 it works well. Is this link is correct for this problem? My kernel config file includes 'options COMPAT_FREEBSD4' line. I wonder if this option has some problems. Best regards, Hideki Yamamoto ----------------------------------------------------------------- Hideki YAMAMOTO | Broadband Media Solutions Department | E-mail: yamamoto436@oki.com Broadband Media Company | Tel: +81-48-420-7012 Oki Electric Industry Co., Ltd. | FAX: +81-48-420-7016
Xin LI
2004-Dec-22 19:45 UTC
'Shared object "libc.so.4" not found' when running FreeBSD 4 command on 5.3
On Thu, Dec 23, 2004 at 12:24:49PM +0900, Hideki Yamamoto wrote:> When trying to run my application, which was compiled on FreeBSD4.8, > on FreeBSD 5.3, It does not work and appears > 'Shared object "libc.so.4" not found.' > > After make an symbolic link as follows, > # ln -s /usr/lib/libc.so /usr/lib/libc.so.4 > it works well. > > Is this link is correct for this problem?It may work, but it's not recommended. A recommended solution is that you either re-compile the application, or install ports/misc/compat4x/ so you get libc.so.4.> My kernel config file includes 'options COMPAT_FREEBSD4' line. > I wonder if this option has some problems.This should not be painful :-) If you have many 4-STABLE binaries then you will want this. Cheers, -- Xin LI <delphij frontfree net> http://www.delphij.net/ See complete headers for GPG key and other information. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041223/87571cd9/attachment.bin
Kris Kennaway
2004-Dec-22 23:16 UTC
'Shared object "libc.so.4" not found' when running FreeBSD 4 command on 5.3
On Thu, Dec 23, 2004 at 12:24:49PM +0900, Hideki Yamamoto wrote:> > Hi, > > When trying to run my application, which was compiled on FreeBSD4.8, > on FreeBSD 5.3, It does not work and appears > 'Shared object "libc.so.4" not found.' > > After make an symbolic link as follows, > # ln -s /usr/lib/libc.so /usr/lib/libc.so.4 > it works well. > > Is this link is correct for this problem?No!> My kernel config file includes 'options COMPAT_FREEBSD4' line. > I wonder if this option has some problems.No, that's just the kernel compatibility. To run dynamically-linked 4.x binaries, you need to install the misc/compat4x package. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041222/ed912656/attachment.bin
Björn König
2004-Dec-23 07:03 UTC
'Shared object "libc.so.4" not found' when running FreeBSD 4 command on 5.3
Hello Hideki, Creating symbolic links with libaries is not the recommended way to make programms working. Sooner or later this method will entail new problems. The port misc/compat4x installs the missing libc.so.4. Alternatively install it with "pkg_add -r compat4x-i386-5.3". Best regards Bj?rn K?nig