Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.13
-
None
-
Gentoo; gcc-6.4.0, glibc-2.25-r10, binutils-libs-2.29.1-r1
Description
When compiling 10.2.13, the following error appears:
/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql/mysys/my_addr_resolve.c:63:31: error: ‘offset’ undeclared (first use in this function)
|
bfd_vma addr= (intptr)ptr - offset;
|
^~~~~~
|
/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql/mysys/my_addr_resolve.c:63:31: note: each undeclared identifier is reported only once for each function it appears in
|
/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql/mysys/my_addr_resolve.c: In function ‘my_addr_resolve_init’:
|
/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql/mysys/my_addr_resolve.c:109:7: error: ‘offset’ undeclared (first use in this function)
|
offset= lm->l_addr;
|
^~~~~~
|
/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql/mysys/my_addr_resolve.c:109:17: error: dereferencing pointer to incomplete type ‘struct link_map’
|
offset= lm->l_addr;
|
^~
|
CMake options:
cmake -C /var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql-abi_x86_64.amd64/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_C_FLAGS_RELWITHDEBINFO=-DNDEBUG -DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr -DMYSQL_DATADIR=/var/lib/mysql -DSYSCONFDIR=/etc/mysql -DINSTALL_BINDIR=bin -DINSTALL_DOCDIR=share/doc/mariadb-10.2.13 -DINSTALL_DOCREADMEDIR=share/doc/mariadb-10.2.13 -DINSTALL_INCLUDEDIR=include/mysql -DINSTALL_INFODIR=share/info -DINSTALL_LIBDIR=lib64 -DINSTALL_MANDIR=share/man -DINSTALL_MYSQLSHAREDIR=share/mariadb -DINSTALL_PLUGINDIR=lib64/mariadb/plugin -DINSTALL_SCRIPTDIR=share/mariadb/scripts -DINSTALL_MYSQLDATADIR=/var/lib/mysql -DINSTALL_SBINDIR=sbin -DINSTALL_SUPPORTFILESDIR=/usr/share/mariadb -DWITH_COMMENT=Gentoo Linux mariadb-10.2.13 -DWITH_UNIT_TESTS=ON -DWITH_LIBEDIT=0 -DWITH_ZLIB=system -DWITHOUT_LIBWRAP=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock -DINSTALL_UNIX_ADDRDIR=/var/run/mysqld/mysqld.sock -DWITH_DEFAULT_COMPILER_OPTIONS=0 -DWITH_DEFAULT_FEATURE_SET=0 -DINSTALL_SYSTEMD_UNITDIR=/lib/systemd/system -DENABLE_STATIC_LIBS=ON -DSTACK_DIRECTION=-1 -DPKG_CONFIG_EXECUTABLE=/usr/bin/x86_64-pc-linux-gnu-pkg-config -DPLUGIN_AUTH_GSSAPI=DYNAMIC -DAUTH_GSSAPI_PLUGIN_TYPE=DYNAMIC -DCONC_WITH_EXTERNAL_ZLIB=YES -DWITH_EXTERNAL_ZLIB=YES -DSUFFIX_INSTALL_DIR= -DWITH_UNITTEST=OFF -DINSTALL_MYSQLTESTDIR=share/mariadb/mysql-test -DWITH_SSL=system -DWITH_READLINE=0 -DNOT_FOR_DISTRIBUTION=1 -DENABLE_DTRACE=no -DWITH_JEMALLOC=system -DWITH_PCRE=system -DPLUGIN_OQGRAPH=NO -DPLUGIN_SPHINX=NO -DPLUGIN_TOKUDB=NO -DPLUGIN_AUTH_PAM=YES -DPLUGIN_CRACKLIB_PASSWORD_CHECK=YES -DPLUGIN_CASSANDRA=NO -DPLUGIN_SEQUENCE=YES -DPLUGIN_SPIDER=YES -DPLUGIN_CONNECT=YES -DCONNECT_WITH_MYSQL=1 -DCONNECT_WITH_LIBXML2=yes -DCONNECT_WITH_ODBC=no -DCONNECT_WITH_JDBC=no -DCONNECT_WITH_MONGO=OFF -DWITH_WSREP=no -DWITH_INNODB_LZ4=OFF -DWITH_INNODB_LZO=OFF -DWITH_INNODB_SNAPPY=OFF -DPLUGIN_MROONGA=NO -DPLUGIN_AUTH_GSSAPI=DYNAMIC -DWITH_MARIABACKUP=ON -DWITH_LIBARCHIVE=ON -DINSTALL_SQLBENCHDIR=share/mariadb -DPLUGIN_ROCKSDB=NO -DWITH_SYSTEMD=no -DWITH_NUMA=OFF -DSKIP_TESTS=ON -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql -DDISABLE_SHARED=NO -DWITH_DEBUG=no -DWITH_EMBEDDED_SERVER=no -DWITH_PROFILING=yes -DWITH_SAFEMALLOC=OFF -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_CSV_STORAGE_ENGINE=1 -DWITH_HEAP_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAMMRG_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql-abi_x86_64.amd64/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql-abi_x86_64.amd64/gentoo_toolchain.cmake /var/tmp/portage/dev-db/mariadb-10.2.13/work/mysql