mxcl/homebrew — Issue #8564: pkg-config 0.25 fails_with_clang on Lion
Author: 2bits
Created: 2011-11-12 23:35:08+00:00
State: open

Clean install Lion 10.7.2
Run Software Update.
Install XCode-4.2 (4D199) from Oct 2011
Install JDK from Nov 2011
Install Homebrew
brew update
export HOMEBREW_USE_CLANG=1
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
brew install git
brew install pkg-config

fails_with_clang duplicate symbols in libglib.a:

libtool: link: /usr/bin/clang -O3 -march=core2 -msse4 -w -pipe -Wall -D_REENTRANT -o testglib testglib.o ./.libs/libglib.a
ld: duplicate symbol _g_bit_nth_lsf in ./.libs/libglib.a(gutils.o) and testglib.o for architecture x86_64

[Here is a gist of the error, brew config, and brew doctor](/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin)

This is similar to #7649