[Maria-discuss] Help to compile MariaDB 10.2.6 - Debian 8.8
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code.
Must work for Debian 8.8 32bit and 64bit
Thank you
Hi, Guillermo!
On Jun 19, Guillermo Céspedes Tabárez wrote:
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code. Must work for Debian 8.8 32bit and 64bit
I suppose, you've tried instructions from the page you've linked in your script? https://mariadb.com/kb/en/mariadb/generic-build-instructions/
How did it fail? What errors did you get?
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hi Sergei,
I have doubts about the flags that I must send in the configuration
Previously I compiled a version of zlib 1.2.11 and openssl 1.1.0f that I want it to use
There are some flag that I must include for security for the production server
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 03:55, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 19, Guillermo Céspedes Tabárez wrote:
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code. Must work for Debian 8.8 32bit and 64bit
I suppose, you've tried instructions from the page you've linked in your script? https://mariadb.com/kb/en/mariadb/generic-build-instructions/
How did it fail? What errors did you get?
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Am 20.06.2017 um 16:47 schrieb Guillermo Cespedes:
Hi Sergei,
I have doubts about the flags that I must send in the configuration
Previously I compiled a version of zlib 1.2.11 and openssl 1.1.0f that I want it to use
There are some flag that I must include for security for the production server
a sentence like "There are some flag that I must include for security for the production server" tells me you should refrain form build at yourself for production and stick with pre-built packages
El 20 jun. 2017, a las 03:55, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 19, Guillermo Céspedes Tabárez wrote:
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code. Must work for Debian 8.8 32bit and 64bit
I suppose, you've tried instructions from the page you've linked in your script? https://mariadb.com/kb/en/mariadb/generic-build-instructions/
How did it fail? What errors did you get?
Debian 8.8 32bit / 64bit - MariaDB 10.2.6
# cd build-maridb
# cmake . -DBUILD_CONFIG=mysql_release —> What flags do you recommend me add: ??? with-ssl ??? with-zlib ??? with-… security production server [32bit | 64 bit]
# make # make install
Thank you
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 11:51, Reindl Harald h.reindl@thelounge.net escribió:
Am 20.06.2017 um 16:47 schrieb Guillermo Cespedes:
Hi Sergei, I have doubts about the flags that I must send in the configuration Previously I compiled a version of zlib 1.2.11 and openssl 1.1.0f that I want it to use There are some flag that I must include for security for the production server
a sentence like "There are some flag that I must include for security for the production server" tells me you should refrain form build at yourself for production and stick with pre-built packages
El 20 jun. 2017, a las 03:55, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 19, Guillermo Céspedes Tabárez wrote:
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code. Must work for Debian 8.8 32bit and 64bit
I suppose, you've tried instructions from the page you've linked in your script? https://mariadb.com/kb/en/mariadb/generic-build-instructions/
How did it fail? What errors did you get?
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Hi, Guillermo!
Okay, you need help with chosing what flags to use?
Use -DBUILD_CONFIG=mysql_release, that's enough.
On Jun 20, Guillermo Cespedes wrote:
Hi Sergei,
I have doubts about the flags that I must send in the configuration
Previously I compiled a version of zlib 1.2.11 and openssl 1.1.0f that I want it to use
There are some flag that I must include for security for the production server
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 03:55, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 19, Guillermo Céspedes Tabárez wrote:
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code. Must work for Debian 8.8 32bit and 64bit
I suppose, you've tried instructions from the page you've linked in your script? https://mariadb.com/kb/en/mariadb/generic-build-instructions/
How did it fail? What errors did you get?
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hello how are you?
When doing the MariaDB compilation it gives me error if I do not have gnutls. After compiling gnutls and their dependencies. MariaDB compiles well.
But I'm interested in compiling MariaDB with OpenSSL and not using gnutls. How do I say this?
My script: https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951 https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 13:38, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
Okay, you need help with chosing what flags to use?
Use -DBUILD_CONFIG=mysql_release, that's enough.
On Jun 20, Guillermo Cespedes wrote:
Hi Sergei,
I have doubts about the flags that I must send in the configuration
Previously I compiled a version of zlib 1.2.11 and openssl 1.1.0f that I want it to use
There are some flag that I must include for security for the production server
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 03:55, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 19, Guillermo Céspedes Tabárez wrote:
Hello I need help to add in my script ( https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951#file-install... ) the compilation of "MariaDB 10.2.6" from its source code. Must work for Debian 8.8 32bit and 64bit
I suppose, you've tried instructions from the page you've linked in your script? https://mariadb.com/kb/en/mariadb/generic-build-instructions/
How did it fail? What errors did you get?
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hi, Guillermo!
On Jun 20, Guillermo Cespedes wrote:
Hello how are you?
When doing the MariaDB compilation it gives me error if I do not have gnutls. After compiling gnutls and their dependencies. MariaDB compiles well.
But I'm interested in compiling MariaDB with OpenSSL and not using gnutls. How do I say this?
Use -DWITH_SSL=system
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Thank you.
After compiled
Do I have any way to verify that this is using OpenSSL and not gnutls?
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 19:07, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 20, Guillermo Cespedes wrote:
Hello how are you?
When doing the MariaDB compilation it gives me error if I do not have gnutls. After compiling gnutls and their dependencies. MariaDB compiles well.
But I'm interested in compiling MariaDB with OpenSSL and not using gnutls. How do I say this?
Use -DWITH_SSL=system
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Am 21.06.2017 um 00:10 schrieb Guillermo Cespedes:
Thank you.
After compiled
Do I have any way to verify that this is using OpenSSL and not gnutls?
man ldd man grep
El 20 jun. 2017, a las 19:07, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 20, Guillermo Cespedes wrote:
Hello how are you?
When doing the MariaDB compilation it gives me error if I do not have gnutls. After compiling gnutls and their dependencies. MariaDB compiles well.
But I'm interested in compiling MariaDB with OpenSSL and not using gnutls. How do I say this?
Use -DWITH_SSL=system
Hi, Sergei
It worked for me now so well.
Thank you all of you.
# groupadd mysql # useradd -c "MySQL Server" -g mysql -s /bin/false mysql
# cmake . -DBUILD_CONFIG=mysql_release -DWITH_ZLIB=system -DWITH_SSL=system -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_spanish_ci
# make # make install
# cd /usr/local/mysql
# ./scripts/mysql_install_db --user=mysql
# chown -R root . # chown -R mysql data
# cp ./support-files/mysql.server /etc/init.d/mysql # chmod +x /etc/init.d/mysql # update-rc.d mysql defaults
# service mysql start
# ./bin/mysqladmin -u root password
# ./bin/mysql_secure_installation
# cd ./mysql-test
# perl ./mysql-test-run.pl
# service mysql status
-- Found ZLIB: /usr/local/lib/libz.so (found version "1.2.11") ... -- Found OpenSSL: /usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so (found version "1.1.0f") -- Looking for SHA512_DIGEST_LENGTH -- Looking for SHA512_DIGEST_LENGTH - found -- OPENSSL_INCLUDE_DIR = /usr/local/include -- OPENSSL_SSL_LIBRARY = /usr/local/lib/libssl.so -- OPENSSL_CRYPTO_LIBRARY = /usr/local/lib/libcrypto.so -- OPENSSL_VERSION = 1.1.0f -- SSL_LIBRARIES = /usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so;dl
The OpenSSL and zlib that I wanted. Good.
I am investigating because after compiling the configuration file "my.cnf" is not created.
# find / -name my.cnf
Maybe I have to create it myself, or run some script.
I have to read about this configuration file and how to have a stable and secure configuration
Only error in mysql-test-run.pl
rpl.rpl_test_framework 'stmt' [ fail ]
CURRENT_TEST: rpl.rpl_test_framework /usr/local/mysql/bin/mysqltest: Out of memory (Needed 1048576 bytes) mysqltest: In included file "./include/end_include_file.inc": included from ./include/wait_for_slave_param.inc at line 124: included from ./include/sync_io_with_master.inc at line 36: included from ./include/sync_slave_io_with_master.inc at line 46: included from ./include/rpl_sync.inc at line 116: included from ./extra/rpl_tests/rpl_test_framework.inc at line 71: included from /usr/local/mysql/mysql-test/suite/rpl/t/rpl_test_framework.test at line 103: At line 35: Out of memory
Guillermo Céspedes Full Stack Developer
El 20 jun. 2017, a las 20:12, Sergei Golubchik serg@mariadb.org escribió:
Hi, Guillermo!
On Jun 20, Guillermo Cespedes wrote:
Thank you.
After compiled
Do I have any way to verify that this is using OpenSSL and not gnutls?
Yes. ldd mysqld. Or SHOW VARIABLES LIKE 'version_ssl_library';
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Am 21.06.2017 um 21:00 schrieb Guillermo Cespedes:
Only error in mysql-test-run.pl
rpl.rpl_test_framework 'stmt' [ fail ]
CURRENT_TEST: rpl.rpl_test_framework /usr/local/mysql/bin/mysqltest: Out of memory (Needed 1048576 bytes) mysqltest: In included file "./include/end_include_file.inc": included from ./include/wait_for_slave_param.inc at line 124: included from ./include/sync_io_with_master.inc at line 36: included from ./include/sync_slave_io_with_master.inc at line 46: included from ./include/rpl_sync.inc at line 116: included from ./extra/rpl_tests/rpl_test_framework.inc at line 71: included from /usr/local/mysql/mysql-test/suite/rpl/t/rpl_test_framework.test at line 103: At line 35: Out of memory
you need plenty of RAM for the testsuite
Hi,
I share information about the error when compiling MariaDB 10.2.6 on Debian 8.8 i686
The problem occurs when adding any of these packages: uuid-dev libc6-dev libc-dbg libpam0g-dev liblzo2-dev lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev libbsd-dev valgrind kytea libkytea-dev
I have not had time to try it but I suspect it's because of the package: liblzo2-dev
Similar bug: https://mariadb.atlassian.net/browse/MDEV-9000 https://mariadb.atlassian.net/browse/MDEV-9000
- Linux framework 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) i686 GNU/Linux
# apt-get -y install build-essential libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev \ cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ libjemalloc-dev cython python3-dev python-setuptools libaio-dev libncurses5-dev \ m4 libunistring-dev libgmp-dev trousers libidn2-0 libunbound-dev \ bison libbz2-dev libmcrypt-dev libicu-dev libltdl-dev libjpeg-dev libpng-dev libpspell-dev libreadline-dev \ uuid-dev libc6-dev libc-dbg libpam0g-dev liblzo2-dev lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev \ libbsd-dev valgrind kytea libkytea-dev cron
# cmake . -DBUILD_CONFIG=mysql_release -DWITH_ZLIB=system -DWITH_SSL=system -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_spanish_ci
# make
# make install
Error:
[ 25%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc: In function ‘byte* fil_compress_page(fil_space_t*, byte*, byte*, ulint, ulint, ulint, bool, ulint*, byte*)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:176:54: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] buf, len, out_buf+header_len, &write_size, lzo_mem); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:65:0: /usr/include/lzo/lzo1x.h:105:1: note: initializing argument 4 of ‘int lzo1x_1_15_compress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_1_15_compress ( const lzo_bytep src, lzo_uint src_len, ^ /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc: In function ‘void fil_decompress_page(byte*, byte*, ulong, ulint*, bool)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:520:52: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] actual_size,(unsigned char *)in_buf, &olen, NULL); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:65:0: /usr/include/lzo/lzo1x.h:56:1: note: initializing argument 4 of ‘int lzo1x_decompress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len, ^ storage/innobase/CMakeFiles/innobase.dir/build.make:721: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o' failed make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o] Error 1 CMakeFiles/Makefile2:7019: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/all' failed make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2
regards.
Hi,
It seems that they are missing these files or can not find them.
#include <lz4.h> #include <lzma.h> #include <crack.h>
Guillermo Céspedes Full Stack Developer
El 22 jun. 2017, a las 19:04, Guillermo Cespedes dev.dertin@gmail.com escribió:
Hi,
I share information about the error when compiling MariaDB 10.2.6 on Debian 8.8 i686
The problem occurs when adding any of these packages: uuid-dev libc6-dev libc-dbg libpam0g-dev liblzo2-dev lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev libbsd-dev valgrind kytea libkytea-dev
I have not had time to try it but I suspect it's because of the package: liblzo2-dev
Similar bug: https://mariadb.atlassian.net/browse/MDEV-9000 https://mariadb.atlassian.net/browse/MDEV-9000
- Linux framework 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) i686 GNU/Linux
# apt-get -y install build-essential libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev \ cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ libjemalloc-dev cython python3-dev python-setuptools libaio-dev libncurses5-dev \ m4 libunistring-dev libgmp-dev trousers libidn2-0 libunbound-dev \ bison libbz2-dev libmcrypt-dev libicu-dev libltdl-dev libjpeg-dev libpng-dev libpspell-dev libreadline-dev \ uuid-dev libc6-dev libc-dbg libpam0g-dev liblzo2-dev lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev \ libbsd-dev valgrind kytea libkytea-dev cron
# cmake . -DBUILD_CONFIG=mysql_release -DWITH_ZLIB=system -DWITH_SSL=system -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_spanish_ci
# make
# make install
Error:
[ 25%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc http://fil0pagecompress.cc/: In function ‘byte* fil_compress_page(fil_space_t*, byte*, byte*, ulint, ulint, ulint, bool, ulint*, byte*)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:176 http://fil0pagecompress.cc:176/:54: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] buf, len, out_buf+header_len, &write_size, lzo_mem); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:65 http://fil0pagecompress.cc:65/:0: /usr/include/lzo/lzo1x.h:105:1: note: initializing argument 4 of ‘int lzo1x_1_15_compress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_1_15_compress ( const lzo_bytep src, lzo_uint src_len, ^ /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc http://fil0pagecompress.cc/: In function ‘void fil_decompress_page(byte*, byte*, ulong, ulint*, bool)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:520 http://fil0pagecompress.cc:520/:52: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] actual_size,(unsigned char *)in_buf, &olen, NULL); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:65 http://fil0pagecompress.cc:65/:0: /usr/include/lzo/lzo1x.h:56:1: note: initializing argument 4 of ‘int lzo1x_decompress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len, ^ storage/innobase/CMakeFiles/innobase.dir/build.make:721: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o' failed make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o] Error 1 CMakeFiles/Makefile2:7019: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/all' failed make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2
regards.
Hi,
I need to install the following packages:
liblz4-dev liblzma-dev libcrack2-dev
I try again.
2017-06-22 19:26 GMT-03:00 Guillermo Cespedes dev.dertin@gmail.com:
Hi,
It seems that they are missing these files or can not find them.
#include <lz4.h> #include <lzma.h> #include <crack.h>
Guillermo Céspedes Full Stack Developer
El 22 jun. 2017, a las 19:04, Guillermo Cespedes dev.dertin@gmail.com escribió:
Hi,
I share information about the error when compiling MariaDB 10.2.6 on Debian 8.8 i686
The problem occurs when adding any of these packages: uuid-dev libc6-dev libc-dbg libpam0g-dev *liblzo2-dev* lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev libbsd-dev valgrind kytea libkytea-dev
I have not had time to try it but I suspect it's because of the package: liblzo2-dev
Similar bug: https://mariadb.atlassian.net/browse/MDEV-9000
- Linux framework 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) i686 GNU/Linux
# apt-get -y install build-essential libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev \ cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ libjemalloc-dev cython python3-dev python-setuptools libaio-dev libncurses5-dev \ m4 libunistring-dev libgmp-dev trousers libidn2-0 libunbound-dev \ bison libbz2-dev libmcrypt-dev libicu-dev libltdl-dev libjpeg-dev libpng-dev libpspell-dev libreadline-dev \ uuid-dev libc6-dev libc-dbg libpam0g-dev *liblzo2-dev* lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev \ libbsd-dev valgrind kytea libkytea-dev cron
# cmake . -DBUILD_CONFIG=mysql_release -DWITH_ZLIB=system -DWITH_SSL=system -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_ spanish_ci
# make
# make install
*Error*:
[ 25%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/fil/ fil0pagecompress.cc.o /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/ fil0pagecompress.cc: In function ‘byte* fil_compress_page(fil_space_t*, byte*, byte*, ulint, ulint, ulint, bool, ulint*, byte*)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/ fil0pagecompress.cc:176:54: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] buf, len, out_buf+header_len, &write_size, lzo_mem); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/ fil/fil0pagecompress.cc:65:0: /usr/include/lzo/lzo1x.h:105:1: note: initializing argument 4 of ‘int lzo1x_1_15_compress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_1_15_compress ( const lzo_bytep src, lzo_uint src_len, ^ /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/ fil0pagecompress.cc: In function ‘void fil_decompress_page(byte*, byte*, ulong, ulint*, bool)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/ fil0pagecompress.cc:520:52: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] actual_size,(unsigned char *)in_buf, &olen, NULL); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/ fil/fil0pagecompress.cc:65:0: /usr/include/lzo/lzo1x.h:56:1: note: initializing argument 4 of ‘int lzo1x_decompress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len, ^ storage/innobase/CMakeFiles/innobase.dir/build.make:721: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o' failed make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o] Error 1 CMakeFiles/Makefile2:7019: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/all' failed make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2
regards.
Hi,
It does not work.
- Can it be a problem with the versions of the latest packages I added to the system?
Detail of some of the installed packages:
—
Package: libpam0g-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 307 Maintainer: Steve Langasek vorlon@debian.org Architecture: i386 Multi-Arch: same Source: pam Version: 1.1.8-3.1+deb8u2 Provides: libpam-dev Depends: libpam0g (= 1.1.8-3.1+deb8u2), libc6-dev | libc-dev
—
Package: liblz4-dev Status: install ok installed Priority: extra Section: libdevel Installed-Size: 60 Maintainer: Nobuhiro Iwamatsu iwamatsu@debian.org Architecture: i386 Multi-Arch: same Source: lz4 Version: 0.0~r122-2 Depends: liblz4-1 (= 0.0~r122-2)
—
Package: liblzma-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 554 Maintainer: Jonathan Nieder jrnieder@gmail.com Architecture: i386 Multi-Arch: same Source: xz-utils (5.1.1alpha+20120614-2) Version: 5.1.1alpha+20120614-2+b3 Depends: liblzma5 (= 5.1.1alpha+20120614-2+b3)
—
Package: liblzo2-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 751 Maintainer: Peter Eisentraut petere@debian.org Architecture: i386 Multi-Arch: same Source: lzo2 Version: 2.08-1.2 Replaces: liblzo-dev Depends: liblzo2-2 (= 2.08-1.2), libc6-dev
—
Package: lzma-dev Status: install ok installed Priority: optional Section: utils Installed-Size: 186 Maintainer: Mohammed Adnène Trojette adn+deb@diwi.org Architecture: all Source: lzma Version: 9.22-2 Depends: zlib1g-dev
—
Package: libzmq-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 801 Maintainer: Laszlo Boszormenyi (GCS) gcs@debian.org Architecture: i386 Multi-Arch: same Source: zeromq Version: 2.2.0+dfsg-6 Depends: libzmq1 (= 2.2.0+dfsg-6)
—
Package: libcrack2-dev Status: install ok installed Priority: extra Section: libdevel Installed-Size: 61 Maintainer: Jan Dittberner jandd@debian.org Architecture: i386 Source: cracklib2 Version: 2.9.2-1 Depends: libcrack2 (= 2.9.2-1)
—
Package: libstemmer-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 455 Maintainer: Stefano Rivera stefanor@debian.org Architecture: i386 Multi-Arch: same Source: snowball Version: 0+svn585-1 Depends: libstemmer0d (= 0+svn585-1)
—
Package: libbsd-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 397 Maintainer: Guillem Jover guillem@debian.org Architecture: i386 Multi-Arch: same Source: libbsd Version: 0.7.0-2 Replaces: libfreebsd-dev (<< 0.0-8) Depends: libbsd0 (= 0.7.0-2)
—
Package: valgrind Status: install ok installed Priority: optional Section: devel Installed-Size: 50051 Maintainer: Alessandro Ghedini ghedo@debian.org Architecture: i386 Version: 1:3.10.0-4 Replaces: valgrind-dev Depends: libc6 (>= 2.16), libc6-dbg Recommends: valgrind-dbg, gdb Suggests: valgrind-mpi, kcachegrind, alleyoop, valkyrie (>> 1.3.0) Breaks: valgrind-dev Conffiles: /etc/bash_completion.d/valgrind d6c26aad24178788893042949d053999
—
Package: kytea Status: install ok installed Priority: optional Section: misc Installed-Size: 24 Maintainer: Koichi Akabe vbkaisetsu@gmail.com Architecture: i386 Version: 0.4.6+dfsg-2 Depends: libc6 (>= 2.1.3), libgcc1 (>= 1:4.1.1), libkytea0, libstdc++6 (>= 4.1.1)
—
Package: libkytea-dev Status: install ok installed Priority: optional Section: libdevel Installed-Size: 85 Maintainer: Koichi Akabe vbkaisetsu@gmail.com Architecture: i386 Source: kytea Version: 0.4.6+dfsg-2 Depends: libkytea0 (= 0.4.6+dfsg-2)
—
# grep HAVE_LZ4 CMakeCache.txt
HAVE_LZ4_COMPRESS_DEFAULT:INTERNAL= HAVE_LZ4_H:INTERNAL=1 HAVE_LZ4_SHARED_LIB:INTERNAL=1
—
# grep NOTFOUND CMakeCache.txt
AWS_CPP_SDK_CORE:FILEPATH=AWS_CPP_SDK_CORE-NOTFOUND AWS_CPP_SDK_INCLUDE_DIR:PATH=AWS_CPP_SDK_INCLUDE_DIR-NOTFOUND AWS_CPP_SDK_KMS:FILEPATH=AWS_CPP_SDK_KMS-NOTFOUND Boost_DIR:PATH=Boost_DIR-NOTFOUND Boost_INCLUDE_DIR:PATH=Boost_INCLUDE_DIR-NOTFOUND CHECKMODULE:FILEPATH=CHECKMODULE-NOTFOUND CURSES_EXTRA_LIBRARY:FILEPATH=CURSES_EXTRA_LIBRARY-NOTFOUND DTRACE:FILEPATH=DTRACE-NOTFOUND GRN_MECAB_CONFIG_ABSOLUTE_PATH:FILEPATH=GRN_MECAB_CONFIG_ABSOLUTE_PATH-NOTFOUND GTAR_EXECUTABLE:FILEPATH=GTAR_EXECUTABLE-NOTFOUND ICONV_LIBRARIES:FILEPATH=ICONV_LIBRARIES-NOTFOUND JAVA_AWT_INCLUDE_PATH:PATH=JAVA_AWT_INCLUDE_PATH-NOTFOUND JAVA_AWT_LIBRARY:FILEPATH=JAVA_AWT_LIBRARY-NOTFOUND JAVA_INCLUDE_PATH:PATH=JAVA_INCLUDE_PATH-NOTFOUND JAVA_INCLUDE_PATH2:PATH=JAVA_INCLUDE_PATH2-NOTFOUND JAVA_JVM_LIBRARY:FILEPATH=JAVA_JVM_LIBRARY-NOTFOUND Java_JAR_EXECUTABLE:FILEPATH=Java_JAR_EXECUTABLE-NOTFOUND Java_JAVAC_EXECUTABLE:FILEPATH=Java_JAVAC_EXECUTABLE-NOTFOUND Java_JAVADOC_EXECUTABLE:FILEPATH=Java_JAVADOC_EXECUTABLE-NOTFOUND Java_JAVAH_EXECUTABLE:FILEPATH=Java_JAVAH_EXECUTABLE-NOTFOUND Java_JAVA_EXECUTABLE:FILEPATH=Java_JAVA_EXECUTABLE-NOTFOUND LIBEDIT_INCLUDE_DIR:PATH=LIBEDIT_INCLUDE_DIR-NOTFOUND LIBEDIT_LIBRARY:FILEPATH=LIBEDIT_LIBRARY-NOTFOUND LIBXML2_XMLLINT_EXECUTABLE:FILEPATH=LIBXML2_XMLLINT_EXECUTABLE-NOTFOUND ODBC_INCLUDE_DIR:PATH=ODBC_INCLUDE_DIR-NOTFOUND ODBC_LIBRARY:FILEPATH=ODBC_LIBRARY-NOTFOUND RUBY:FILEPATH=RUBY-NOTFOUND SEMODULE_PACKAGE:FILEPATH=SEMODULE_PACKAGE-NOTFOUND Thrift_INCLUDE_DIRS:PATH=Thrift_INCLUDE_DIRS-NOTFOUND Thrift_LIBS:FILEPATH=Thrift_LIBS-NOTFOUND _Boost_INCLUDE_DIR_LAST:INTERNAL=Boost_INCLUDE_DIR-NOTFOUND
Multiple errors, in files and functions that do not exist. Attached log file.
Guillermo Céspedes Full Stack Developer
El 23 jun. 2017, a las 12:07, Guillermo Céspedes Tabárez dev.dertin@gmail.com escribió:
Hi,
I need to install the following packages:
liblz4-dev liblzma-dev libcrack2-dev
I try again.
2017-06-22 19:26 GMT-03:00 Guillermo Cespedes dev.dertin@gmail.com: Hi,
It seems that they are missing these files or can not find them.
#include <lz4.h> #include <lzma.h> #include <crack.h>
Guillermo Céspedes Full Stack Developer
El 22 jun. 2017, a las 19:04, Guillermo Cespedes dev.dertin@gmail.com escribió:
Hi,
I share information about the error when compiling MariaDB 10.2.6 on Debian 8.8 i686
The problem occurs when adding any of these packages: uuid-dev libc6-dev libc-dbg libpam0g-dev liblzo2-dev lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev libbsd-dev valgrind kytea libkytea-dev
I have not had time to try it but I suspect it's because of the package: liblzo2-dev
Similar bug: https://mariadb.atlassian.net/browse/MDEV-9000
- Linux framework 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) i686 GNU/Linux
# apt-get -y install build-essential libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev \ cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ libjemalloc-dev cython python3-dev python-setuptools libaio-dev libncurses5-dev \ m4 libunistring-dev libgmp-dev trousers libidn2-0 libunbound-dev \ bison libbz2-dev libmcrypt-dev libicu-dev libltdl-dev libjpeg-dev libpng-dev libpspell-dev libreadline-dev \ uuid-dev libc6-dev libc-dbg libpam0g-dev liblzo2-dev lzma-dev libzmq-dev libmsgpack-dev libstemmer-dev \ libbsd-dev valgrind kytea libkytea-dev cron
# cmake . -DBUILD_CONFIG=mysql_release -DWITH_ZLIB=system -DWITH_SSL=system -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_spanish_ci
# make
# make install
Error:
[ 25%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc: In function ‘byte* fil_compress_page(fil_space_t*, byte*, byte*, ulint, ulint, ulint, bool, ulint*, byte*)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:176:54: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] buf, len, out_buf+header_len, &write_size, lzo_mem); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:65:0: /usr/include/lzo/lzo1x.h:105:1: note: initializing argument 4 of ‘int lzo1x_1_15_compress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_1_15_compress ( const lzo_bytep src, lzo_uint src_len, ^ /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc: In function ‘void fil_decompress_page(byte*, byte*, ulong, ulint*, bool)’: /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:520:52: error: invalid conversion from ‘ulint* {aka unsigned int*}’ to ‘lzo_uint* {aka long unsigned int*}’ [-fpermissive] actual_size,(unsigned char *)in_buf, &olen, NULL); ^ In file included from /var/tmp/mariadb_build/mariadb_src/storage/innobase/fil/fil0pagecompress.cc:65:0: /usr/include/lzo/lzo1x.h:56:1: note: initializing argument 4 of ‘int lzo1x_decompress(const unsigned char*, lzo_uint, unsigned char*, lzo_uint*, void*)’ lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len, ^ storage/innobase/CMakeFiles/innobase.dir/build.make:721: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o' failed make[2]: *** [storage/innobase/CMakeFiles/innobase.dir/fil/fil0pagecompress.cc.o] Error 1 CMakeFiles/Makefile2:7019: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/all' failed make[1]: *** [storage/innobase/CMakeFiles/innobase.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: *** [all] Error 2
regards.
participants (4)
-
Guillermo Cespedes
-
Guillermo Céspedes Tabárez
-
Reindl Harald
-
Sergei Golubchik