dropbear and -lcrypt
Stuart Longland
redhatter at gentoo.org
Wed Mar 16 11:07:51 WST 2011
Hi,
Not sure what the cause was, but just today I was trying to compile
dropbear against µClibc-0.9.31 on a mipsel system (native compile). It
would bomb out every time at the point where 'dropbear' is linked.
I didn't save a logfile of the build unfortunately. The error message
was "undefined reference to crypt". I found I could avoid the problem
by specifying -lcrypt in LIBS, as per the attachment. Now it
successfully builds.
Attached is a patch that does this. I'm not sure if this is something
./configure should have picked up. The other possibility is that the
build system could be relying on the fact that other libraries it links
against, also link against libcrypt and thus it'd get pulled in as a
result. On Gentoo we link with the --as-needed flag, which would break
this assumption.
I'll be doing a rebuild of my µClibc environment shortly, so I'll try
leaving the patch out once again and get a build logs with and without
the patch for comparison in case I've missed something, but figured I'd
toss the patch your way for public comment.
Regards,
--
Stuart Longland (aka Redhatter, VK4MSL) .'''.
Gentoo Linux/MIPS Cobalt and Docs Developer '.'` :
. . . . . . . . . . . . . . . . . . . . . . .'.'
http://dev.gentoo.org/~redhatter :.'
I haven't lost my mind...
...it's backed up on a tape somewhere.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dropbear-0.53.1-lcrypt.diff
Url: http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20110316/958fdb0b/attachment.txt
More information about the Dropbear
mailing list