Steps to produce: 1. USE=-joystick emerge libsdl 2. emerge dosbox Emerge fails with ugly "undefined reference" messages. Re-emerge libsdl with "joystick" support and the error is gone.
fixed; thanks for the bug report.