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


- 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.