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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to