mxcl/homebrew — Issue #8780: brew install mysql ->  In function ‘int old_password_authenticate(MYSQL_PLUGIN_VIO*, MYSQL_SERVER_AUTH_INFO*)’:
Author: davidino
Created: 2011-11-25 00:48:47+00:00
State: open

[ 85%] Building CXX object sql/CMakeFiles/sql.dir/sql_analyse.cc.o
/tmp/homebrew-mysql-5.5.15-r9Xh/mysql-5.5.15/sql/sql_acl.cc: In function ‘int old_password_authenticate(MYSQL_PLUGIN_VIO*, MYSQL_SERVER_AUTH_INFO*)’:
/tmp/homebrew-mysql-5.5.15-r9Xh/mysql-5.5.15/sql/sql_acl.cc:9602: error: ‘strnlen’ was not declared in this scope
make[2]: *** [sql/CMakeFiles/sql.dir/sql_acl.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/mysql.rb#L69
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: ed55d2f4bb8135b1330107410b807656e8df2285
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit core2
OS X: 10.7.1
Kernel Architecture: i386
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 3.2.4
GCC-4.0: build 5494
GCC-4.2: build 5664
LLVM: build 2326
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.1/include
LDFLAGS: -L/usr/local/Cellar/readline/6.2.1/lib
MAKEFLAGS: -j2
PKG_CONFIG_PATH: /usr/local/Cellar/readline/6.2.1/lib/pkgconfig

Error: Failed executing: make
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/6680
https://github.com/mxcl/homebrew/issues/7869
https://github.com/mxcl/homebrew/issues/8063