The function in question 'add_shlibs_to_pkg' tries to avoid adding missing shlib to database, but in the meantime it fails to report the problem to user. The attached patch fixes the problem. I am also not sure if return (EPKG_OK) for shared library is correct there. But it was there before, and patch preserves it.
Created attachment 145698 [details] patch
Created attachment 145701 [details] corrected patch
over to maintainer
Re-post closed on Github https://github.com/freebsd/pkg/pull/1093#issuecomment-66913361