Created attachment 565708 [details] build.log Hi all, it builds if I set eselect sh set bash.
The reason is that the ebuild pollutes the environment thusly: # sed -n 534p openldap-2.4.45.ebuild emake CC="${CC}" AR="${AR}" SHELL="${EPREFIX}"/bin/bash What happens is that libtool deduces that `print -r --` is a safe 'echo' command for ksh, but then the applicable functions end up being executed in a bash shell anyway. Of course, print is not a valid builtin for bash. Changing the definition of the SHELL variable to be "${EPREFIX}"/bin/sh allows the compile phase to conclude successfully.
s/for ksh/for mksh/
FWIW, I'm still running into this with openldap-2.4.47-r1.
Please apply the simple fix mentioned in comment 1.