the following patch corrects the usage of cflags with the perl module and corrects the search path on multilib portage Reproducible: Always
Created attachment 283117 [details, diff] qdbm-1.8.78.ebuild-multilib.patch this patch corrects CFLAGS usage for perl module and adds correctted lib dirs for multilib-portage
Fixed in CVS. Thank you for reporting!