mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: Matthias Juchem <juchem@uni-mannheim.de>
Cc: <alan@lxorguk.ukuu.org.uk>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Re: [PATCH] new bug report script
Date: 07 Jan 2001 01:06:15 -0800	[thread overview]
Message-ID: <m3vgrrafzs.fsf@otr.mynet.cygnus.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0101070950530.7104-100000@gandalf.math.uni-mannheim.de>
In-Reply-To: Matthias Juchem's message of "Sun, 7 Jan 2001 10:00:02 +0100 (CET)"

Matthias Juchem <matthias@gandalf.math.uni-mannheim.de> writes:

>      # c library 5
> -    if ( -e "/lib/libc.so.5" ) {
> -	( $v_libc5 = `/lib/libc.so.5`) =~ m/GNU C Library .+ version (\S+),/;
> -	$v_libc5 = $1;
> -    } else {
> -	$v_libc5 = "not found";
> +    opendir LIBDIR, "/lib" or die "/lib/ not found, very strange";
> +    my @allfiles = readdir LIBDIR;
> +    closedir LIBDIR;
> +    $v_libc5 = 'not found';
> +    foreach (sort @allfiles) {
> +	m/libc.so.(5\S+)/ and $v_libc5 = $1;
>      }
> +    closedir LIBDIR;

This won't work everywhere either.  Red Hat systems (maybe others)
have libc5 out of the way in a separate subdir.  Your best bet is to
use ldconfig:

  /sbin/ldconfig -p|grep libc.so.5

which produces something like

          libc.so.5 (libc5) => /usr/i486-linux-libc5/lib/libc.so.5

and then look in that directory (/usr/i486-linux-libc5/lib).

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-07  9:06 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-07  7:48 Matthias Juchem
2001-01-07  7:56 ` Ulrich Drepper
2001-01-07  8:01   ` Matthias Juchem
2001-01-07  8:16     ` Ulrich Drepper
2001-01-07 13:42       ` Paul Gortmaker
2001-01-07 13:52         ` Matthias Juchem
2001-01-07  9:43     ` Brett
2001-01-07  9:44       ` Matthias Juchem
2001-01-07 11:21         ` David Ford
2001-01-07 11:16       ` Kurt Roeckx
2001-01-07  9:00   ` [PATCH] " Matthias Juchem
2001-01-07  9:06     ` Ulrich Drepper [this message]
2001-01-07  9:19       ` Matthias Juchem
2001-01-07 12:38       ` Matthias Juchem
2001-01-07 13:58 ` Alan Cox
2001-01-07 14:00   ` Matthias Juchem
2001-01-07 14:19     ` Alan Cox
2001-01-07 14:33       ` Matthias Juchem
2001-01-07 14:43         ` David Ford
2001-01-07 14:49           ` Matthias Juchem
2001-01-08  0:24           ` Keith Owens
2001-01-08  1:26             ` Ulrich Drepper
2001-01-08  1:40               ` Matthias Juchem
2001-01-08  1:53                 ` Barry K. Nathan
2001-01-07 15:02       ` Russell King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3vgrrafzs.fsf@otr.mynet.cygnus.com \
    --to=drepper@redhat.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=drepper@cygnus.com \
    --cc=juchem@uni-mannheim.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome