As I have wrote in the previous message, this error also appears when I execute in command line a simply perl script.
About BDB, I downloaded the package from sunfreeware, selecting the one which is valid for x86/Solaris 10 (I forgot to tell you, the platform which I'm trying to run the cgi scripts is a x86)