Bug 247344 - databases/mariadb-connector-odbc: fix Undefined symbol "OPENSSL_init_ssl"
Summary: databases/mariadb-connector-odbc: fix Undefined symbol "OPENSSL_init_ssl"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Bernard Spil
Depends on:
Reported: 2020-06-17 15:02 UTC by Robert Nagy
Modified: 2020-06-27 19:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brnrd)

fix (959 bytes, patch)
2020-06-17 15:02 UTC, Robert Nagy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Nagy 2020-06-17 15:02:21 UTC
Created attachment 215659 [details]

The mariadb-connector-odbc port requires libssl however it does not
link with it. The attached patch fixes that issue.
Comment 1 Bernard Spil freebsd_committer 2020-06-17 16:49:33 UTC
Thanks for the patch!

Have you reported this upstream as well?
Comment 2 Robert Nagy 2020-06-17 16:51:47 UTC
I did not report it upstream, I will leave that to someone else.
Comment 3 commit-hook freebsd_committer 2020-06-17 17:49:50 UTC
A commit references this bug:

Author: brnrd
Date: Wed Jun 17 17:49:42 UTC 2020
New revision: 539435
URL: https://svnweb.freebsd.org/changeset/ports/539435

  databases/mariadb-connector-odbc: Update to 3.1.7

   * Fix SSL detection as well

  PR:		247344
  Reported by:	Robert Nagy <robert openbsd org>

Comment 4 Bernard Spil freebsd_committer 2020-06-17 17:52:39 UTC
Updated Connector/C and Connector/ODBC to 3.1 branch.

The detection in the configure stage now works proper. If there's still an issue, please reopen and I'll have a look. I didn't find references to OPENSSL_init_ssl in the 3.1.7 code.
Comment 5 Robert Nagy 2020-06-17 18:07:20 UTC
Your commit does not change the fact that the port does not link to libssl.


nm -a work/mariadb-connector-odbc-3.1.7-ga-src/libmaodbc.so | grep OPENSSL
                 U OPENSSL_init_ssl
Comment 6 commit-hook freebsd_committer 2020-06-22 09:49:03 UTC
A commit references this bug:

Author: brnrd
Date: Mon Jun 22 09:48:39 UTC 2020
New revision: 539799
URL: https://svnweb.freebsd.org/changeset/ports/539799

  databases/mariadb-connector-odbc: Fix linking libssl

  PR:		247344
  Submitted by:	Robert Nagy <robert openbsd org>