Open ehaupt opened 1 year ago
I tried with clang-13 and clang-17 on Debian Linux. No failure. Do you see this fail on 4.4.3?
4.4.3 builds fine.
OK, I'll build up a FreeBSD VM to test on.
OK, I'll build up a FreeBSD VM to test on.
Quick setup to have all deps:
Vagrant.configure("2") do |config|
config.vm.box = "freebsd/FreeBSD-13.2-RELEASE"
config.vm.box_version = "2023.04.07"
config.vm.provision "shell", inline: <<-SHELL
sed -i'' -e 's|quarterly|latest|' /etc/pkg/FreeBSD.conf
pkg install -y bash git
portsnap --interactive fetch extract
sh -c '(cd /usr/ports/net-mgmt/tcpreplay; make missing | xargs pkg install -y)'
SHELL
end
Just to verify, I attempted compiling with a different compiler (gcc 12.2.0), but it failed as well.
See tcpreplay-4.4.4_gcc_freebsd_13_1.log
The title of the issue should probably be changed to:
[Bug] 4.4.4 fails to build on FreeBSD: incomplete definition of the 'struct next' type
Describe the bug Version 4.4.4 fails to build with clang (previous version 4.4.3 builds fine):
Compiler version:
In 'mod.c', a fatal error occurs due to an incomplete definition of the 'struct next' type, resulting in a build failure.
Full build log: tcpreplay-4.4.4.log
To Reproduce
System (please complete the following information):