Created attachment 1816 [details] provide provde xstrdup for bsd-misc.c When building a static only openssh the link order is -lssh -lopenbsd-compat. But xstrdup exists in bsd-misc.c (and an aix file). The problem is that on a static only build xstrdup is in libssh.a and yet openbsd-compat needs it and fails because of the link order. This patch adds a private copy of xstrdup to bsd-misc.c but doesn't fix the aix file, as most will probably never build static only on AIX.
The patch is broken as it uses xmalloc() and suffers the same linkage problem. Sorry about that, a bit hasty with the patch. We'd need to duplicate xmalloc into here too. But maybe you guys have a better solution ? Or perhaps do "-lssh -lopenbsd-compat -lssh" for the pksc11-helper application ? then no patch would be required to bsd-misc.c
Created attachment 1817 [details] add -lssh again to link pksc11-helper
Already fixed in -current: http://anoncvs.mindrot.org/index.cgi/openssh/Makefile.in?view=log The fix will be in openssh-5.5p1, due shortly.
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1