First post, by Guest
I'm a Gentoo Linux user. I emerged the DOSBox 0.61 ebuild. SDL compiles cleanly, while DOSBox doesn't. It says:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -march=pentium4 -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -frerun-loop-opt -frerun-cse-after-loop -ffast-math -s -I/usr/include/SDL -D_REENTRANT -c -o dosbox.o `test -f 'dosbox.cpp' || echo './'`dosbox.cpp
g++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -frerun-loop-opt -frerun-cse-after-loop -ffast-math -s -I/usr/include/SDL -D_REENTRANT -o dosbox dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a -lasound -lm -ldl -lpthread -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpng -lz -lSDL_net -lGL
gui/libgui.a(sdlmain.o)(.text+0x1c5f): In function `main':
: undefined reference to `SDL_NumJoysticks'
gui/libgui.a(sdlmain.o)(.text+0x1c6f): In function `main':
: undefined reference to `SDL_JoystickEventState'
gui/libgui.a(sdlmain.o)(.text+0x1c7b): In function `main':
: undefined reference to `SDL_JoystickOpen'
gui/libgui.a(sdlmain.o)(.text+0x1c88): In function `main':
: undefined reference to `SDL_JoystickNumButtons'
gui/libgui.a(sdlmain.o)(.text+0x1c9b): In function `main':
: undefined reference to `SDL_JoystickNumAxes'
gui/libgui.a(sdlmain.o)(.text+0x1ca9): In function `main':
: undefined reference to `SDL_JoystickName'
collect2: ld returned 1 exit status
make[3]: *** [dosbox] Error 1
make[3]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61'
make: *** [all] Error 2
Can someone help me, please? Thanks in advance.