I don't know. It looks like if you tried to compile with yassl, then aborted the build, and tried to compile again - without yassl and without cleaning after the first build. And you have some .o files from the first build, and some - from the second one.

Besides, I wasn't able to repeat even the first error - the one with readline.

We don't build our official with simple ./configure, we use our BUILD/* scripts that do all steps with correct options.
On solaris, for example, it could be BUILD/compile-solaris-amd64