[Bug 1565003] [NEW] snmptrapd fails to build with MySQL 5.7

Lars Tangvald lars.tangvald at oracle.com
Fri Apr 1 16:49:55 UTC 2016


Public bug reported:

MySQL 5.7 restricts which symbols are exported and useable from the
outside.

The function load_defaults, using in apps/snmptrapd_sql.c is not exported from libmysqlclient20, so the build will fail.
However, the function my_load_defaults is exported, and has the same signature except for an extra flags parameter, which can be set to 0.

The attached patch should allow snmptrapd to build with MySQL 5.7

** Affects: mysql-5.7 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: net-snmp (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "patch.txt"
   https://bugs.launchpad.net/bugs/1565003/+attachment/4619651/+files/patch.txt

** Also affects: mysql-5.7 (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in Ubuntu.
https://bugs.launchpad.net/bugs/1565003

Title:
  snmptrapd fails to build with MySQL 5.7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1565003/+subscriptions



More information about the Ubuntu-server-bugs mailing list