From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: binutils@sources.redhat.com, eliz@gnu.org
Cc: schlie@comcast.net, gdb-patches@sources.redhat.com
Subject: Re: a check-in within the last few days broke head build of target=avr on OSX
Date: Sat, 14 May 2005 11:34:00 -0000 [thread overview]
Message-ID: <200505141117.j4EBHHks012087@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <01c55864$Blat.v2.4$43f48780@zahav.net.il> (eliz@gnu.org)
Date: Sat, 14 May 2005 12:05:48 +0300
From: "Eli Zaretskii" <eliz@gnu.org>
> Date: Sat, 14 May 2005 03:13:09 -0400
> From: Paul Schlie <schlie@comcast.net>
>
> ld: Undefined symbols:
> _basename_cannot_be_used_without_a_prototype
> make[1]: *** [gdb] Error 1
> make: *** [all-gdb] Error 2
>
> (any ideas as to what within the last few days may have affected this?)
The _basename_cannot_be_used_without_a_prototype thingy is defined on
libiberty.h. Could you please look at the preprocessor conditionals
there and see which one of them changed lately, and why?
There's a new _basename_cannot_be_used_without_a_prototype in there
instead of a function declaration without function arguments. We get
hit by this because bfd/elflink.c uses basename(). Other parts of
bfd/ use lbasename, so I propose the attached patch.
ok?
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
of basename.
Index: elflink.c
===================================================================
RCS file: /cvs/src/src/bfd/elflink.c,v
retrieving revision 1.163
diff -u -p -r1.163 elflink.c
--- elflink.c 8 May 2005 13:43:48 -0000 1.163
+++ elflink.c 14 May 2005 11:12:12 -0000
@@ -5377,7 +5377,7 @@ bfd_elf_size_dynamic_sections (bfd *outp
{
bfd_size_type indx;
- name = basename (output_bfd->filename);
+ name = lbasename (output_bfd->filename);
def.vd_hash = bfd_elf_hash (name);
indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr,
name, FALSE);
@@ -5600,7 +5600,7 @@ bfd_elf_size_dynamic_sections (bfd *outp
indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr,
elf_dt_name (t->vn_bfd) != NULL
? elf_dt_name (t->vn_bfd)
- : basename (t->vn_bfd->filename),
+ : lbasename (t->vn_bfd->filename),
FALSE);
if (indx == (bfd_size_type) -1)
return FALSE;
next prev parent reply other threads:[~2005-05-14 11:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-14 8:56 Paul Schlie
2005-05-14 10:10 ` Eli Zaretskii
2005-05-14 11:34 ` Mark Kettenis [this message]
2005-05-14 12:05 ` Eli Zaretskii
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=200505141117.j4EBHHks012087@elgar.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=binutils@sources.redhat.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=schlie@comcast.net \
/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