Linking problems of mscore 1.1 on fedora 16
Hello,
I tried to compile mscore 1.1 on fedora 16 64 bits.
I met some link problems:
- the first one:
Linking CXX executable mscore
/usr/bin/ld: CMakeFiles/mscore.dir/utils.cpp.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /lib64/librt.so.1 so try adding it to the linker command line
/lib64/librt.so.1: could not read symbols: Invalid operation
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [mscore/mscore] Erreur 1
I added
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lrt") into the main CMakeLists.txt
- the second:
Linking CXX executable mscore
/usr/bin/ld: CMakeFiles/mscore.dir/jackweakapi.cpp.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: ld a retourné 1 code d'état d'exécution
I added
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lrt -ldl") into the main CMakeLists.txt
Best regards,
YC
Comments
Its known issue with recent and more strict linker and it's fixed for next minor release.
See #12108: Fixes from 1.1, patch 20.
Automatically closed -- issue fixed for 2 weeks with no activity.