Subject: Re: The mysterious NEEDED
To: None <,,>
From: Ryo HAYASAKA <>
List: tech-toolchain
Date: 11/01/2002 07:01:09

In message <>,
Matthias Drochner <> wrote:

> to provide some additional data points to the crtend.o mystery
> described in

I've just found that basesrc/lib/libc/gen/basename.c rev. 1.5 causes
this problem for building pkgsrc/sysutils/rox.  The problem goes away
with rev. 1.4 of basename.c.

The line "static char result[PATH_MAX];" in basename.c is incompatible
with gnusrc/gnu/dist/toolchain/ld/emultempl/elf32.em.  In elf32.em, I
guess a return value of basename(3) is overridden by the next
basename(3) call in another function.

So, If I change all of basename(...) into xstrdup(basename(...)) in
elf32.em, the problem is not seen.

How to fix this?

Japan Advanced Institute of Science and Technology (JAIST)