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

Building for modern versions of Fedora (~ 37) #141

Open
hawkinsw opened this issue Mar 17, 2023 · 2 comments
Open

Building for modern versions of Fedora (~ 37) #141

hawkinsw opened this issue Mar 17, 2023 · 2 comments

Comments

@hawkinsw
Copy link

hawkinsw commented Mar 17, 2023

Thank you for an impressive tool! DCE is exactly what we needed in our environment.

I am going to leave some tips/tricks here for how to compile/build DCE for Fedora (~) 37 (~beta). I am sure that there are certain parts of the process that I have overcomplicated and are not strictly necessary (e.g., (3), below) but I wanted to leave these notes here for my future self and possibly others who are interested:

  1. Follow Tom's incredibly helpful recommended steps from: Ubuntu 20.04 support #110 (comment)
  2. Change bakeconf.xml references from glibc-2.31 to glibc-2.36. (make sure that you [somehow] update bakefile.xml)
  3. Use CXXFLAGS="-I/path/to/bake/source/ns-3-dce/ -Wno-return-type" INCLUDES_NS3_CORE="/path/to/bake/build/include/ns3.35/" additional environment variables. (Note: You should (obviously) change those /path/to/ for your environment).
  4. Apply Move to Py_SET_TYPE from Assigning to Py_TYPE result gjcarneiro/pybindgen#54 to the pybindgen.
  5. Apply changes to ns-3-dce for shims to the xstat family of functions that are no longer part of the libc API (PR forthcoming)
  6. Apply changes to the ns-3-dce wscript for not building standalone pthread, rt or dl libraries (they are now part of the larger libc.so (PR forthcoming))

I cannot say thank you enough to @tomhenderson for all the work that he and @ParthPratim have done on this project. It's amazing!

In the future, I hope to contribute PRs for (5) and (6) and configure/distribute a Docker container with a build already generated.

@tomhenderson
Copy link
Collaborator

Hello @hawkinsw thank you for these notes. Do you plan to provide PRs for 5) and 6) sometime soon? Also, are you a Python DCE user or just trying to get it to compile successfully?

@hawkinsw
Copy link
Author

hawkinsw commented May 16, 2023 via email

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

2 participants