During an upgrade, I get the following compilation error: emerge -Dv =python-2.4.4-r5 These are the packages that would be merged, in order: Calculating dependencies... done! .... >>> Emerging (1 of 12) media-libs/alsa-lib-1.0.15 to / ... i586-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -g -O2 -W -Wall -Os -march=i586 -mno-tls-direct-seg-refs -mmmx -m32 -c hda.c -o hda.o >/dev/null 2>&1 i586-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -lpython2.4 -lm -L/usr/lib/python2.4/config -Os -march=i586 -mno-tls-direct-seg-refs -mmmx -m32 -c python.c -fPIC -DPIC -o .libs/smixer_python_la-python.o python.c:22:20: error: Python.h: No such file or directory python.c:30: error: expected specifier-qualifier-list before 'PyObject' python.c:38: error: expected specifier-qualifier-list before 'PyObject_HEAD' python.c:45: error: expected specifier-qualifier-list before 'PyObject_HEAD' python.c:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:59: error: expected ')' before '*' token python.c: In function 'melem_to_pymelem': python.c:77: error: 'struct pymelem' has no member named 'selem' python.c: At top level: python.c:80: error: expected declaration specifiers or '...' before 'PyObject' python.c:80: error: expected declaration specifiers or '...' before 'PyObject' python.c: In function 'pcall': python.c:82: error: 'PyObject' undeclared (first use in this function) python.c:82: error: (Each undeclared identifier is reported only once python.c:82: error: for each function it appears in.) python.c:82: error: 'obj' undeclared (first use in this function) python.c:82: error: expected expression before ')' token python.c:85: error: '_res' undeclared (first use in this function) python.c:89: error: 'PyExc_TypeError' undeclared (first use in this function) python.c:92: error: 'args' undeclared (first use in this function) python.c:95: error: 'res' undeclared (first use in this function) python.c:108: error: 'Py_None' undeclared (first use in this function) python.c:111: error: 'Py_True' undeclared (first use in this function) python.c: In function 'is_ops': python.c:129: error: 'PyObject' undeclared (first use in this function) python.c:129: error: 'obj1' undeclared (first use in this function) python.c:151: error: too many arguments to function 'pcall' python.c: In function 'get_x_range_ops': python.c:158: error: 'PyObject' undeclared (first use in this function) python.c:158: error: 'obj1' undeclared (first use in this function) python.c:158: error: 'res' undeclared (first use in this function) python.c:164: error: too many arguments to function 'pcall' python.c:170: error: 'PyExc_TypeError' undeclared (first use in this function) python.c: In function 'set_range_ops': python.c:196: error: 'PyObject' undeclared (first use in this function) python.c:196: error: 'obj1' undeclared (first use in this function) python.c:203: error: too many arguments to function 'pcall' python.c: In function 'get_x_ops': python.c:210: error: 'PyObject' undeclared (first use in this function) python.c:210: error: 'obj1' undeclared (first use in this function) python.c:210: error: 'res' undeclared (first use in this function) python.c:217: error: too many arguments to function 'pcall' python.c:223: error: 'PyExc_TypeError' undeclared (first use in this function) python.c: In function 'set_volume_ops': python.c:271: error: 'PyObject' undeclared (first use in this function) python.c:271: error: 'obj1' undeclared (first use in this function) python.c:278: error: too many arguments to function 'pcall' python.c: In function 'set_switch_ops': python.c:285: error: 'PyObject' undeclared (first use in this function) python.c:285: error: 'obj1' undeclared (first use in this function) python.c:292: error: too many arguments to function 'pcall' python.c: In function 'set_dB_ops': python.c:299: error: 'PyObject' undeclared (first use in this function) python.c:299: error: 'obj1' undeclared (first use in this function) python.c:307: error: too many arguments to function 'pcall' python.c: In function 'enum_item_name_ops': python.c:314: error: 'PyObject' undeclared (first use in this function) python.c:314: error: 'obj1' undeclared (first use in this function) python.c:314: error: 'res' undeclared (first use in this function) python.c:322: error: too many arguments to function 'pcall' python.c:326: error: 'PyExc_TypeError' undeclared (first use in this function) python.c:331: warning: assignment makes pointer from integer without a cast python.c: In function 'get_enum_item_ops': python.c:347: error: 'PyObject' undeclared (first use in this function) python.c:347: error: 'obj1' undeclared (first use in this function) python.c:347: error: 'res' undeclared (first use in this function) python.c:353: error: too many arguments to function 'pcall' python.c:357: error: 'PyExc_TypeError' undeclared (first use in this function) python.c: In function 'set_enum_item_ops': python.c:373: error: 'PyObject' undeclared (first use in this function) python.c:373: error: 'obj1' undeclared (first use in this function) python.c:379: error: too many arguments to function 'pcall' python.c: At top level: python.c:408: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:414: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:420: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:426: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:433: error: expected declaration specifiers or '...' before 'PyObject' python.c: In function 'pymelem_set_caps': python.c:435: error: 'val' undeclared (first use in this function) python.c:436: error: 'PyExc_TypeError' undeclared (first use in this function) python.c:439: error: 'struct pymelem' has no member named 'selem' python.c: At top level: python.c:443: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:449: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:455: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:461: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:481: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:501: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:509: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:518: error: expected declaration specifiers or '...' before 'PyObject' python.c:518: error: expected declaration specifiers or '...' before 'PyObject' python.c: In function 'pymelem_init': python.c:525: error: 'args' undeclared (first use in this function) python.c:525: error: 'struct pymelem' has no member named 'py_mixer' python.c:527: error: 'struct pymelem' has no member named 'selem' python.c:527: error: 'struct pymelem' has no member named 'selem' python.c:532: error: 'struct pymelem' has no member named 'selem' python.c:533: error: 'struct pymelem' has no member named 'selem' python.c:534: error: 'struct pymelem' has no member named 'melem' python.c:535: error: 'struct pymelem' has no member named 'selem' python.c: In function 'pymelem_dealloc': python.c:546: error: 'struct pymelem' has no member named 'melem' python.c:547: error: 'struct pymelem' has no member named 'ob_type' python.c: At top level: python.c:550: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pymelem_getseters' python.c:573: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pymelem_methods' python.c:592: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pymelem_type' python.c:607: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:638: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:653: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:692: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:711: error: expected declaration specifiers or '...' before 'PyObject' python.c:711: error: expected declaration specifiers or '...' before 'PyObject' python.c: In function 'pymixer_init': python.c:715: error: 'args' undeclared (first use in this function) python.c:715: error: 'struct pymixer' has no member named 'mdict' python.c:717: error: 'struct pymixer' has no member named 'class' python.c:718: error: 'struct pymixer' has no member named 'mixer' python.c:719: error: 'struct pymixer' has no member named 'hctl_count' python.c:720: error: 'struct pymixer' has no member named 'hctl' python.c:721: error: 'struct pymixer' has no member named 'helem_count' python.c:722: error: 'struct pymixer' has no member named 'helem' python.c:723: error: 'struct pymixer' has no member named 'melem_count' python.c:724: error: 'struct pymixer' has no member named 'melem' python.c: In function 'pymixer_free': python.c:733: error: 'struct pymixer' has no member named 'hctl_count' python.c:734: error: 'struct pymixer' has no member named 'mixer' python.c:734: error: 'struct pymixer' has no member named 'hctl' python.c:735: error: 'PyObject' undeclared (first use in this function) python.c:735: error: expected expression before ')' token python.c:737: error: 'struct pymixer' has no member named 'hctl' python.c:738: error: 'struct pymixer' has no member named 'hctl' python.c:739: error: 'struct pymixer' has no member named 'hctl_count' python.c:740: error: 'struct pymixer' has no member named 'hctl' python.c:741: error: 'struct pymixer' has no member named 'helem_count' python.c:742: error: expected expression before ')' token python.c:743: error: 'struct pymixer' has no member named 'helem' python.c:744: error: 'struct pymixer' has no member named 'helem' python.c:745: error: 'struct pymixer' has no member named 'helem_count' python.c:746: error: 'struct pymixer' has no member named 'helem' python.c:747: error: 'struct pymixer' has no member named 'melem_count' python.c:748: error: expected expression before ')' token python.c:749: error: 'struct pymixer' has no member named 'melem' python.c:750: error: 'struct pymixer' has no member named 'melem' python.c:751: error: 'struct pymixer' has no member named 'melem_count' python.c:752: error: 'struct pymixer' has no member named 'melem' python.c: In function 'pymixer_dealloc': python.c:759: error: 'struct pymixer' has no member named 'ob_type' python.c: At top level: python.c:762: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pymixer_getseters' python.c:766: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pymixer_methods' python.c:774: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pymixer_type' python.c:789: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'python_methods' python.c:793: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:841: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c:853: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token python.c: In function 'alsa_mixer_simple_event': python.c:869: error: 'PyThreadState' undeclared (first use in this function) python.c:869: error: 'tstate' undeclared (first use in this function) python.c:869: error: 'origstate' undeclared (first use in this function) python.c:870: error: 'PyObject' undeclared (first use in this function) python.c:870: error: 't' undeclared (first use in this function) python.c:870: error: 'o' undeclared (first use in this function) python.c:870: error: 'r' undeclared (first use in this function) python.c:873: error: 'main_interpreter' undeclared (first use in this function) python.c:878: error: expected expression before ')' token python.c:888: error: 'Py_None' undeclared (first use in this function) python.c:891: error: 'struct python_priv' has no member named 'py_event_func' python.c: In function 'alsa_mixer_simple_free': python.c:914: error: 'struct python_priv' has no member named 'py_mixer' python.c:915: error: 'struct python_priv' has no member named 'py_mixer' python.c:916: error: 'struct python_priv' has no member named 'py_mixer' python.c:919: error: 'struct python_priv' has no member named 'py_event_func' python.c: In function 'alsa_mixer_simple_finit': python.c:932: error: 'PyObject' undeclared (first use in this function) python.c:932: error: 'obj' undeclared (first use in this function) python.c:932: error: 'obj1' undeclared (first use in this function) python.c:932: error: 'obj2' undeclared (first use in this function) python.c:932: error: 'py_mod' undeclared (first use in this function) python.c:932: error: 'mdict' undeclared (first use in this function) python.c:952: error: 'pymelem_type' undeclared (first use in this function) python.c:954: error: 'pymixer_type' undeclared (first use in this function) python.c:956: error: 'python_methods' undeclared (first use in this function) python.c:958: error: 'main_interpreter' undeclared (first use in this function) python.c:958: error: invalid type argument of '->' python.c:962: error: 'struct python_priv' has no member named 'py_mdict' python.c:972: error: expected expression before ')' token python.c:973: error: expected expression before ')' token python.c:984: error: 'struct python_priv' has no member named 'py_mixer' python.c:991: error: 'Py_file_input' undeclared (first use in this function) python.c:995: error: 'struct python_priv' has no member named 'py_event_func' python.c:996: error: 'struct python_priv' has no member named 'py_event_func' make[3]: *** [smixer_python_la-python.lo] Fehler 1 make[3]: *** Warte auf noch nicht beendete Prozesse... i586-pc-linux-gnu-gcc -shared .libs/sbase.o -Wl,--rpath -Wl,/var/tmp/portage/media-libs/alsa-lib-1.0.15/work/alsa-lib-1.0.15/src/.libs ../../../src/.libs/libasound.so -march=i586 -mno-tls-direct-seg-refs -mmmx -m32 -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-soname -Wl,smixer-sbase.so -o .libs/smixer-sbase.so i586-pc-linux-gnu-ar cru .libs/smixer-sbase.a sbase.o i586-pc-linux-gnu-ranlib .libs/smixer-sbase.a creating smixer-sbase.la (cd .libs && rm -f smixer-sbase.la && ln -s ../smixer-sbase.la smixer-sbase.la) make[2]: *** [all-recursive] Fehler 1 make[1]: *** [all-recursive] Fehler 1 make: *** [all-recursive] Fehler 1 * * ERROR: media-libs/alsa-lib-1.0.15 failed. * Call stack: * ebuild.sh, line 1695: Called dyn_compile * ebuild.sh, line 1033: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * alsa-lib-1.0.15.ebuild, line 66: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-libs/alsa-lib-1.0.15/temp/build.log'. * * Messages for package media-libs/alsa-lib-1.0.15: * * ERROR: media-libs/alsa-lib-1.0.15 failed. * Call stack: * ebuild.sh, line 1695: Called dyn_compile * ebuild.sh, line 1033: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * alsa-lib-1.0.15.ebuild, line 66: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed Reproducible: Always Steps to Reproduce: 1.emerge alsa-lib 2. 3. Actual Results: make failed Expected Results: python and alsa update
Same here, after manual phython upgrade, alsa upgraded like a charm
Upgrade your python to latest stable at least. *** This bug has been marked as a duplicate of bug 192898 ***