Whenever reporting problems with building the library, please never
forget to provide some basic information such as which operating system
you are using, what compiler version, and so on. Also please attach a
the _complete_ output of the configure script, together with the file
config.log which is generated.
As the error message below says, the problem occurs because the script
cannot link with the python library. The necessary information required
to understand why the problem happens is included in the config.log
file. But since you seem to have compiled and installed python yourself,
a common source of problems is to forget to compile the python shared
library, which is done by passing "--enable-shared" to the configure
script when compiling python. Please make sure you have done so...