From charlesreid1

If you try and install graphviz using Homebrew on Mac OS X Lion, like I did, you'll see the following error:

$ brew install graphviz
==> Downloading http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.30.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/graphviz-2.30.1.tar.gz
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file macosx/graphviz.xcodeproj/project.pbxproj
==> ./configure --prefix=/usr/local/Cellar/graphviz/2.30.1 --without-qt --with-quartz --disable-swig
==> make install
gvplugin_quartz.h:61: error: expected declaration specifiers or '...' before 'CGPoint'
make[3]: *** [GVTextLayout.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/mxcl/homebrew/issues/19664
    https://github.com/mxcl/homebrew/issues/18716

The solution is, don't install it using Homebrew; install it using the Mac OS X Lion binary provided on Graphviz's website. http://www.graphviz.org/Download_macos.php