BPI-M2P /usr/local/lib/libz.so.1.2.8 no symbol

I am using Ubuntu kernel 4.4 download from your google drive and installed at eMMC. When I try to build opencv 3.4.5 got some error mention that some libz function unreferenced, has to replace from /lib/arm-linux-gnueabihf/. Try check using nm -D /usr/local/lib/libz.so.1.2.8 got no symbols message. The same symptom is coming from libpng12 also

are the libraries at /usr/local/lib usable ? I Tried to check other library using nm -D and always got no symbols message