[617] in arla-drinkers
Re: Problems, using libgetcwd.so.0.21
daemon@ATHENA.MIT.EDU (Marcus Sundberg)
Fri Feb 19 13:05:46 1999
From owner-arla-drinkers@stacken.kth.se Fri Feb 19 18:05:45 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 9631 invoked from network); 19 Feb 1999 18:05:43 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 19 Feb 1999 18:05:43 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id SAA11528
for arla-drinkers-list; Fri, 19 Feb 1999 18:58:01 +0100 (MET)
Received: from adamel (sl97.modempool.kth.se [130.237.37.123])
by sundance.stacken.kth.se (8.8.8/8.8.8) with SMTP id SAA11514;
Fri, 19 Feb 1999 18:57:43 +0100 (MET)
Message-ID: <36CDA615.4DC29830@stacken.kth.se>
Date: Fri, 19 Feb 1999 17:57:41 +0000
From: Marcus Sundberg <mackan@stacken.kth.se>
X-Mailer: Mozilla 3.04 (X11; U; Linux 2.2.1 i586)
MIME-Version: 1.0
To: Herbert Huber <Herbert.Huber@lrz-muenchen.de>
CC: arla-drinkers@stacken.kth.se
Subject: Re: Problems, using libgetcwd.so.0.21
References: <36CD14DE.4E1F27C@lrz-muenchen.de>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
Herbert Huber wrote:
>
> Hello!
>
> I´m using arla 0.21 on my Linux 2.2.1 dual Pentium machine. Trying to
> get rid of the disturbing messages any time when calling tcsh or
> /bin/pwd in my AFS $HOME, I performed the steps as described in the
> INSTALL document:
>
> 1. Copied /usr/arla/lib/libgetcwd.so.X (where X is the arla
> version) to /lib.
> 2. Ran "/sbin/ldconfig".
> 3. Ran "LD_PRELOAD=/lib/libgetcwd.so.0 /bin/pwd".
> 4. Added line to /etc/ld.so.preload:
> /lib/libgetcwd.so.0
>
> After that /bin/pwd and also tcsh worked fine, but other programs like
> lpr, lpq, xosview, tokens.krb, ... had problems resolving the function
> __getcwd. For example:
>
> tokens.krb: can't resolve symbol '__getcwd'
>
> Have anybody solved this problem? Thanks in advance
The __getcwd symbol only exists in glibc 2.0, not in libc5 or glibc 2.1.
If you have a mixed glibc/libc5 system you will get the avove error when
running libc5 apps.
If you only intend to use the libgetcwd.so on Linux 2.2.x systems you
can easily fix the problem by applying this diff:
--- xfs/linux/getcwd.c.orig Fri Feb 19 18:45:51 1999
+++ xfs/linux/getcwd.c Fri Feb 19 18:46:12 1999
@@ -59,8 +59,6 @@
retval = sys_getcwd(buf, size);
if (retval >= 0)
return buf;
- if (errno == ENOSYS)
- return __getcwd(buf, size);
else
return NULL;
}
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan/
Royal Institute of Technology | Phone: +46 707 295404
Stockholm, Sweden | E-Mail: mackan@stacken.kth.se