* a check-in within the last few days broke head build of target=avr on OSX
@ 2005-05-14 8:56 Paul Schlie
2005-05-14 10:10 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Paul Schlie @ 2005-05-14 8:56 UTC (permalink / raw)
To: gdb-patches
gcc -g -O2 \
-o gdb gdb.o libgdb.a \
../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a
../libiberty/libiberty.a ../libgui/src/libgui.a
-L/Applications/avr/avr-bld/itcl/itcl -litcl3.2
-L/Applications/avr/avr-bld/itcl/itk -litk3.2
-L/Applications/avr/avr-bld/tk/unix -ltk8.4
-L/Applications/avr/avr-bld/tcl/unix -ltcl8.4 -L/usr/X11R6/lib -lX11
-framework CoreFoundation -lncurses -lm -liconv ../libiberty/libiberty.a
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?)
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: a check-in within the last few days broke head build of target=avr on OSX 2005-05-14 8:56 a check-in within the last few days broke head build of target=avr on OSX Paul Schlie @ 2005-05-14 10:10 ` Eli Zaretskii 2005-05-14 11:34 ` Mark Kettenis 0 siblings, 1 reply; 4+ messages in thread From: Eli Zaretskii @ 2005-05-14 10:10 UTC (permalink / raw) To: Paul Schlie; +Cc: gdb-patches > 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? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a check-in within the last few days broke head build of target=avr on OSX 2005-05-14 10:10 ` Eli Zaretskii @ 2005-05-14 11:34 ` Mark Kettenis 2005-05-14 12:05 ` Eli Zaretskii 0 siblings, 1 reply; 4+ messages in thread From: Mark Kettenis @ 2005-05-14 11:34 UTC (permalink / raw) To: binutils, eliz; +Cc: schlie, gdb-patches 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; ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a check-in within the last few days broke head build of target=avr on OSX 2005-05-14 11:34 ` Mark Kettenis @ 2005-05-14 12:05 ` Eli Zaretskii 0 siblings, 0 replies; 4+ messages in thread From: Eli Zaretskii @ 2005-05-14 12:05 UTC (permalink / raw) To: Mark Kettenis; +Cc: binutils, schlie, gdb-patches > Date: Sat, 14 May 2005 13:17:17 +0200 (CEST) > From: Mark Kettenis <mark.kettenis@xs4all.nl> > CC: schlie@comcast.net, gdb-patches@sources.redhat.com > > ok? > > Index: ChangeLog > from Mark Kettenis <kettenis@gnu.org> > > * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead > of basename. Fine with me. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-14 11:53 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-05-14 8:56 a check-in within the last few days broke head build of target=avr on OSX Paul Schlie 2005-05-14 10:10 ` Eli Zaretskii 2005-05-14 11:34 ` Mark Kettenis 2005-05-14 12:05 ` Eli Zaretskii
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox