<snip>
`___divdi3' /tmp/sky/share/bison.simple(.text+0xafc): undefined reference to `___udivdi3' /tmp/sky/share/bison.simple(.text+0xb70): undefined reference to `___moddi3' /tmp/sky/share/bison.simple(.text+0xb8c): undefined reference to `___umoddi3'
<snip>
These are normal on *BSD afaik. Libgcc is not automatically linked IIRC, and probably needs explicitely a -lgcc