media-sound/esound-0.2.39 does not build due to a missing declaration for errno in sound_oss.c Reproducible: Always Steps to Reproduce: 1. emerge media-sound/esound 2. 3. Actual Results: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\" -O2 -pipe -march=k8 -fno-strict-aliasing -Wall -c esd_config.c -o libesd_la-esd_config.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\" -O2 -pipe -march=k8 -fno-strict-aliasing -Wall -c -o libesd_la-audio.lo `test -f 'audio.c' || echo './'`audio.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\" -O2 -pipe -march=k8 -fno-strict-aliasing -Wall -c audio.c -fPIC -DPIC -o .libs/libesd_la-audio.o In file included from audio.c:29: audio_oss.c:2:19: error: ernno.h: No such file or directory In file included from audio.c:29: audio_oss.c: In function 'esd_audio_open': audio_oss.c:45: error: 'errno' undeclared (first use in this function) audio_oss.c:45: error: (Each undeclared identifier is reported only once audio_oss.c:45: error: for each function it appears in.) audio_oss.c:45: error: 'ENOENT' undeclared (first use in this function) make[2]: *** [libesd_la-audio.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-sound/esound-0.2.39/work/esound-0.2.39' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-sound/esound-0.2.39/work/esound-0.2.39' make: *** [all] Error 2 * * ERROR: media-sound/esound-0.2.39 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2722: 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-sound/esound-0.2.39/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/esound-0.2.39/temp/environment'. *
Created attachment 160994 [details, diff] Diff to the ebuild to use the errno patch
Created attachment 160995 [details, diff] Diff to thee esound sources to declare errno in sound_oss.c
Patch added to CVS without a revbump. Thanks :)