[775] in athena10
Re: get_srvtab
daemon@ATHENA.MIT.EDU (Anders Kaseorg)
Tue Jan 6 13:53:57 2009
Date: Tue, 6 Jan 2009 13:51:54 -0500 (EST)
From: Anders Kaseorg <andersk@MIT.EDU>
To: Jonathan Reed <jdreed@mit.edu>
cc: athena10@mit.edu
In-Reply-To: <87AE100A-54C3-4063-879E-D2F99960A876@mit.edu>
Message-ID: <alpine.DEB.2.00.0901061338490.11108@vinegar-pot.mit.edu>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-1257098496-712986084-1231267914=:11108"
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1257098496-712986084-1231267914=:11108
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
On Tue, 6 Jan 2009, Jonathan Reed wrote:
> get_srvtab: relocation error: get_srvtab: symbol errno, version GLIBC_2.0=
not=20
> defined in file libc.so.6 with link time reference
>
> I suspect this is related to the warning you currently get on RHEL:
> "Incorrectly built binary which accesses errno or h_errno directly. Needs=
to=20
> be fixed."
That=E2=80=99s right. This error is caused by attempting to declare
extern int errno;
directly instead of including <errno.h>. glibc=E2=80=99s errno has been a =
macro=20
for many years in order to support thread safety.
A workaround is
env LD_ASSUME_KERNEL=3D2.4.1 get_srvtab
but the source should be fixed.
Anders
---1257098496-712986084-1231267914=:11108--