No idea if this was idiosyncratic, but here are two fixes I needed to install thrift from source on OSX Snow leopard using fink. Version was 0.4.0. --- First problem was a complaint about libfl.a being the wrong bitness (wanted 64-bit), which led to the same "undefined reference to ...