rust-fuzz / honggfuzz-rs

Fuzz your Rust code with Google-developed Honggfuzz !
https://crates.io/crates/honggfuzz
Apache License 2.0
449 stars 40 forks source link

Build fails because of missing bfd_get_* functions #32

Closed Byter09 closed 4 years ago

Byter09 commented 4 years ago

As can be seen in the following commit history, this was fixed in early January, but the current honggfuzz version is from early December of last year.

https://github.com/google/honggfuzz/commits/master/linux/bfd.c

Compilation currently fails on my system because of this.

--- stderr
linux/bfd.c: In Funktion »arch_getSectionForPc«:
linux/bfd.c:125:36: Fehler: Implizite Deklaration der Funktion »bfd_get_section_vma«; meinten Sie »bfd_set_section_vma«? [-Werror=implicit-function-declaration]
  125 |         uintptr_t vma = (uintptr_t)bfd_get_section_vma(bfdh, section);
      |                                    ^~~~~~~~~~~~~~~~~~~
      |                                    bfd_set_section_vma
linux/bfd.c:126:35: Fehler: Implizite Deklaration der Funktion »bfd_get_section_size«; meinten Sie »bfd_set_section_size«? [-Werror=implicit-function-declaration]
  126 |         uintptr_t sz = (uintptr_t)bfd_get_section_size(section);
      |                                   ^~~~~~~~~~~~~~~~~~~~
      |                                   bfd_set_section_size
cc1: Alle Warnungen werden als Fehler behandelt
make: *** [Makefile:249: linux/bfd.o] Fehler 1
thread 'main' panicked at 'assertion failed: status.success()', /home/btr/.cargo/registry/src/github.com-1ecc6299db9ec823/honggfuzz-0.5.46/build.rs:46:5

I'm sorry for the German text in there but I'm sure its still readable.

In the meantime, I'll use docker.

Thanks so much for updating to 2.0, I really appreciate it :)

PaulGrandperrin commented 4 years ago

Thank you @Byter09 for the bug report! I just uploaded the 0.5.47 version to crates.io with honggfuzz master in it.