q4wine: Errors of linking during package building
(Please Cc me in replies, I am not subscribed to this mailing list)
I have strange errors of linking in version 0.999-rc7-1 of my package q4wine
which is now in experimental. Errors affects only kfreebsd-* architectures .
Previous version (0.121-4) of package was built fine .
Short quotation from full log :
Linking CXX executable q4wine-helper
/usr/bin/c++ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -Wl,-z,relro -Wl,--as-needed CMakeFiles/q4wine-helper.dir/q4wine-helper.cpp.o CMakeFiles/q4wine-helper.dir/__/core/database/db.cpp.o CMakeFiles/q4wine-helper.dir/__/core/database/logging.cpp.o CMakeFiles/q4wine-helper.dir/__/core/database/prefix.cpp.o CMakeFiles/q4wine-helper.dir/wineobject.cpp.o CMakeFiles/q4wine-helper.dir/moc_wineobject.cxx.o CMakeFiles/q4wine-helper.dir/__/q4wine-gui/moc_process.cxx.o -o q4wine-helper -lQtGui -lQtDBus -lQtXml -lQtSql -lQtNetwork -lQtCore -lkvm ../q4wine-lib/libq4wine-core.so -lQtGui -lQtDBus -lQtXml -lQtSql -lQtNetwork -lQtCore -Wl,-rpath,/build/buildd-q4wine_0.999-rc7-1-kfreebsd-amd64-UhqkdR/q4wine-0.999-rc7/builddir/src/q4wine-lib:
./q4wine-lib/libq4wine-core.so: undefined reference to `kvm_openfiles'
./q4wine-lib/libq4wine-core.so: undefined reference to `kvm_close'
./q4wine-lib/libq4wine-core.so: undefined reference to `kvm_getprocs'
./q4wine-lib/libq4wine-core.so: undefined reference to `kvm_getargv'
./q4wine-lib/libq4wine-core.so: undefined reference to `kvm_getenvv'
collect2: error: ld returned 1 exit status
When problems are during compiling process I have no problem to fix them.
But now problem is during linking process and it is completely new for me.
Only one supposition I have: in this version of package I've added hardening
flags in compiler options and "-Wl,--as-needed" option in linker options .
Could it cause problem above? There are no problems with these options in all
other my packages. So I am not sure.
Any suggestions and explanations are welcome.