mxcl/homebrew — Issue #10804: Install w/ Homebrew vs manual install leads to different results
Author: scrapcoder
Created: 2012-03-09 00:27:38+00:00
State: open

This isn't a bug report as much as it is a general question for the rest of you Homebrew users and developers...

I'm working on a project that leverages OpenSceneGraph (OSG), so I installed OSG via Homebrew using the following formula.

https://github.com/jscasallas/homebrew/commit/de129cb902c69263616b58a82f2f98294e75fc63

OSG installs and compiles fine, and my project compiles fine against it, but when I execute my project I get a segmentation fault. I couldn't track down the problem in my code so I thought to try uninstalling OSG from Homebrew, manually installing it, and recompiling my project against it. When I did this, I no longer got the segmentation fault. I know that the OSG formula is not an official Homebrew formula, so it's worth noting that I used the exact same commands to manually compile and install OSG that the Homebrew formula uses, and linked against OSG dependencies installed via Homebrew just like OSG would if it were installed via Homebrew.

Any ideas why this might be happening?! If by chance it matters, gdb informs me the segmentation fault is caused by a call to sinf() but that's about all I can get out of it.