> This problem is occured because TerrasoftCRM database has declared > external function. Thank You for your attention!
I asked Terrasoft for FreeBSD-compiled library, and they sent me one, but it turned out to be linux-compiled. Maybe they didn't see any difference between them :) . I asked them again to provide exactly FreeBSD version or source to compile by myself and now am waiting for response.

