Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-57

libmariadb does not export net_buffer_length

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • debian 7.1 i386

    Description

      I try to use perl DBD::mysql with the libmariadb C driver. I use the trunk of the C driver (the 1.0 release on the website misses some error codes which are added in r30).

      When I compile DBD::mysql, all is well but when I try to run tests I get this error:

      #   Failed test 'use DBD::mysql;'
      #   at t/00base.t line 21.
      #     Tried to use 'DBD::mysql'.
      #     Error:  Can't load '/home/michiel/DBDmysql/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /home/michiel/DBDmysql/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: net_buffer_length at /home/michiel/.plenv/versions/5.19.4/lib/perl5/5.19.4/i686-linux/DynaLoader.pm line 190.
      #  at (eval 8) line 2.
      # Compilation failed in require at (eval 8) line 2.

      libmysqlclient does export this symbol:

       nm --dynamic /usr/lib/libmysqlclient.so|grep net_buffer_length
      00000000004ee650 D net_buffer_length

      How to reproduce:

      (install Perl DBI - on debian apt-get install libdbi-perl)
      (compile & install libmaradb from launchpad trunk)
      git clone https://github.com/perl5-dbi/DBD-mysql.git
      cd DBD-mysql
      perl Makefile.PL --testuser=myuser --testpassword=mypass  --mysql_config=/usr/local/bin/mariadb_config 
      make
      make test

      Attachments

        Activity

          People

            georg Georg Richter
            mwb Michiel Beijen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.