libgssapi_krb5.so file not found while using Multimedia and MultimediaWidget even though it is present in /usr/lib64
-
Following error has occured when trying to run the app which uses Multimedia or MultimediaWidgets of QT. (System: Fedora). Please help :
app/extra/clion/bin/cmake/linux/x64/bin/cmake --build /home/bishal/Documents/Projects/media_player/cmake-build-debug --target media_player -j 3
[1/1] Linking CXX executable media_player
FAILED: media_player
: && /usr/bin/c++ -g CMakeFiles/media_player.dir/media_player_autogen/mocs_compilation.cpp.o CMakeFiles/media_player.dir/main.cpp.o -o media_player -Wl,-rpath,/opt/Qt/6.7.2/gcc_64/lib /opt/Qt/6.7.2/gcc_64/lib/libQt6MultimediaWidgets.so.6.7.2 /opt/Qt/6.7.2/gcc_64/lib/libQt6Multimedia.so.6.7.2 /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2 /opt/Qt/6.7.2/gcc_64/lib/libQt6Widgets.so.6.7.2 /opt/Qt/6.7.2/gcc_64/lib/libQt6Gui.so.6.7.2 /opt/Qt/6.7.2/gcc_64/lib/libQt6Core.so.6.7.2 /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so && :
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libgssapi_krb5.so.2, needed by /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference togss_delete_sec_context@gssapi_krb5_2_MIT' /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference to
gss_display_status@gssapi_krb5_2_MIT'
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference toGSS_C_NT_HOSTBASED_SERVICE@gssapi_krb5_2_MIT' /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference to
gss_init_sec_context@gssapi_krb5_2_MIT'
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference togss_import_name@gssapi_krb5_2_MIT' /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference to
gss_release_name@gssapi_krb5_2_MIT'
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference togss_release_buffer@gssapi_krb5_2_MIT' /usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference to
gss_acquire_cred@gssapi_krb5_2_MIT'
/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: /opt/Qt/6.7.2/gcc_64/lib/libQt6Network.so.6.7.2: undefined reference to `gss_release_cred@gssapi_krb5_2_MIT'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.PS: all libraries are present
-
Hi and welcome to devnet,
If a symbol is missing, it might mean that the version of the library you have on your system is widely different than the one used to build Qt.
-
Which distribution are you using ?
Multiple possible things:- use your distribution provided Qt if it's recent enough for your project
- build and use your own version of that dependency
- build Qt yourself
- change Linux distribution
-
@bishal said in libgssapi_krb5.so file not found while using Multimedia and MultimediaWidget even though it is present in /usr/lib64:
i installed Qt from its online installer,
You mean you installed Qt using Qt Online Installer?
If so please try with Qt provided by Fedore like @SGaist suggested.