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.
--- Makefile.in.orig 2011-03-16 01:40:10.345497974 +0000 +++ Makefile.in 2011-03-16 01:39:44.706271111 +0000 @@ -77,7 +77,7 @@ INSTALL=@INSTALL@ CPPFLAGS=@CPPFLAGS@ CFLAGS+=-I. -I$(srcdir) $(CPPFLAGS) @CFLAGS@ -LIBS+=@LIBS@ +LIBS+=@LIBS@ -lcrypt LDFLAGS=@LDFLAGS@ EXEEXT=@EXEEXT@