Summary: | alsa-lib-1.0.15_rc2 fails to compile - Python.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ierdnah <ierdnah> |
Component: | Current packages | Assignee: | Gentoo ALSA team <alsa-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | asqard, a_tevelev, dominique.c.michel, ed, gentoo, natalya.puzanova, peter.brouwer, peter, radfoj, shane, stefan, StormByte, tindor, tomaszg |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
ierdnah
2007-09-18 07:33:28 UTC
(In reply to comment #0) > ... Hello. seems like I have this problem, too. It appears like the include file for python (Python.h) is not found. However, I have it, like you probably too. So, I executed the "python-config --includes" program, and it produced : -lpython2.4 -lm -L/usr/lib/python2.4/config without adding the necessary -I/usr/include/python2.4/ . For experiment, I added -I/usr/include/python2.4/ at line 360 of the configure.in file: PYTHON_INCDIR="$pythonincdir -I/usr/include/python2.4/" and resulted in a clean make. Same here on 4 different PC's: * Linux PC1 2.6.22-gentoo-r4 #2 SMP PREEMPT Fri Aug 17 14:25:53 CEST 2007 x86_64 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux * Linux PC2 2.6.22-gentoo-r3 #1 PREEMPT Tue Aug 14 18:11:31 CEST 2007 i686 Intel(R) Pentium(R) M processor 1.50GHz GenuineIntel GNU/Linux * Linux PC3 2.6.22-gentoo-r1 #2 PREEMPT Fri Jul 27 00:01:59 CEST 2007 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux * Linux PC4 2.6.22-gentoo-r6 #18 SMP PREEMPT Mon Sep 17 18:17:20 CEST 2007 i686 Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz GenuineIntel GNU/Linux You want me to include 'emerge --info'? (In reply to comment #2) > Same here on 4 different PC's: > > [...] > > You want me to include 'emerge --info'? Stefan, I think the information you gave is not relevant, and the output of `python-config --includes` would be more appropriate. (In reply to comment #3) > Stefan, I think the information you gave is not relevant, and the output of > `python-config --includes` would be more appropriate. My apologies :-/ Here comes the output of 'python-config --includes': PC1: -lpython2.4 -lm -L/usr/lib64/python2.4/config PC2: -lpython2.4 -lm -L/usr/lib/python2.4/config PC3: -lpython2.4 -lm -L/usr/lib64/python2.4/config PC4: -lpython2.4 -lm -L/usr/lib/python2.4/config Seems the same problem ... Hope this helps more Stefan Same here. I'm using dev-lang/python-2.4.4-r4 (-~amd64 for python, ~amd64 for almost the rest). *** Bug 193130 has been marked as a duplicate of this bug. *** Not an alsa-lib bug, this is our craptastic homebrewed python-config script. Upgrade to python-2.4.4-r5 or newer and it will work. *** This bug has been marked as a duplicate of bug 188029 *** Agreed. Perhaps python-2.4.4-r5 should be made stable? *** Bug 193407 has been marked as a duplicate of this bug. *** *** Bug 194460 has been marked as a duplicate of this bug. *** *** Bug 195972 has been marked as a duplicate of this bug. *** According to the changes for alsa-lib v1.0.15rc3, it have been fixed upstream in alsa-lib: http://www.alsa-project.org/main/index.php/Changes_v1.0.15rc2_v1.0.15rc3#alsa-lib (In reply to comment #12) > According to the changes for alsa-lib v1.0.15rc3, it have been fixed upstream > in alsa-lib: > http://www.alsa-project.org/main/index.php/Changes_v1.0.15rc2_v1.0.15rc3#alsa-lib > Forget this, I try to bump the ebuild. I don't get the missing header error, but the following ones was still here. Sorry for the noise. *** Bug 197463 has been marked as a duplicate of this bug. *** *** Bug 206480 has been marked as a duplicate of this bug. *** *** Bug 211090 has been marked as a duplicate of this bug. *** *** Bug 213816 has been marked as a duplicate of this bug. *** Well, I have python-2.4.4-r6 installed, but I still get the same error. Perhaps the status of the bug should be changed? Also here's the output of my python-config --includes : -lpython2.3 -lm -L/usr/lib/python2.3/config Maybe I should remove python2.3, but if it's installed, there might be a reason for that. (In reply to comment #18) > Well, I have python-2.4.4-r6 installed, but I still get the same error. Perhaps > the status of the bug should be changed? > > Also here's the output of my python-config --includes : > -lpython2.3 -lm -L/usr/lib/python2.3/config > > Maybe I should remove python2.3, but if it's installed, there might be a reason I just ctrl+Zed the emerge, then replaced the line #include "Python.h" by the line #include <python2.4/Python.h> in the blocking file : python.c and resumed build. Not a clean solution but it worked. > for that. > For those who don't have a clue which file needs editing.. emerge alsa-utils .. wait until emerge unpacks the source and starts to compile. hit CTRL+Z (this pauses it) edit /var/tmp/portage/media-libs/alsa-lib-1.0.16/work/alsa-lib-1.0.16/modules/mixer/simple/python.c Change the line that says: #include "Python.h" to: #include <python2.4/Python.h>' type in 'fg' and hit enter, it should continue to compile with no errors. |