Hi Alexey,
Yes starting from the script. I checked libhogweed with ldd and it resolves the link correctly to libgmp under /lib64 so I'm not sure I understand why it can't find the function.
Also in the script the following lines:
TCL_LIBRARY=$dirname/python/lib/tcl8.5
TK_LIBRARY=$dirname/python/lib/tk8.5
export TCL_LIBRARY
export TK_LIBRARY
LD_LIBRARY_PATH=$dirname:$dirname/python/lib:$LD_LIBRARY_PATH
They point to a non-existing pythong directory in "$dirname". Is that the way it's supposed to be?