Hi,

I received this error when compiling mysql-5.7.12 on Nexenta 4.0.4 ( 
OpenSolaris / Illumos ).  To bypass the problem, I commented out the following.

File: /usr/local/mysql-5.7.12/cmd-line-utils/libedit/terminal.c
/*
*#ifdef HAVE_CURSES_H
*#include <curses.h>
*#elif HAVE_NCURSES_H
*#include <ncurses.h>
*#endif
*/
Is there a way to fix this problem in Cmake so that it works without having to 
comment this out ? 

Thanks and Regards,Mariano

Errors I see:

[  4%] Building C object cmd-line-utils/libedit/CMakeFiles/edit.dir/terminal.c.o
cd /usr/local/mysql-5.7.12/cmd-line-utils/libedit && /usr/bin/gcc  
-DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -D_PTHREADS 
-D_REENTRANT -D__EXTENSIONS__ -I/usr/local/mysql-5.7.12/cmd-line-utils/libedit 
-I/usr/local/mysql-5.7.12/include 
-I/usr/local/mysql-5.7.12/extra/rapidjson/include 
-I/usr/local/mysql-5.7.12/libbinlogevents/include 
-I/usr/local/mysql-5.7.12/libbinlogevents/export -I/usr/xpg4/include  -m64 -O3 
-g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF   
-fPIC  -m64 -lstdc++ -R'RIGIN/../lib' -R/usr/lib/amd64 -o 
CMakeFiles/edit.dir/terminal.c.o   -c 
/usr/local/mysql-5.7.12/cmd-line-utils/libedit/terminal.c
In file included from /usr/xpg4/include/curses.h:43,
                 from 
/usr/local/mysql-5.7.12/cmd-line-utils/libedit/terminal.c:60:
/usr/xpg4/include/term.h:596: error: conflicting types for ‘tgoto’
/usr/local/mysql-5.7.12/cmd-line-utils/libedit/sys.h:137: note: previous 
declaration of ‘tgoto’ was here
gmake[2]: *** [cmd-line-utils/libedit/CMakeFiles/edit.dir/terminal.c.o] Error 1
gmake[2]: Leaving directory `/usr/local/mysql-5.7.12'
gmake[1]: *** [cmd-line-utils/libedit/CMakeFiles/edit.dir/all] Error 2
gmake[1]: Leaving directory `/usr/local/mysql-5.7.12’
gmake: *** [all] Error 2

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to