Got some more errors trying to compile:
Code: Select all
Linking CXX executable nph-zms
/bin/ld: CMakeFiles/nph-zms.dir/zms.cpp.o: undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'
/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /lib64/libstdc++.so.6 so try adding it to the linker command line
/lib64/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [src/nph-zms] Error 1
make[1]: *** [src/CMakeFiles/nph-zms.dir/all] Error 2
make: *** [all] Error 2
and
Code: Select all
Linking CXX executable nph-zms
/bin/ld: libzm.a(zm_image.cpp.o): undefined reference to symbol 'round@@GLIBC_2.2.5'
/bin/ld: note: 'round@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [src/nph-zms] Error 1
make[1]: *** [src/CMakeFiles/nph-zms.dir/all] Error 2
make: *** [all] Error 2
I had similar problems with zma, zmc, zmf, zms, zmstreamer and zmu.
I had to edit the following files:
./src/CMakeFiles/nph-zms.dir/link.txt
./src/CMakeFiles/zma.dir/link.txt
./src/CMakeFiles/zmc.dir/link.txt
./src/CMakeFiles/zmf.dir/link.txt
./src/CMakeFiles/zms.dir/link.txt
./src/CMakeFiles/zmstreamer.dir/link.txt
./src/CMakeFiles/zmu.dir/link.txt
and add "/lib64/libstdc++.so.6 /lib64/libm.so.6" to the "-o" arguments.
Example from first file:
Code: Select all
/bin/gcc -Wall -D__STDC_CONSTANT_MACROS -O2 CMakeFiles/nph-zms.dir/zms.cpp.o -o nph-zms -rdynamic libzm.a -lz -lcurl -ljpeg -lssl -lcrypto -lpthread -lpcre /usr/lib64/mysql/libmysqlclient.so -Wl,-rpath,/usr/lib64/mysql
becomes:
Code: Select all
/bin/gcc -Wall -D__STDC_CONSTANT_MACROS -O2 CMakeFiles/nph-zms.dir/zms.cpp.o -o nph-zms /lib64/libstdc++.so.6 /lib64/libm.so.6 -rdynamic libzm.a -lz -lcurl -ljpeg -lssl -lcrypto -lpthread -lpcre /usr/lib64/mysql/libmysqlclient.so -Wl,-rpath,/usr/lib64/mysql
Leaving all of this here in case it helps somebody else. I couldn't find any info on these errors using the search function, neither in the forums nor the wiki nor the main zoneminder page.