Mailinglist Archive: opensuse-packaging (162 mails)

< Previous Next >
[opensuse-packaging] Build fails during linking, but executing the command manually goes fine.
  • From: Richard Bos <rbos@xxxxxxxxxxxx>
  • Date: Mon, 15 Feb 2010 22:36:40 +0100
  • Message-id: <201002152236.40376.rbos@xxxxxxxxxxxx>
Hi,

I execute the following build command:
$ home:rbos/kfritz> osc build openSUSE_11.2 i586 kfritz.spec
The last part of the build fails, with the error attached

lib/libfritz++.a(FritzClient.cpp.o): In function
`fritz::FritzClient::CalculateLoginResponse(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)':
/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++/FritzClient.cpp:73: undefined
reference to `MD5'

But when I copy the command that fails, chroot into the local build root and
execute in the correct directory the build is succesful, and I obtain the
executable kfritz. Does anyone know what is happening here? Why does the
build fail, but can I execute the exact same command manually succesfully?

The line that errors out, contains this code:
MD5((unsigned char*)challengePwdConv, challengePwd.length()*2, hash);

--
Richard
/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 -g -ggdb -O0 -Wall
-D_GLIBCXX_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.1/builddir/lib
/usr/lib/libkdeui.so.5.3.0 /usr/lib/libknotifyconfig.so.4.3.0 lib/libfritz++.a
lib/libtcpclient++.a lib/libpthread++.a -lssl /usr/lib/libkdeui.so.5.3.0
-lQtSvg /usr/lib/libkdecore.so.5.3.0 -lQtDBus -lQtCore -lpthread -lQtGui
lib/libfritz++.a(FritzClient.cpp.o): In function
`fritz::FritzClient::CalculateLoginResponse(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)':
/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++/FritzClient.cpp:73: undefined
reference to `MD5'
collect2: ld returned 1 exit status

< Previous Next >
Follow Ups