Undefined reference to

anyone else getting this for SDL 1.3 rev 4474?

While building with installed libraries:
…/lib/libSDL.so: undefined reference to SDL_SYS_JoystickInit' .../lib/libSDL.so: undefined reference toglXChooseFBConfig’
…/lib/libSDL.so: undefined reference to glXDestroyContext' .../lib/libSDL.so: undefined reference toSDL_SYS_JoystickUpdate’
…/lib/libSDL.so: undefined reference to SDL_SYS_JoystickOpen' .../lib/libSDL.so: undefined reference toSDL_SYS_JoystickName’
…/lib/libSDL.so: undefined reference to SDL_SYS_JoystickClose' .../lib/libSDL.so: undefined reference toSDL_SYS_JoystickQuit’
…/lib/libSDL.so: undefined reference to `glXGetProcAddress’

During ‘make test’ or ‘make check’:
build-deps:1771: warning: overriding commands for target
build/SDL_sysjoystick.lo' build-deps:1713: warning: ignoring old commands for targetbuild/SDL_sysjoystick.lo’

Kenneth Bull <llubnek gmail.com> writes:

anyone else getting this for SDL 1.3 rev 4474?

While building with installed libraries:
…/lib/libSDL.so: undefined reference to SDL_SYS_JoystickInit' .../lib/libSDL.so: undefined reference toglXChooseFBConfig’
…/lib/libSDL.so: undefined reference to glXDestroyContext' .../lib/libSDL.so: undefined reference toSDL_SYS_JoystickUpdate’
…/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickOpen’

Yes, I also have this problem. There is a bug in OpenGL 3.x context creation
code. I have submitted patch which solves undefined
references to glX functions. Now I will try to fix the rest.

michal <michalziulek gmail.com> writes:

Kenneth Bull <llubnek gmail.com> writes:

anyone else getting this for SDL 1.3 rev 4474?

While building with installed libraries:
…/lib/libSDL.so: undefined reference to SDL_SYS_JoystickInit' .../lib/libSDL.so: undefined reference toglXChooseFBConfig’
…/lib/libSDL.so: undefined reference to glXDestroyContext' .../lib/libSDL.so: undefined reference toSDL_SYS_JoystickUpdate’
…/lib/libSDL.so: undefined reference to `SDL_SYS_JoystickOpen’

Yes, I also have this problem. There is a bug in OpenGL 3.x context creation
code. I have submitted patch which solves undefined
references to glX functions. Now I will try to fix the rest.

I figured that out. There are some conflicts with joystick module. I had to
change the name of the src/joystick/dummy/sysjoystick.c file to
src/joystick/dummy/dummyjoystick.c. Then run ./autogen.sh, ./configure, make,
make install. After these steps everything works.