-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implicit linking to libX11 #15
Comments
Indeed (this was true of libm as well). I've updated configure.in to explicitly check for those libraries and add their linker flags. Thanks for the report! |
Reviving this from the dead because: /usr/bin/ld: hotkeys.o: undefined reference to symbol 'XKeycodeToKeysym' Having this problem again. Was the change done to fix this problem removed? |
https://github.com/nicklan/pnmixer/blob/master/configure.ac#L36 x11 is explicitly linked |
No clue... |
@sistematico 0.5 is several years old, use latest git HEAD |
pnmixer uses XKeycodeToKeysym from libX11, but libX11 is not linked explicitly. Thus the build will fail on various distributions such as Fedora >= 13:
gcc -O2 -export-dynamic -o pnmixer support.o main.o hotkeys.o alsa.o callbacks.o prefs.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lasound
/usr/bin/ld: hotkeys.o: undefined reference to symbol 'XKeycodeToKeysym'
/usr/bin/ld: note: 'XKeycodeToKeysym' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
For the background of this change, see http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
The text was updated successfully, but these errors were encountered: