-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 4.4.4 fails to build with clang: incomplete definition of the 'struct next' type #809
Comments
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. |
Quick setup to have all deps:
|
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:
|
According to repology, no other *BSD has updated to |
Issues with the latest release ramain unresolved for > 6 months: appneta/tcpreplay#809 Back to the unmaintained pool.
Maybe this is the patch:
I want to say it work for me: without patch I have same error, but with patch build without errors. |
Somehow this got missed for 4.5.1. I'll target for next minor release. |
On FreeBSD, this issue is mitigated by applying the following patch: --- lib/queue.h.orig 2024-03-24 16:55:28 UTC
+++ lib/queue.h
@@ -36,8 +36,8 @@
* @(#)queue.h 8.5 (Berkeley) 8/20/94
*/
-#ifndef _SYS_QUEUE_H_
-#define _SYS_QUEUE_H_
+#ifndef _QUEUE_H_
+#define _QUEUE_H_
/*
* This file defines five types of data structures: singly-linked lists,
@@ -508,4 +508,4 @@ struct { \
(elm2)->field.cqe_prev->field.cqe_next = (elm2); \
} while (0)
-#endif /* !_SYS_QUEUE_H_ */
+#endif /* !_QUEUE_H_ */ |
@ehaupt, check this PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280260 |
I'll respond in bugzilla. |
…dified Also: - replace patch for fix build (upstream issue: appneta/tcpreplay#809); - remake patches with makepatch; - remove GNU_CONFIGURE_MANPREFIX. Version 4.5.1 contains many bug fixes: https://github.com/appneta/tcpreplay/releases/tag/v4.5.1 PR: 280260 Approved by: ehaupt (maintainer) MFH: 2024Q3
…dified Also: - replace patch for fix build (upstream issue: appneta/tcpreplay#809); - remake patches with makepatch; - remove GNU_CONFIGURE_MANPREFIX. Version 4.5.1 contains many bug fixes: https://github.com/appneta/tcpreplay/releases/tag/v4.5.1 PR: 280260 Approved by: ehaupt (maintainer) MFH: 2024Q3 (cherry picked from commit e2455c7)
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):
The text was updated successfully, but these errors were encountered: