Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 1996 22:20:02 -0700 (PDT)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        joerg_wunsch@uriah.heep.sax.de
Cc:        jkh@time.cdrom.com, freebsd-bugs@freefall.freebsd.org
Subject:   Re: misc/1413: Missing Library
Message-ID:  <199607230520.WAA13151@baloon.mimi.com>
In-Reply-To: <199607220605.IAA03829@uriah.heep.sax.de> (message from J Wunsch on Mon, 22 Jul 1996 08:05:17 %2B0200 (MET DST))

next in thread | previous in thread | raw e-mail | index | archive | help
 * That alone wouldn't matter.  They will be linked statically by
 * default.  ...Perhaps emacs uses its own ld magic?  Remember, our
 * trickery works only if you use cc(1) to link the binary (since the cc
 * specs explicitly use libgcc.a).
 * 
 * Satoshi, you should perhaps put legacy shared libs on thud into
 * /usr/legacy or something else which is only made known to the system
 * by ldconfig.  This way, neither cc nor ld can pick up the wrong libs.

Thanks, I did that.  The libgcc shared lib is in /usr/lib/compat.
Anything else?  (libcompat.so.* doesn't exist.)

I also wrote a small script to check these things easily.  Use it like 
"ldgrep gcc /usr/local/bin/*".

I am rebuilding the -current emacs and xemacs packages.
(Unfortunately, the ones for 2.1.5 will have to stay that way because
the CD is already mastered....)

Satoshi
=======
#!/bin/sh
#
# usage: ldgrep str executables...
#
grepstr="$1"
shift
ldd "$@" 2> /dev/null | \
  awk '/:/{bin=$1;next} {printf("%s%s\n",bin,$0)}' | \
  sed -e 's/	/ /g' | \
  egrep "$grepstr"



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