[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

q4wine: Errors of linking during package building



Hi,

(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 [1].
Previous version (0.121-4) of package was built fine [2].

Short quotation from full log [3]:

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 [4].
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.

Best regards,
Boris

[1] https://buildd.debian.org/status/package.php?p=q4wine&suite=experimental
[2] https://buildd.debian.org/status/package.php?p=q4wine&suite=sid
[3] https://buildd.debian.org/status/fetch.php?pkg=q4wine&arch=kfreebsd-amd64&ver=0.999-rc7-1&stamp=1338806117
[4] https://github.com/tehnick/q4wine-debian/commit/7d71e50


Reply to: