We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2184 - undefined reference to `SDL_UDEV_*
Summary: undefined reference to `SDL_UDEV_*
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Gabriel Jacobo
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-26 05:23 UTC by Gerhard Stein
Modified: 2013-10-31 18:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Stein 2013-10-26 05:23:21 UTC
I tried to link against the most recent stable SDL2 and got this problem:

[gerstrong@gerstrong-pc test]$ make
gcc -o checkkeys checkkeys.c -g -O2 -D_REENTRANT -I/usr/include/SDL2  -DHAVE_OPENGLES -DHAVE_OPENGL -g -lSDL2_test -pthread -lSDL2 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Poll'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_AddCallback'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_DelCallback'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Scan'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Quit'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libSDL2.so: undefined reference to `SDL_UDEV_Init'
collect2: Fehler: ld gab 1 als Ende-Status zurück
Makefile:63: recipe for target 'checkkeys' failed
make: *** [checkkeys] Error 1
[gerstrong@gerstrong-pc test]$ 


As you see, I tried it in your test routines. Same thing happens when trying to compile another project with this lib.I'm using Arch Linux.
Comment 1 Gerhard Stein 2013-10-26 05:28:45 UTC
Just tried SDL 2.0.0 and yeah, it doesn't have that problem.
Comment 2 Gabriel Jacobo 2013-10-30 14:00:20 UTC
I just tried to reproduce with the 2.0.1 release, running both configure and configure --disable-libudev, and it works fine with either.

Can you provide more information to help debug this? config.log, SDL_config.h, which commands you are running to build and install both SDL and the tests?

Thanks!
Comment 3 Gerhard Stein 2013-10-30 14:06:12 UTC
Just tried it again with:

./configure

and then:

make
sudo make install
cd test
make

everything worked with SDL 2.0.1.

Let me try to reproduce somehow. Maybe it was an issue with Arch and got somehow fixed. Sorry for bothering. I might close this issue...
Comment 4 Gabriel Jacobo 2013-10-31 18:50:11 UTC
Feel free to reopen if you find out there was actually a problem. Thanks for the report!