|
Bugzilla – Full Text Bug Listing |
| Summary: | waf configure do not check for Python.h (python-dev) | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Marcos Talau <talau> |
| Component: | build system | Assignee: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | john.abraham.in, ns-bugs, talau, tomh |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
build/config.log
./waf -v |
||
Please attach the file build/config.log. Created attachment 1221 [details]
build/config.log
Sorry for the delay. Attached :)
Does the directory /usr/include/python2.6 contain a Python.h file? Also, could you attach the output of "./waf -v"? Sorry for not asking sooner. Created attachment 1222 [details]
./waf -v
./waf -v
(In reply to comment #3) > Does the directory /usr/include/python2.6 contain a Python.h file? No. When I install the package 'python2.6-dev' this file is created. > Also, could you attach the output of "./waf -v"? Sorry for not asking sooner. No problem.. Attached. I don't get it, the compilation line includes -I/usr/include/python2.6, and you say the file /usr/include/python2.6/Python.h exists, yet the compilation error is: ../src/visualizer/model/visual-simulator-impl.cc:20:20: fatal error: Python.h: No such file or directory It appears the ns-3 build system is doing everything right, yet the compilation still fails, so I'm inclined to believe something on your system is not right. Can you double-check that /usr/include/python2.6/Python.h exists and is readable by your user? (In reply to comment #6) > I don't get it, the compilation line includes -I/usr/include/python2.6, and you > say the file /usr/include/python2.6/Python.h exists, yet the compilation error > is: > Hey :\ Wait here, you don't understand me. Has I said at first comment, when I have the package 'python-dev' installed the build is completed without any errors. This BUG was created to inform that when python headers are not present, the build system fails. I think that 'waf configure' *needs* to check if a build dependency is present on the system, right? :) (In reply to comment #7) > (In reply to comment #6) > > I don't get it, the compilation line includes -I/usr/include/python2.6, and you > > say the file /usr/include/python2.6/Python.h exists, yet the compilation error > > is: > > > > Hey :\ Wait here, you don't understand me. Has I said at first comment, when > I have the package 'python-dev' installed the build is completed without any > errors. This BUG was created to inform that when python headers are not > present, the build system fails. I think that 'waf configure' *needs* to check > if a build dependency is present on the system, right? :) Ah, I see, I hadn't understood it. In any case, your system is unusual that python-config exists even when python-dev is not installed. Until now, in the systems I found python-config was only installed then the python headers and library were installed. downgrading from release blocker (In reply to comment #9) > downgrading from release blocker This problem can also be seen on a fresh installation of Ubuntu 11. Installing python-dev fixes it changeset: 7462:287082f2be5c tag: tip user: Gustavo J. A. M. Carneiro <gjc@inescporto.pt> date: Thu Aug 25 19:24:06 2011 +0100 summary: Bug 1250 - waf configure do not check for Python.h (python-dev) |
$ cd ns-allinone-3.12-RC1/ns-3.12-RC1 $ ./waf configure [...] 'configure' finished successfully (5.336s) $ ./waf [...] [ 979/1359] cxx: src/visualizer/model/visual-simulator-impl.cc -> build/debug/src/visualizer/model/visual-simulator-impl_389.o ../src/visualizer/model/visual-simulator-impl.cc:20:20: fatal error: Python.h: No such file or directory compilation terminated. Waf: Leaving directory `/tmp/ns-allinone-3.12-RC1/ns-3.12-RC1/build' Build failed: -> task failed (err #1): {task: cxx visual-simulator-impl.cc -> visual-simulator-impl_389.o} After install package python-dev this was fixed.