Skip to content

ms-van3t compilation fails on Ubuntu 24.04 LTS #36

@francescoraves483

Description

@francescoraves483

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions