symbol referencing errors. No output written to myisamlog

Dear Professionals;

I’m trying to install Percona 5.6.31 from source on Solaris 11, but I have gotten errors. Please see below.
I appreciate if you let me know about some hints to proceed. BTW, I did cmake and I followed by an instruction guide.
cmake version is 2.8.12.2.

[ 33%] Building C object storage/myisam/CMakeFiles/myisamlog.dir/myisamlog.c.o
Linking CXX executable myisamlog
Undefined first referenced
symbol in file
socket …/…/mysys/libmysys.a(my_open.c.o)
connect …/…/mysys/libmysys.a(my_open.c.o)
ld: fatal: symbol referencing errors. No output written to myisamlog
collect2: error: ld returned 1 exit status
storage/myisam/CMakeFiles/myisamlog.dir/build.make:95: recipe for target ‘storage/myisam/myisamlog’ failed
make[2]: *** [storage/myisam/myisamlog] Error 1
CMakeFiles/Makefile2:567: recipe for target ‘storage/myisam/CMakeFiles/myisamlog.dir/all’ failed
make[1]: *** [storage/myisam/CMakeFiles/myisamlog.dir/all] Error 2
Makefile:146: recipe for target ‘all’ failed
make: *** [all] Error 2

Regards,