{"action":"created","issue":{"url":"https://api.github.com/repos/cmus/cmus/issues/782","repository_url":"https://api.github.com/repos/cmus/cmus","labels_url":"https://api.github.com/repos/cmus/cmus/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/cmus/cmus/issues/782/comments","events_url":"https://api.github.com/repos/cmus/cmus/issues/782/events","html_url":"https://github.com/cmus/cmus/issues/782","id":300992987,"number":782,"title":"cmus fails to configure with ffmpeg HEAD (macOS)","user":{"login":"rien333","id":10417027,"avatar_url":"https://avatars0.githubusercontent.com/u/10417027?v=4","gravatar_id":"","url":"https://api.github.com/users/rien333","html_url":"https://github.com/rien333","followers_url":"https://api.github.com/users/rien333/followers","following_url":"https://api.github.com/users/rien333/following{/other_user}","gists_url":"https://api.github.com/users/rien333/gists{/gist_id}","starred_url":"https://api.github.com/users/rien333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rien333/subscriptions","organizations_url":"https://api.github.com/users/rien333/orgs","repos_url":"https://api.github.com/users/rien333/repos","events_url":"https://api.github.com/users/rien333/events{/privacy}","received_events_url":"https://api.github.com/users/rien333/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-28T11:43:08Z","updated_at":"2018-03-14T01:14:09Z","closed_at":null,"author_association":"NONE","body":"<!-- Please fill the following if you have found an issue, delete if otherwise. -->\r\n\r\nBuilding cmus from git source both in brew and locally with a manual `./configure` command fails to find ffmpeg correctly. (the script does kinda find it though, but fails at the `if try_compile_link \"$ffmpeg_code\" $cflags $libs` check, line 450 of \"configure\") I've installed ffmpeg HEAD from source.\r\nGoogle has told me this has been an issue in the past, and that cmus sometimes has depended on older ffmpeg version. If that still is the case, feel free to delete this issue. \r\n\r\nThe `./configure` output is as follows:\r\n```\r\nchecking for program gcc... /usr/bin/gcc\r\nchecking for program gcc... /usr/bin/gcc\r\nchecking for C11 (with atomics support)... yes\r\nchecking for CFLAGS -pipe -Wall -Wshadow -Wcast-align -Wpointer-arith -Wwrite-strings -Wundef -Wmissing-prototypes -Wredundant-decls -Wextra -Wno-sign-compare -Wformat-security... yes\r\nchecking for CFLAGS -Wold-style-definition... yes\r\nchecking for CFLAGS -Wno-pointer-sign... yes\r\nchecking for CFLAGS -Werror-implicit-function-declaration... yes\r\nchecking for CFLAGS -Wno-unused-parameter... yes\r\nchecking for CFLAGS -Wno-missing-field-initializers... yes\r\nchecking if CC can generate dependency information... yes\r\nchecking byte order... little-endian\r\nchecking for DL_LIBS (-ldl -Wl,--export-dynamic)... no\r\nchecking for DL_LIBS (-ldl -rdynamic)... yes\r\nchecking for PTHREAD_LIBS (-lpthread)... yes\r\nchecking for realtime scheduling... yes\r\nchecking for program pkg-config... /usr/local/bin/pkg-config\r\nchecking for NCURSES_LIBS (pkg-config)... -L/usr/local/Cellar/ncurses/6.1/lib -lncursesw\r\nchecking for NCURSES_CFLAGS (pkg-config)... -D_DARWIN_C_SOURCE -I/usr/local/Cellar/ncurses/6.1/include -I/usr/local/Cellar/ncurses/6.1/include/ncursesw\r\nchecking for working ncurses setup... yes\r\nchecking for function resizeterm... yes\r\nchecking for function use_default_colors... yes\r\nchecking for ICONV_LIBS (-liconv)... yes\r\ntaking iconv from libiconv\r\nchecking for working iconv... yes\r\nchecking for header <byteswap.h>... no\r\nchecking for function strdup... yes\r\nchecking for function strndup... yes\r\nchecking for CDDB_LIBS (pkg-config)... no\r\nchecking for CDDB_LIBS (-lcddb)... no\r\nchecking for CDIO_LIBS (pkg-config)... no\r\nchecking for CDIO_LIBS (-lcdio_cdio -lcdio -lm)... no\r\nchecking for FLAC_LIBS (pkg-config)... -L/usr/local/Cellar/flac/1.3.2/lib -lFLAC\r\nchecking for FLAC_CFLAGS (pkg-config)... -I/usr/local/Cellar/flac/1.3.2/include\r\nchecking for MAD_LIBS (pkg-config)... -L/usr/local/opt/mad/lib -lmad -lm\r\nchecking for MAD_CFLAGS (pkg-config)... -I/usr/local/opt/mad/include\r\nchecking for MODPLUG_LIBS (pkg-config)... -L/usr/local/Cellar/libmodplug/0.8.9.0/lib -lmodplug\r\nchecking for MODPLUG_CFLAGS (pkg-config)... -I/usr/local/Cellar/libmodplug/0.8.9.0/include\r\nchecking for function ModPlug_GetModuleType... yes\r\nchecking for header <mpc/mpcdec.h>... no\r\nchecking for header <mpcdec/mpcdec.h>... no\r\nchecking for VORBIS_LIBS (pkg-config)... -L/usr/local/Cellar/libvorbis/1.3.5_1/lib -lvorbisfile\r\nchecking for VORBIS_CFLAGS (pkg-config)... -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include\r\nchecking for OPUS_LIBS (pkg-config)... no\r\n*** Package opusfile was not found in the pkg-config search path.\r\n*** Perhaps you should add the directory containing `opusfile.pc'\r\n*** to the PKG_CONFIG_PATH environment variable\r\n*** No package 'opusfile' found\r\nchecking for LIBSYSTEMD_LIBS (pkg-config)... no\r\n*** Package libsystemd was not found in the pkg-config search path.\r\n*** Perhaps you should add the directory containing `libsystemd.pc'\r\n*** to the PKG_CONFIG_PATH environment variable\r\n*** No package 'libsystemd' found\r\nchecking for WAVPACK_LIBS (pkg-config)... no\r\nchecking for WAVPACK_LIBS (-lwavpack)... no\r\nchecking for header <mp4v2/mp4v2.h>... yes\r\nchecking for header <neaacdec.h>... yes\r\nchecking for MP4_LIBS (-lmp4v2 -lfaad -lm)... yes\r\nchecking for header <neaacdec.h>... yes\r\nchecking for AAC_LIBS (-lfaad -lm)... yes\r\nchecking for FFMPEG_LIBS (pkg-config)... -L/usr/local/Cellar/ffmpeg/HEAD-a877d22/lib -lavformat -lavcodec\r\nchecking for FFMPEG_CFLAGS (pkg-config)... -I/usr/local/Cellar/ffmpeg/HEAD-a877d22/include\r\nchecking for header <libavcodec/avcodec.h>... yes\r\nchecking for successful build of ffmpeg.c... no\r\nchecking for header <ayemu.h>... no\r\nchecking for PULSE_LIBS (pkg-config)... no\r\n*** Package libpulse was not found in the pkg-config search path.\r\n*** Perhaps you should add the directory containing `libpulse.pc'\r\n*** to the PKG_CONFIG_PATH environment variable\r\n*** No package 'libpulse' found\r\nchecking for ALSA_LIBS (pkg-config)... no\r\n*** Package alsa was not found in the pkg-config search path.\r\n*** Perhaps you should add the directory containing `alsa.pc'\r\n*** to the PKG_CONFIG_PATH environment variable\r\n*** No package 'alsa' found\r\nchecking for JACK_LIBS (pkg-config)... no\r\n*** Package jack was not found in the pkg-config search path.\r\n*** Perhaps you should add the directory containing `jack.pc'\r\n*** to the PKG_CONFIG_PATH environment variable\r\n*** No package 'jack' found\r\nchecking for SAMPLERATE_LIBS (pkg-config)... -L/usr/local/Cellar/libsamplerate/0.1.9/lib -lsamplerate\r\nchecking for SAMPLERATE_CFLAGS (pkg-config)... -I/usr/local/Cellar/libsamplerate/0.1.9/include\r\nchecking for AO_LIBS (pkg-config)... -L/usr/local/Cellar/libao/1.2.2/lib -lao\r\nchecking for AO_CFLAGS (pkg-config)... -I/usr/local/Cellar/libao/1.2.2/include\r\nchecking for COREAUDIO_LIBS (-framework CoreAudio -framework AudioUnit)... yes\r\nchecking for program artsc-config... no\r\nchecking for header <sys/soundcard.h>... no\r\nchecking for SNDIO_LIBS (-lsndio)... no\r\nchecking for header <sys/audioio.h>... no\r\nchecking for ROAR_LIBS (pkg-config)... no\r\n*** Package libroar was not found in the pkg-config search path.\r\n*** Perhaps you should add the directory containing `libroar.pc'\r\n*** to the PKG_CONFIG_PATH environment variable\r\n*** No package 'libroar' found\r\nrm: cannot remove '.tmp-0-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-1-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-10-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-11-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-12-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-13-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-14-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-15-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-2-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-3-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-4-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-5-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-6-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-7-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-8-prog.dSYM': Is a directory\r\nrm: cannot remove '.tmp-9-prog.dSYM': Is a directory\r\n```\r\n\r\n---\r\n\r\n1) `uname -rmo`:\r\n```\r\n17.4.0 x86_64 Darwin\r\n```\r\n\r\n2) `cmus --version # freshly compiled one`:\r\n```\r\ncmus v2.8.0-rc0-87-g20a738d\r\n```\r\n\r\n3) `cmus --plugins`:\r\n```\r\nInput Plugins: /usr/local/lib/cmus/ip\r\n  mad:\r\n    Priority: 55\r\n    File Types: mp3 mp2\r\n    MIME Types: audio/mpeg audio/x-mp3 audio/x-mpeg\r\n  wav:\r\n    Priority: 50\r\n    File Types: wav\r\n    MIME Types:\r\n  mp4:\r\n    Priority: 50\r\n    File Types: mp4 m4a m4b\r\n    MIME Types:\r\n  cue:\r\n    Priority: 50\r\n    File Types:\r\n    MIME Types: application/x-cue\r\n  aac:\r\n    Priority: 50\r\n    File Types: aac\r\n    MIME Types: audio/aac audio/aacp\r\n  flac:\r\n    Priority: 50\r\n    File Types: flac fla\r\n    MIME Types:\r\n  modplug:\r\n    Priority: 50\r\n    File Types: mod s3m xm it 669 amf ams dbm dmf dsm far mdl med mtm okt ptm stm ult umx mt2 psm\r\n    MIME Types:\r\n  vorbis:\r\n    Priority: 50\r\n    File Types: ogg oga ogx\r\n    MIME Types: application/ogg audio/x-ogg\r\n\r\nOutput Plugins: /usr/local/lib/cmus/op\r\n  coreaudio\r\n  ao\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cmus/cmus/issues/comments/372871800","html_url":"https://github.com/cmus/cmus/issues/782#issuecomment-372871800","issue_url":"https://api.github.com/repos/cmus/cmus/issues/782","id":372871800,"user":{"login":"rien333","id":10417027,"avatar_url":"https://avatars0.githubusercontent.com/u/10417027?v=4","gravatar_id":"","url":"https://api.github.com/users/rien333","html_url":"https://github.com/rien333","followers_url":"https://api.github.com/users/rien333/followers","following_url":"https://api.github.com/users/rien333/following{/other_user}","gists_url":"https://api.github.com/users/rien333/gists{/gist_id}","starred_url":"https://api.github.com/users/rien333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rien333/subscriptions","organizations_url":"https://api.github.com/users/rien333/orgs","repos_url":"https://api.github.com/users/rien333/repos","events_url":"https://api.github.com/users/rien333/events{/privacy}","received_events_url":"https://api.github.com/users/rien333/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T01:14:09Z","updated_at":"2018-03-14T01:14:09Z","author_association":"NONE","body":"That seems to be a considerably older version than I have with my `--HEAD` install (also just looking at the year alone):\r\n```\r\nffmpeg version N-45375-g68f538480 Copyright (c) 2000-2018 the FFmpeg developers\r\nbuilt with Apple LLVM version 9.0.0 (clang-900.0.39.2)\r\nconfiguration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-68f5384 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libbs2b --enable-libcaca --enable-libmp3lame --enable-librtmp --enable-librubberband --enable-libtwolame --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-nonfree\r\nlibavutil      56.  9.100 / 56.  9.100\r\nlibavcodec     58. 14.100 / 58. 14.100\r\nlibavformat    58. 10.100 / 58. 10.100\r\nlibavdevice    58.  2.100 / 58.  2.100\r\nlibavfilter     7. 13.100 /  7. 13.100\r\nlibavresample   4.  0.  0 /  4.  0.  0\r\nlibswscale      5.  0.102 /  5.  0.102\r\nlibswresample   3.  0.101 /  3.  0.101\r\nlibpostproc    55.  0.100 / 55.  0.100\r\n```"}}
{"actor":{"display_login":"rien333"}}