A lot of thanks to boox community.
After a lot of effort I found the problem.
Go to booxsdk/code/src/dictionary and edit CMakeLists.txt. Add z into line
TARGET_LINK_LIBRARIES(dictionary onyx_ui ${ADD_LIB})
That means line will be
TARGET_LINK_LIBRARIES(dictionary onyx_ui z ${ADD_LIB})
Then system compiles ok.
BTW this is not the problem when compiling under x64. I have a x86 Debian 6 virtual machine.