alure fail to compile with: [ 81%] Building CXX object CMakeFiles/alure.dir/src/codec_fluidsynth.o /usr/bin/x86_64-pc-linux-gnu-g++ -DALURE_BUILD_LIBRARY -DDYNLOAD=1 -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -DNDEBUG -march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10 -O2 -pipe -fPIC -I/var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/include -I/var/tmp/portage/media-libs/alure-1.2/work/alure-1.2_build -I/usr/include/AL -Wextra -Wall -funswitch-loops -fvisibility=hidden -pthread -o CMakeFiles/alure.dir/src/codec_fluidsynth.o -c /var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/src/codec_fluidsynth.cpp /var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/src/codec_fluidsynth.cpp: In member function ‘virtual bool fluidStream::SetPatchset(const char*)’: /var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/src/codec_fluidsynth.cpp:333:25: error: ‘close’ was not declared in this scope close(fd); ^ In file included from /var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/src/codec_fluidsynth.cpp:26:0: /var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/include/main.h: At global scope: /var/tmp/portage/media-libs/alure-1.2/work/alure-1.2/include/main.h:61:19: warning: ‘BigEndian’ defined but not used [-Wunused-variable] static const bool BigEndian = !LittleEndian; ^ CMakeFiles/alure.dir/build.make:333: recipe for target 'CMakeFiles/alure.dir/src/codec_fluidsynth.o' failed make[2]: *** [CMakeFiles/alure.dir/src/codec_fluidsynth.o] Error 1 Reproducible: Always Steps to Reproduce: 1. emerge alure 2. 3. # emerge -pqv '=media-libs/alure-1.2::gentoo' [ebuild N ] media-libs/alure-1.2 USE="examples flac fluidsynth mp3 sndfile vorbis -dumb -static-libs"
Created attachment 369422 [details] emerge --info
Created attachment 369424 [details] environment file
Created attachment 369426 [details] build.log
On the git, the last commit is from 2013-07-10. http://repo.or.cz/w/alure.git It compile fine here. So maybe the easiest way to solve that bug is to make tarball from the git.
I get this same failure. The fix is simple. just need to #include <unistd.h> in that file
Created attachment 406070 [details, diff] alure-1.2-include-unistd.patch patch codec_fluidsynth.cpp to compile on nonwindows platforms
Created attachment 406072 [details] alure-1.2-r1.ebuild Ebuild with alure-1.2-include-unistd.patch
any progress in here. header include patch fixes compilation.
ping?
Thanks, fixed in git. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=937a0fe10289f67201f7384ef57b0a833e9a1cea
Unfortunately, this fix was undone in the latest -r1 version of the ebuild: instead of PATCHES the patch is put in a line called PATCJES. Fixing that line (PATCJES -> PATCHES) fixes the ebuild.
(In reply to James L. Hammons from comment #11) > Unfortunately, this fix was undone in the latest -r1 version of the ebuild: > instead of PATCHES the patch is put in a line called PATCJES. Fixing that > line (PATCJES -> PATCHES) fixes the ebuild. commit 03a9cede605f6a7c3e8b731b149d9cc71e13a0a4 Author: David Seifert <soap@gentoo.org> Date: Sun Jul 2 14:00:01 2017 -0700 media-libs/alure: Fix spelling typo 'PATCHES' Bug: https://bugs.gentoo.org/show_bug.cgi?id=500164