Op maandag 15 februari 2010 23:26:33 schreef Jan Engelhardt:
On Monday 2010-02-15 22:59, Cristian Rodríguez wrote:
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
)': /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.
libssl already has a DT_NEEDED link to libcrypto (as evidenced by ldd(1)), so -lcrypto is not explicitly required.
But still it is the solution. When adding libcrypto to linker line, it worked.
For what it's worth, I cannot reproduce this compile error using either Lbuild-jplus (osc build without the osc) or the SUSE OBS.
I use: $ # rpm -q osc build osc-0.120-2.1.x86_64 build-2009.09.23-2.3.1.noarch -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org