[MDEV-2862] LP:981281 - [clang] Crash "ha_xtradb.so" (Undefined symbol "_increment_page_get_statistics") Created: 2012-04-14  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: DevZone (Inactive) Assignee: Kristian Nielsen
Resolution: Won't Fix Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug981281.xml    

 Description   

Crash run mysqld width plugin "ha_xtradb.so"

Version: '5.2.10-MariaDB'
Percona XtraDB (http://www.percona.com) 1.0.17-13.0 started;
OS: FreeBSD 9.0-RELEASE amd64

  1. clang++ -v
    FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
    Target: x86_64-unknown-freebsd9.0
    Thread model: posix
  1. service mysql-server restart

==[[ Log ]]==
120414 2:42:27 [ERROR] Can't open shared library '/usr/local/lib/mysql/plugin/ha_xtradb.so' (errno: 2 Undefined symbol "_increment_page_get_statistics")
120414 2:42:27 [ERROR] /usr/local/libexec/mysqld: unknown variable 'innodb_data_home_dir=/var/db/mysql/ibdata'

Plugin Percona XtraDB Only work fine in gcc++ ....

  1. New ports collection makefile for: mariadb-server
  2. Date created: 30 May 2011
  3. Whom: Doug Barton <email address hidden>
    #
  4. $FreeBSD: ports/databases/mariadb-server/Makefile,v 1.15 2012/01/05


 Comments   
Comment by DevZone (Inactive) [ 2012-04-14 ]

[clang plugin] ha_xtradb.so Undefined symbol "_increment_page_get_statistics"
Version: '5.2.10-MariaDB'
Percona XtraDB (http://www.percona.com) 1.0.17-13.0 started;

  1. New ports collection makefile for: mariadb-server
  2. Date created: 30 May 2011
  3. Whom: Doug Barton <dougb@FreeBSD.org>
    #
  4. $FreeBSD: ports/databases/mariadb-server/Makefile,v 1.15 2012/01/05 02:13:36 dougb Exp $

==[[ OS ]]==

  1. uname -rsm
    FreeBSD 9.0-RELEASE amd64

==[[ C++ Version ]]==

  1. clang++ -v
    FreeBSD clang version 3.0 (branches/release_30 142614) 20111021
    Target: x86_64-unknown-freebsd9.0
    Thread model: posix
  1. service mysql-server restart

==[[ Log ]]==
120414 2:42:27 [ERROR] Can't open shared library '/usr/local/lib/mysql/plugin/ha_xtradb.so' (errno: 2 Undefined symbol "_increment_page_get_statistics")
120414 2:42:27 [ERROR] /usr/local/libexec/mysqld: unknown variable 'innodb_data_home_dir=/var/db/mysql/ibdata'

Plugin Percona XtraDB Only work fine in gcc++ ....

Comment by Kristian Nielsen [ 2012-04-16 ]

Re: [clang] Crash "ha_xtradb.so" (Undefined symbol "_increment_page_get_statistics")
Unfortunately we do not support the clang compiler at the moment.

However, we would be happy to accept patches to make clang work, and also happy to try to answer concrete questions to help.

Comment by Vladislav Vaintroub [ 2012-04-16 ]

Re: [clang] Crash "ha_xtradb.so" (Undefined symbol "_increment_page_get_statistics")
just checked, clang/freebsd appears to work in 5.5. I realize that the bug is for 5.2, but here fix is not likely, it might be better to use gcc/g++, or to link xtradb into the server rather than having it as plugin (all MariaDB own distributions do that)

Comment by Rasmus Johansson (Inactive) [ 2012-04-16 ]

Launchpad bug id: 981281

Generated at Thu Feb 08 06:44:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.