$ brew -v install avro-c
Homebrew 0.9.4
==> Downloading http:Already downloaded: /Library/Caches/Homebrew/avro-c-1.7.5.tar.gz
tar xf /Library/Caches/Homebrew/avro-c-1.7.5.tar.gz
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/avro-c/1.7.5 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/avro-c/1.7.5 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev
-- The C compiler identification is Clang 4.2.0
-- The CXX compiler identification is Clang 4.2.0
-- Check for working C compiler: /usr/local/Library/ENV/4.3/cc
-- Check for working C compiler: /usr/local/Library/ENV/4.3/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/c++
-- Check for working CXX compiler: /usr/local/Library/ENV/4.3/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
Enabled deflate codec
-- Found Snappy: /usr/local/lib/libsnappy.dylib
Enabled snappy codec
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- checking for module 'liblzma'
-- package 'liblzma' not found
Disabled lzma codec. liblzma not found.
-- Searching for asciidoc...
CMake Warning at docs/CMakeLists.txt:51 (message):
asciidoc not found. HTML documentation will *NOT* be built.
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/avro-c-lfmK/avro-c-1.7.5
==> make install
make install
Scanning dependencies of target avro-static
Scanning dependencies of target avro-shared
[ 1%] [ 2%] [ 2%] [ 3%] [ 6%] [ 6%] [ 6%] [ 7%] Building C object src/CMakeFiles/avro-shared.dir/array.o
Building C object src/CMakeFiles/avro-static.dir/array.o
Building C object src/CMakeFiles/avro-shared.dir/allocation.o
Building C object src/CMakeFiles/avro-static.dir/consumer.o
Building C object src/CMakeFiles/avro-shared.dir/codec.o
Building C object src/CMakeFiles/avro-static.dir/codec.o
Building C object src/CMakeFiles/avro-static.dir/allocation.o
Building C object src/CMakeFiles/avro-shared.dir/consumer.o
/tmp/avro-c-lfmK/avro-c-1.7.5/src/codec.c:21:10: fatal error: 'byteswap.h' file not found
#include <byteswap.h>
^
/tmp/avro-c-lfmK/avro-c-1.7.5/src/codec.c:21:10: fatal error: 'byteswap.h' file not found
#include <byteswap.h>
^
1 error generated.
make[2]: *** [src/CMakeFiles/avro-shared.dir/codec.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [src/CMakeFiles/avro-static.dir/codec.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 8%] [ 9%] make[1]: *** [src/CMakeFiles/avro-shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Building C object src/CMakeFiles/avro-static.dir/datafile.o
Building C object src/CMakeFiles/avro-static.dir/consume-binary.o
make[1]: *** [src/CMakeFiles/avro-static.dir/all] Error 2
make: *** [all] Error 2