You may be having some other problem. You may be able to recover by using pkg_add on the libffi package that you can download manaully. But this feels like a messed-up database. Also, always good to pkg_admin check pkg_admin rebuild-tree
Attachment:
signature.asc
Description: PGP signature