bfd/elf.c chokes on BSD/OS 4.3.1 running gcc 3.2.3

The Doctor doctor@doctor.nl2k.ab.ca
Sat May 7 05:44:00 GMT 2005


I applied the BSD/OS patch called BSDI_CONTRIB and now I get:


Script started on Fri May  6 21:38:54 2005
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ make
make  all-recursive
Making all in doc
Making all in po
/bin/sh ./libtool --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H  -I. -I.././bfd -I. -D_GNU_SOURCE     -I. -I.././bfd -I.././bfd/../include  -I.././bfd/../intl -I../intl    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c -o elf.lo elf.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c elf.c -o elf.o
elf.c: In function `_bfd_elf_canonicalize_dynamic_reloc':
elf.c:6029: warning: no previous prototype for `_bfd_elf_slurp_version_tables'
elf.c:6274: warning: no previous prototype for `_bfd_elf_make_empty_symbol'
elf.c:6292: warning: no previous prototype for `_bfd_elf_get_symbol_info'
elf.c:6303: warning: no previous prototype for `_bfd_elf_is_local_label_name'
elf.c:6328: warning: no previous prototype for `_bfd_elf_get_lineno'
elf.c:6337: warning: no previous prototype for `_bfd_elf_set_arch_mach'
elf.c:6440: warning: no previous prototype for `_bfd_elf_find_nearest_line'
elf.c:6489: warning: no previous prototype for `_bfd_elf_sizeof_headers'
elf.c:6504: warning: no previous prototype for `_bfd_elf_set_section_contents'
elf.c:6525: warning: no previous prototype for `_bfd_elf_no_info_to_howto'
elf.c:6533: warning: no previous prototype for `_bfd_elf_validate_reloc'
elf.c:6627: warning: no previous prototype for `_bfd_elf_close_and_cleanup'
elf.c:6648: warning: no previous prototype for `_bfd_elf_rel_vtable_reloc_fn'
elf.c:6706: warning: no previous prototype for `_bfd_elfcore_make_pseudosection'
elf.c:6860: warning: no previous prototype for `_bfd_elfcore_strndup'
elf.c:7443: warning: no previous prototype for `elfcore_write_note'
elf.c:7590: warning: no previous prototype for `elfcore_write_prfpreg'
elf.c:7602: warning: no previous prototype for `elfcore_write_prxfpreg'
elf.c:7678: warning: no previous prototype for `bfd_get_elf_phdr_upper_bound'
elf.c:7698: warning: no previous prototype for `bfd_get_elf_phdrs'
elf.c:7716: warning: no previous prototype for `_bfd_elf_sprintf_vma'
elf.c:7744: warning: no previous prototype for `_bfd_elf_fprintf_vma'
elf.c:7773: warning: no previous prototype for `_bfd_elf_reloc_type_class'
elf.c:7785: warning: no previous prototype for `_bfd_elf_rela_local_sym'
elf.c:7822: warning: no previous prototype for `_bfd_elf_rel_local_sym'
elf.c:7838: warning: no previous prototype for `_bfd_elf_section_offset'
elf.c:7870: warning: no previous prototype for `bfd_elf_bfd_from_remote_memory'
elf.c:7882: warning: no previous prototype for `_bfd_elf_get_synthetic_symtab'
elf.c:8009: warning: no previous prototype for `bfd_elf_match_symbols_in_sections'
elf.c:8171: syntax error at end of input
elf.c:48: warning: `elfcore_read_notes' used but never defined
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ make -k
make  all-recursive
Making all in doc
Making all in po
/bin/sh ./libtool --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H  -I. -I.././bfd -I. -D_GNU_SOURCE     -I. -I.././bfd -I.././bfd/../include  -I.././bfd/../intl -I../intl    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c -o elf.lo elf.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c elf.c -o elf.o
elf.c: In function `_bfd_elf_canonicalize_dynamic_reloc':
elf.c:6029: warning: no previous prototype for `_bfd_elf_slurp_version_tables'
elf.c:6274: warning: no previous prototype for `_bfd_elf_make_empty_symbol'
elf.c:6292: warning: no previous prototype for `_bfd_elf_get_symbol_info'
elf.c:6303: warning: no previous prototype for `_bfd_elf_is_local_label_name'
elf.c:6328: warning: no previous prototype for `_bfd_elf_get_lineno'
elf.c:6337: warning: no previous prototype for `_bfd_elf_set_arch_mach'
elf.c:6440: warning: no previous prototype for `_bfd_elf_find_nearest_line'
elf.c:6489: warning: no previous prototype for `_bfd_elf_sizeof_headers'
elf.c:6504: warning: no previous prototype for `_bfd_elf_set_section_contents'
elf.c:6525: warning: no previous prototype for `_bfd_elf_no_info_to_howto'
elf.c:6533: warning: no previous prototype for `_bfd_elf_validate_reloc'
elf.c:6627: warning: no previous prototype for `_bfd_elf_close_and_cleanup'
elf.c:6648: warning: no previous prototype for `_bfd_elf_rel_vtable_reloc_fn'
elf.c:6706: warning: no previous prototype for `_bfd_elfcore_make_pseudosection'
elf.c:6860: warning: no previous prototype for `_bfd_elfcore_strndup'
elf.c:7443: warning: no previous prototype for `elfcore_write_note'
elf.c:7590: warning: no previous prototype for `elfcore_write_prfpreg'
elf.c:7602: warning: no previous prototype for `elfcore_write_prxfpreg'
elf.c:7678: warning: no previous prototype for `bfd_get_elf_phdr_upper_bound'
elf.c:7698: warning: no previous prototype for `bfd_get_elf_phdrs'
elf.c:7716: warning: no previous prototype for `_bfd_elf_sprintf_vma'
elf.c:7744: warning: no previous prototype for `_bfd_elf_fprintf_vma'
elf.c:7773: warning: no previous prototype for `_bfd_elf_reloc_type_class'
elf.c:7785: warning: no previous prototype for `_bfd_elf_rela_local_sym'
elf.c:7822: warning: no previous prototype for `_bfd_elf_rel_local_sym'
elf.c:7838: warning: no previous prototype for `_bfd_elf_section_offset'
elf.c:7870: warning: no previous prototype for `bfd_elf_bfd_from_remote_memory'
elf.c:7882: warning: no previous prototype for `_bfd_elf_get_synthetic_symtab'
elf.c:8009: warning: no previous prototype for `bfd_elf_match_symbols_in_sections'
elf.c:8171: syntax error at end of input
elf.c:48: warning: `elfcore_read_notes' used but never defined
*** Error code 1 (continuing)
/bin/sh ./libtool --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H  -I. -I.././bfd -I. -D_GNU_SOURCE     -I. -I.././bfd -I.././bfd/../include  -I.././bfd/../intl -I../intl    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c -o elflink.lo elflink.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c elflink.c -o elflink.o
/bin/sh ./libtool --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H  -I. -I.././bfd -I. -D_GNU_SOURCE     -I. -I.././bfd -I.././bfd/../include  -I.././bfd/../intl -I../intl    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c -o elf-strtab.lo elf-strtab.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c elf-strtab.c -o elf-strtab.o
/bin/sh ./libtool --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H  -I. -I.././bfd -I. -D_GNU_SOURCE     -I. -I.././bfd -I.././bfd/../include  -I.././bfd/../intl -I../intl    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c -o dwarf1.lo dwarf1.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -D_GNU_SOURCE -I. -I.././bfd -I.././bfd/../include -I.././bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c dwarf1.c -o dwarf1.o
make: don't know how to make bsdi-core.lo (continuing)
`all-am' not remade because of errors.
make  all-recursive
Making all in po
make  all-recursive
Making all in doc
Making all in po
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c size.c
In file included from size.c:34:
../include/getopt.h:116: warning: function declaration isn't a prototype
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c bucomm.c
make: don't know how to make ../bfd/libbfd.la (continuing)
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c  .././binutils/objdump.c
In file included from ../binutils/objdump.c:56:
../include/getopt.h:116: warning: function declaration isn't a prototype
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c budemang.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c prdbg.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c rddbg.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c debug.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c stabs.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c ieee.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c rdcoff.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c arlex.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c ar.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c arsup.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c strings.c
In file included from strings.c:65:
../include/getopt.h:116: warning: function declaration isn't a prototype
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c objcopy.c
In file included from objcopy.c:26:
../include/getopt.h:116: warning: function declaration isn't a prototype
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c wrstabs.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c addr2line.c
In file included from addr2line.c:35:
../include/getopt.h:116: warning: function declaration isn't a prototype
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c readelf.c
In file included from readelf.c:116:
../include/getopt.h:116: warning: function declaration isn't a prototype
/bin/sh ./libtool --mode=link /usr/bin/gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686  -o readelf  readelf.o version.o  unwind-ia64.o ./../intl/libintl.a ../libiberty/libiberty.a 
/usr/bin/gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -o readelf readelf.o version.o unwind-ia64.o  ./../intl/libintl.a ../libiberty/libiberty.a
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c nm.c
In file included from nm.c:27:
../include/getopt.h:116: warning: function declaration isn't a prototype
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I.././binutils -I. -D_GNU_SOURCE  -I. -I.././binutils -I../bfd -I.././binutils/../bfd -I.././binutils/../include   -I.././binutils/../intl -I../intl  -DLOCALEDIR="\"/usr/share/locale\""  -Dbin_dummy_emulation=bin_vanilla_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -Wall -O3 -march=i686 -c cxxfilt.c
In file included from cxxfilt.c:30:
../include/getopt.h:116: warning: function declaration isn't a prototype
`all-am' not remade because of errors.
make  all-recursive
Making all in doc
rm -f gasver.texi
eval `grep '^ *VERSION=' `; echo "@set VERSION $VERSION" > gasver.texi
^CYou have new mail in /var/mail/root
doctor.nl2k.ab.ca//usr/source/binutils-2.16$ exit
exit

Script done on Fri May  6 21:40:19 2005

I got this to work in 2.15 no problem.  what changed?

-- 
Member - Liberal International	
This is doctor@nl2k.ab.ca	Ici doctor@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
BC, Vote Liberal!!



More information about the Binutils mailing list