[opensuse-packaging] Build fails during linking, but executing the command manually goes fine
Hi, about 2 weeks ago I asked the same question, but this time it is caused by a different reason and I can't find a solution for it. I hope someone on this list knows, just like last time. I'm trying to build kfritz version 0.0.4 released some days ago. During linking it stops with the following error: In function `fritz::FritzClient::CalculateLoginResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': /usr/src/packages/BUILD/kfritz-0.0.4/libfritz++/FritzClient.cpp:73: undefined reference to `gcry_md_hash_buffer' When moving into the 'chroot', I have the following the information: chroot $ rpm -qa | grep crypt libgcrypt11-1.4.4-2.2.i586 libxcrypt-3.0.2-3.2.i586 libgcrypt-devel-1.4.4-2.2.i586 chroot $ grep -A2 gcry_md_hash_buffer /usr/include/gcrypt.h void gcry_md_hash_buffer (int algo, void *digest, So the function seems present.... The linker command is: /usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align - Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions - fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics - fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -O2 -g -DNDEBUG - DQT_NO_DEBUG -fPIC -Wl,--enable-new-dtags CMakeFiles/kfritz.dir/kfritz_automoc.o CMakeFiles/kfritz.dir/KFritz.o CMakeFiles/kfritz.dir/KFritzWindow.o CMakeFiles/kfritz.dir/KFonbookModel.o CMakeFiles/kfritz.dir/KSettingsFonbooks.o CMakeFiles/kfritz.dir/KSettingsFritzBox.o CMakeFiles/kfritz.dir/KFritzModel.o CMakeFiles/kfritz.dir/KCalllistModel.o CMakeFiles/kfritz.dir/LibFritzInit.o CMakeFiles/kfritz.dir/Log.o CMakeFiles/kfritz.dir/LogDialog.o CMakeFiles/kfritz.dir/QAdaptTreeView.o CMakeFiles/kfritz.dir/KSettings.o -o kfritz -rdynamic -L/usr/src/packages/BUILD/kfritz-0.0.4/builddir/lib /usr/lib/libkdeui.so.5.3.0 /usr/lib/libknotifyconfig.so.4.3.0 -lgcrypt -lgpg- error lib/libfritz++.a lib/libtcpclient++.a lib/libpthread++.a /usr/lib/libkdeui.so.5.3.0 -lQtSvg /usr/lib/libkdecore.so.5.3.0 -lQtDBus - lQtCore -lpthread -lQtGui Which has the call to -lgcrypt. Copy and pasting the linker command in the 'chroot' environment results in a executable.... (most likely due to the absence of the compiler directive 'AS_NEEDED'. What do I need to add to the spec file, to get the linker command working? Last time, it was suggested to add libcrypto, but I can't find a package that provide it (and that is in the base distribution). -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
http://en.opensuse.org/Packaging/Fixing -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Op maandag 01 maart 2010 21:47:07 schreef Marcus Rueckert:
Thanks you for the saucise (-l wurst) :) -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 01/03/10 20:25, Richard Bos wrote:
Copy and pasting the linker command in the 'chroot' environment results in a executable.... (most likely due to the absence of the compiler directive 'AS_NEEDED'. What do I need to add to the spec file, to get the linker command working?
Try "export SUSE_ASNEEDED=0" above the build stage if you need to disable --as-needed
Last time, it was suggested to add libcrypto, but I can't find a package that provide it (and that is in the base distribution).
look at libopenssl{-devel} Regards, Tejas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Marcus Rueckert
-
Richard Bos
-
Tejas Guruswamy