Today while I was updating py27-m2crypto package on FreeBSD 10 using portmaster, the following error message was displayed:

Shared object "" not found, required by "swig"

Fortunately, someone else has found the problem and solution before me. According this blog post, FreeBSD 10 includes a new C++ stack and gcc, including libstdc++, is not installed by default.

Therefore, to fix the missing this issue, we need to install lang/gcc.

If you use portmaster, the command to install lang/gcc is:

# portmaster lang/gcc