Mailinglist Archive: opensuse-packaging (162 mails)

< Previous Next >
Re: [opensuse-packaging] Build fails during linking, but executing the command manually goes fine.
  • From: Cristian Rodríguez <crrodriguez@xxxxxxxxxxxx>
  • Date: Mon, 15 Feb 2010 18:59:56 -0300
  • Message-id: <4B79C3DC.9070103@xxxxxxxxxxxx>
On 15/02/10 18:36, Richard Bos wrote:
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'

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

libcrypto (-lcrypto) needs to be linked.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References