Created
August 15, 2014 10:58
-
-
Save zuku/9c527a54787bbeefc6fd to your computer and use it in GitHub Desktop.
fdkaac-0.6.0 build failure on OS X 10.9 with Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd fdkaac-0.6.0/ | |
$ autoreconf -i | |
configure.ac:49: warning: macro 'AM_ICONV' not found in library | |
configure.ac:49: error: possibly undefined macro: AM_ICONV | |
If this token and others are legitimate, please use m4_pattern_allow. | |
See the Autoconf documentation. | |
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1 | |
$ autoreconf -i | |
configure.ac:49: warning: macro 'AM_ICONV' not found in library | |
configure.ac:12: installing './compile' | |
configure.ac:41: installing './config.guess' | |
configure.ac:41: installing './config.sub' | |
configure.ac:10: installing './install-sh' | |
configure.ac:10: installing './missing' | |
Makefile.am: installing './depcomp' | |
$ ./configure | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking whether make supports nested variables... yes | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... | |
checking whether we are cross compiling... no | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking whether gcc understands -c and -o together... yes | |
checking for style of include used by make... GNU | |
checking dependency style of gcc... gcc3 | |
checking how to run the C preprocessor... gcc -E | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for ANSI C header files... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking sys/time.h usability... yes | |
checking sys/time.h presence... yes | |
checking for sys/time.h... yes | |
checking localcharset.h usability... yes | |
checking localcharset.h presence... yes | |
checking for localcharset.h... yes | |
checking langinfo.h usability... yes | |
checking langinfo.h presence... yes | |
checking for langinfo.h... yes | |
checking endian.h usability... no | |
checking endian.h presence... no | |
checking for endian.h... no | |
checking byteswap.h usability... no | |
checking byteswap.h presence... no | |
checking for byteswap.h... no | |
checking fdk-aac/aacenc_lib.h usability... yes | |
checking fdk-aac/aacenc_lib.h presence... yes | |
checking for fdk-aac/aacenc_lib.h... yes | |
checking for inline... inline | |
checking whether byte ordering is bigendian... no | |
checking for int16_t... yes | |
checking for int32_t... yes | |
checking for int64_t... yes | |
checking for int8_t... yes | |
checking for size_t... yes | |
checking for uint16_t... yes | |
checking for uint32_t... yes | |
checking for uint64_t... yes | |
checking for uint8_t... yes | |
checking for ptrdiff_t... yes | |
checking for special C compiler options needed for large files... no | |
checking for _FILE_OFFSET_BITS value needed for large files... no | |
checking for struct __timeb64... no | |
checking for _LARGEFILE_SOURCE value needed for large files... no | |
checking for sigaction... yes | |
checking for gettimeofday... yes | |
checking for nl_langinfo... yes | |
checking for _vscprintf... no | |
checking for fseeko64... no | |
checking for getopt_long... yes | |
checking for library containing aacEncOpen... -lfdk-aac | |
checking build system type... x86_64-apple-darwin13.3.0 | |
checking host system type... x86_64-apple-darwin13.3.0 | |
./configure: line 5262: AM_ICONV: command not found | |
checking that generated files are newer than configure... done | |
configure: creating ./config.status | |
config.status: creating Makefile | |
config.status: creating config.h | |
config.status: executing depfiles commands | |
$ make | |
/Library/Developer/CommandLineTools/usr/bin/make all-am | |
depbase=`echo src/aacenc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/aacenc.o -MD -MP -MF $depbase.Tpo -c -o src/aacenc.o src/aacenc.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/caf_reader.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/caf_reader.o -MD -MP -MF $depbase.Tpo -c -o src/caf_reader.o src/caf_reader.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/extrapolater.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/extrapolater.o -MD -MP -MF $depbase.Tpo -c -o src/extrapolater.o src/extrapolater.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/limiter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/limiter.o -MD -MP -MF $depbase.Tpo -c -o src/limiter.o src/limiter.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/lpc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/lpc.o -MD -MP -MF $depbase.Tpo -c -o src/lpc.o src/lpc.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/m4af.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/m4af.o -MD -MP -MF $depbase.Tpo -c -o src/m4af.o src/m4af.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/main.o -MD -MP -MF $depbase.Tpo -c -o src/main.o src/main.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/metadata.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/metadata.o -MD -MP -MF $depbase.Tpo -c -o src/metadata.o src/metadata.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/parson.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/parson.o -MD -MP -MF $depbase.Tpo -c -o src/parson.o src/parson.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/pcm_float_converter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/pcm_float_converter.o -MD -MP -MF $depbase.Tpo -c -o src/pcm_float_converter.o src/pcm_float_converter.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/pcm_native_converter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/pcm_native_converter.o -MD -MP -MF $depbase.Tpo -c -o src/pcm_native_converter.o src/pcm_native_converter.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/pcm_readhelper.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/pcm_readhelper.o -MD -MP -MF $depbase.Tpo -c -o src/pcm_readhelper.o src/pcm_readhelper.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/pcm_sint16_converter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/pcm_sint16_converter.o -MD -MP -MF $depbase.Tpo -c -o src/pcm_sint16_converter.o src/pcm_sint16_converter.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/progress.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/progress.o -MD -MP -MF $depbase.Tpo -c -o src/progress.o src/progress.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/wav_reader.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/wav_reader.o -MD -MP -MF $depbase.Tpo -c -o src/wav_reader.o src/wav_reader.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
depbase=`echo src/compat_posix.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ | |
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/compat_posix.o -MD -MP -MF $depbase.Tpo -c -o src/compat_posix.o src/compat_posix.c &&\ | |
mv -f $depbase.Tpo $depbase.Po | |
gcc -g -O2 -o fdkaac src/aacenc.o src/caf_reader.o src/extrapolater.o src/limiter.o src/lpc.o src/m4af.o src/main.o src/metadata.o src/parson.o src/pcm_float_converter.o src/pcm_native_converter.o src/pcm_readhelper.o src/pcm_sint16_converter.o src/progress.o src/wav_reader.o src/compat_posix.o @LIBICONV@ -lfdk-aac -lm -lfdk-aac | |
clang: error: no such file or directory: '@LIBICONV@' | |
make[1]: *** [fdkaac] Error 1 | |
make: *** [all] Error 2 | |
$ sed -i.orig -e 's/@LIBICONV@/-liconv/g' Makefile | |
$ diff -u Makefile.orig Makefile | |
--- Makefile.orig 2014-08-15 19:40:21.000000000 +0900 | |
+++ Makefile 2014-08-15 19:46:28.000000000 +0900 | |
@@ -338,7 +338,7 @@ | |
$(am__append_1) $(am__append_2) $(am__append_3) | |
dist_man_MANS = man/fdkaac.1 | |
fdkaac_LDADD = \ | |
- @LIBICONV@ -lfdk-aac -lm | |
+ -liconv -lfdk-aac -lm | |
#AM_CPPFLAGS = -Imissings | |
EXTRA_DIST = \ | |
$ make | |
/Library/Developer/CommandLineTools/usr/bin/make all-am | |
gcc -g -O2 -o fdkaac src/aacenc.o src/caf_reader.o src/extrapolater.o src/limiter.o src/lpc.o src/m4af.o src/main.o src/metadata.o src/parson.o src/pcm_float_converter.o src/pcm_native_converter.o src/pcm_readhelper.o src/pcm_sint16_converter.o src/progress.o src/wav_reader.o src/compat_posix.o -liconv -lfdk-aac -lm -lfdk-aac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew --config | |
HOMEBREW_VERSION: 0.9.5 | |
ORIGIN: https://github.com/Homebrew/homebrew.git | |
HEAD: 8aa3ba583c7bace54a59e6b9983063241b9e2342 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: quad-core 64-bit ivybridge | |
OS X: 10.9.4-x86_64 | |
CLT: 5.1.0.0.1.1396320587 | |
Clang: 5.1 build 503 | |
X11: N/A | |
System Ruby: 2.0.0-451 | |
Perl: /usr/bin/perl | |
Python: /usr/bin/python | |
Ruby: /usr/bin/ruby | |
$ brew info automake | |
automake: stable 1.14.1 (bottled) | |
http://www.gnu.org/software/automake/ | |
/usr/local/Cellar/automake/1.14 (127 files, 2.5M) | |
Poured from bottle | |
/usr/local/Cellar/automake/1.14.1 (127 files, 2.5M) * | |
Poured from bottle | |
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/automake.rb | |
==> Dependencies | |
Required: autoconf ✔ | |
$ brew info autoconf | |
autoconf: stable 2.69 (bottled) | |
http://www.gnu.org/software/autoconf | |
/usr/local/Cellar/autoconf/2.69 (69 files, 2.0M) * | |
Poured from bottle | |
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/autoconf.rb | |
$ brew info fdk-aac | |
fdk-aac: stable 0.1.3, HEAD | |
http://sourceforge.net/projects/opencore-amr/ | |
/usr/local/Cellar/fdk-aac/0.1.3 (11 files, 1.8M) * | |
Built from source | |
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/fdk-aac.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build failure on OS X Mavericks with Homebrew