Created attachment 292847 [details, diff] fix header inclusion OpenSceneGraph included the headers without using the full path and is missing libavutil/mathematics.h Patch attached to fix the issue.
A working ebuild is now on the sabayon overlay.
Fixed, thanks.