-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DUPLEX_UNKNOWN undefined on redhat #607
Comments
Mmmmm weird. Please paste the output of "make clean; make build". What I fear is that on Red Hat you need to tell the compiler to include linux/ethtool.h from setup.py as in something like this:
|
Adding |
I'm looking for the output preceding what you pasted above. Please paste it all. |
I tested this on Redhat 6.1 and Redhat 5.6. It does work on Redhat 7.0 (probably a newer version of |
Mmmm... you said the constants are defined in linux/ethtool.h right? In this case I guess have no idea. |
The compiler complains about DUPLEX_UNKNOWN only though. DUPLEX_HALF and DUPLEX_FULL seem to be there. That's also weird. Maybe those red hat versions are missing DUPLEX_UNKNOWN? |
Yes, exactly.
|
Cool. I'll fix that. |
In the meantime can you try to do that and see if tests pass? |
Fixed. Can you confirm it works (also run "make test")? |
Looks like there's some work ahead...
(note that there are errors and fails besides the segfault) |
* master: use 'with open' to make sure file is closed test_process_create_time: always test against the rounded time too don't test physical cpu count on systems that don't include it don't test num_ctx_switches on unsupported kernels fix compilation warning about possible misuse of XDECREF fix race condition in wait_for_file fix flake8 error fix permission errors when running from /root fix giampaolo#607: DUPLEX_UNKNOWN is not defined on old RedHat versions fix giampaolo#606: Process.parent() may swallow NoSuchProcess exceptions (#race-condition) attempt to fix xargs on OSX giampaolo#602: move pre-commit hook into a separate file fix giampaolo#602: add GIT pre-commit hook fix failing test on Windows C styling: if unification forgot to close the handle fix giampaolo#599 (Windows): process name() can now be determined for all PIDs add test windows: refactoring of the alternative process info implementation fix typo in documentation
I just found out that the fix was inside an unrelated #ifdef, so the build still fails on Centos 4.8. I prefer to open a pull request after #610 is merged. |
When installing the current version on Redhat, we get this error:
The header that should include this definition (linux/ethtool.h) exists, but doesn't include this definition.
The text was updated successfully, but these errors were encountered: