mxcl/homebrew — Issue #9073: libpano fails with Lion (llvm-gcc-4.2) building png.c
Author: damiannz
Created: 2011-12-10 14:05:33+00:00
State: open

Per subject: brew install libpano fails on Lion, llvm-gcc-4.2, building png.c:

png.c: In function ‘writePNG’:
png.c:59: error: dereferencing pointer to incomplete type
png.c:71: error: dereferencing pointer to incomplete type
png.c:72: error: dereferencing pointer to incomplete type
png.c:73: error: dereferencing pointer to incomplete type

brew doctor output:

````$ brew doctor
We couldn't detect gcc 4.2.x. Some formulae require this compiler.
NOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x.

Some "config" scripts were found in your path, but not in system or Homebrew folders.

`./configure` scripts often look for *-config scripts to determine if software packages
are installed, and what additional flags to use when compiling and linking.

Having additional scripts in your path can confuse software installed via Homebrew if
the config script overrides a system or Homebrew provided script of the same name.

/opt/X11/bin
freetype-config libpng-config libpng15-config

Setting DYLD_LIBRARY_PATH can break dynamic linking.
You should probably unset it.
````

full brew install -v output is at https://gist.github.com/1455235