undefined reference to `gcry_check_version' , what's wrong?-Collection of common programming errors

cmake ..

make

then failed to build.

the error message is as follows:

[ 96%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-color.o
[ 97%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-key.o
[ 97%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-main.o
[ 98%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-mouse.o
[ 99%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-term.o
[100%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-window.o
Linking C executable weechat-curses
../../core/libweechat_core.a(wee-network.o): In function `network_init':
wee-network.c:(.text+0x1c): undefined reference to `gcry_check_version'
wee-network.c:(.text+0x30): undefined reference to `gcry_control'
wee-network.c:(.text+0x44): undefined reference to `gcry_control'
collect2: ld returned 1 exit status
make[2]: *** [src/gui/curses/weechat-curses] Error 1
make[1]: *** [src/gui/curses/CMakeFiles/weechat-curses.dir/all] Error 2
make: *** [all] Error 2

my os is centos 5.3, which package i should in stall in order to build this software successfully?

Originally posted 2013-11-09 23:33:10.