-
Notifications
You must be signed in to change notification settings - Fork 322
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
compilation error on Ubuntu 21.04 (g++ 11.1) #493
Comments
You need to give a few parameters to configure to build for ns3. Here you're compiling for a Kernel module ;) |
Sorry, I simplified for the issue report. Here are the arguments being passed to configure:
It results in the same error. This configuration works on earlier Ubuntu, but not on Ubuntu 21.04. |
Has anybody found a solution for this? I'm facing the same issue |
The above workaround works for me too (Arch Linux, kernel 5.17.8, GCC 12.1.0).
|
Same error on Ubuntu 22.04 The problem seems to be with If I add |
Is there a way to do that so it works also on old system without the define true? I think the define in netinet/in.h should be found at configure time and then expose the true or not according to the result of that. What are your compile flags so I can try? |
@tomhenderson |
Hi @tbarbette, the build is still broken for me with #502. Here's the complete build output: https://pastebin.com/TsUtmApV.
It looks like we need to do the same thing for |
Ah yes I did not try with ip6. |
While testing ns-3 with the most recent click code, I encountered a compilation error on Ubuntu 21.04 with g++ version
gcc version 11.1.0 (Ubuntu 11.1.0-1ubuntu1~21.04).
Steps to reproduce:
Error reported:
Workaround:
The below patch works for me on this system; have not checked other systems.
The text was updated successfully, but these errors were encountered: