Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 19:58:19 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        John Polstra <jdp@polstra.com>
Cc:        asmodai@wxs.nl, current@FreeBSD.ORG
Subject:   Re: Library question/challenge
Message-ID:  <199907290258.TAA65776@apollo.backplane.com>
References:   <199907290250.TAA89056@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
:> /usr/libexec/ld.so: warning: /usr/lib/libc.so.3: minor version -1 older
:> than expected 0, using it anyway
:> ld.so failed: bad magic number in "/usr/lib/libc.so.3"
:> 
:> This is netscape4.5 on CURRENT tracked since October 1998.
:> 
:> /var/run/ld.so.hints:
:>         search directories: /usr/lib/aout:/usr/lib/compat/aout:
:> 	/usr/X11R6/lib/aout:/usr/local/lib/aout
:> 
:> [ it has about 66 libs in this hints file ]
:
:Run ldd on the netscape binary and figure out why it's finding the
:wrong libc.  Make sure you don't have LD_LIBRARY_PATH set to include
:"/usr/lib".
:
:John

    This happened to me.  The problem is usually that the library it
    is looking for is simply missing from /usr/lib/aout or 
    /usr/X11R6/lib/aout.  Another possibility is that there may be
    old softlinks laying around /usr/lib or /usr/X11R6/lib for that
    library which are pointing to nowhere.

apollo:/usr/lib/aout# mv libc.so.3.1 xxx
apollo:/home/dillon> netscape
/usr/libexec/ld.so: warning: /usr/lib/libc.so.3: minor version -1 older than expected 0, using it anyway
ld.so failed: bad magic number in "/usr/lib/libc.so.3"
		(fails to run)
apollo:/home/dillon> 
apollo:/usr/lib/aout# mv xxx libc.so.3.1
apollo:/home/dillon> netscape
		... runs fine ...

    See if you can find where those aout/ compatibility libraries are.  
    Either you have them properly installed and the ldconfig_paths in
    /etc/rc.conf (defaults in /etc/defaults/rc.conf) are wrong, or
    you do not have them installed.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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