Since I was contacted about this problem today, which I posted on the list few weeks ago (and to which I finally found a solution) I thought I should post the remedy that I found. The problem occurs because of a bug in certain version of GCC. I recompiled GCC and then recompiled openssh and now everything works fine. Ofcourse I needed to recompile all those packages which were linked against openssl. These links details the bug:
http://bugs.gentoo.org/show_bug.cgi?id=13795 http://bugzilla.mindrot.org/show_bug.cgi?id=462 thanks, Ashu Ashutosh Jaiswal wrote: > Forgot to mention, I'm using Gentoo-Linux with kernel 2.4.20. > thanks! > Ashu > > Ashutosh Jaiswal wrote: > >> Hi, >> I upgraded to openssl0.9.7b today and then tried to compile openssh >> 3.6.1p2 which failed compilation. The same openssh package combines >> fine with openssl 0.9.6j. Since the openssh package depends on >> openssl libraries, I can't use my existing installation of openssh >> with the new (0.9.7b) libraries. Has anyone has had a similar >> experience? Here's the last few lines of the output I get when I try >> to compile openssh (I can attach full log if needed): >> >> gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o >> sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -lssh >> -lopenbsd-compat -lutil -lz -lnsl -lcrypto >> >> ./libssh.a(rsa.o)(.text+0x269): In function >> `rsa_generate_additional_parameters': >> >> : undefined reference to `BN_mod' >> >> ./libssh.a(rsa.o)(.text+0x29b): In function >> `rsa_generate_additional_parameters': >> >> : undefined reference to `BN_mod' >> >> collect2: ld returned 1 exit status >> >> make: *** [ssh] Error 1 >> >> make: *** Waiting for unfinished jobs.... >> >> >> !!! ERROR: net-misc/openssh-3.6.1_p2 failed. >> >> !!! Function src_compile, Line 92, Exitcode 2 >> >> !!! compile problem >> >> I would appreciate if anyone had any idea as to why this would be >> happening. I know that this might not be the most pertinent question >> to this list, but I really need to use openssl 0.9.7b and openssh at >> the same time. >> >> thanks, >> Ashu >> -- http://www.jaiashu.com ---------------------- "I would like to change the world, but they won't tell me the source code!"
smime.p7s
Description: S/MIME Cryptographic Signature