I figured out the problem. Buildroot was automatically adding the following compiler flags. Removing these fixed the problem.
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e6716cb2-6c67-4107-86b7-ad87170249cb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.