Skip to content
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

ms-van3t compilation fails on Ubuntu 24.04 LTS #36

Open
francescoraves483 opened this issue May 29, 2024 · 0 comments
Open

ms-van3t compilation fails on Ubuntu 24.04 LTS #36

francescoraves483 opened this issue May 29, 2024 · 0 comments

Comments

@francescoraves483
Copy link
Collaborator

The ms-van3t build process seems to fail on the new Ubuntu 24.04 LTS.

Specifically, after configuring the project with "./ns3 configure", the build fails with the following error due to one of the asn1c-generated header files:

[0/2] Re-checking globbed directories...
[1/3570] Building CXX object src/automotive/CMakeFiles/libautomotive-obj.dir/helper/simpleCAMSender-helper.cc.o
FAILED: src/automotive/CMakeFiles/libautomotive-obj.dir/helper/simpleCAMSender-helper.cc.o 
ccache /usr/bin/c++ ...
/home/_<username>_/ms-van3t/ns-3-dev/build/include/ns3/asn_system.h:147:32: error: missing binary operator before token "0"
  147 | #define SIZE_MAX  ((~((size_t)0)) >> 1)
      |                                  ^
...

Unfortunately, I am unable to test it right now, but we should see if adding a conditional check eventually solves the issues:

#ifndef SIZE_MAX
#define SIZE_MAX ((~((size_t)0)) >> 1)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant