[ODBC-135] Build failure due to linker error Created: 2018-02-09 Updated: 2018-06-04 Resolved: 2018-06-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | 2.0.17, 3.0.5 |
| Type: | Task | Priority: | Major |
| Reporter: | Faiz Akhtar | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Arch: Intel 64 bit |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
While trying to build MariaDB Connector ODBC 3.0.2 from source, got the following linking error:
Editing the CMakeLists.txt file fixed the issue.
Attached the build steps used. Is editing CMakeLists.txt necessary? |
| Comments |
| Comment by Lawrin Novitsky [ 2018-02-09 ] | |||||||||||||||
|
We link C/ODBC against Connector/C library, which has zlib compliled in. Please try C/C v.3.0.3 | |||||||||||||||
| Comment by Faiz Akhtar [ 2018-02-09 ] | |||||||||||||||
|
Yes I am using using Connector-C 3.0.3. As you can see in build steps attached, I pasted its source code in libmariadb folder of mariadb server before building. Maybe I am missing some step here, or some configure parameter? | |||||||||||||||
| Comment by Lawrin Novitsky [ 2018-02-09 ] | |||||||||||||||
|
Could you please provide your mariadb_config output. | |||||||||||||||
| Comment by Lawrin Novitsky [ 2018-02-09 ] | |||||||||||||||
|
And thank you for your report! We appreciate this | |||||||||||||||
| Comment by Lawrin Novitsky [ 2018-02-09 ] | |||||||||||||||
|
Server builds c/c without compiled in libz, but mariadb_config is supposed to have -lz then. Probably something went wrong in your scenario | |||||||||||||||
| Comment by Faiz Akhtar [ 2018-02-09 ] | |||||||||||||||
|
-lz seems to be included. | |||||||||||||||
| Comment by Lawrin Novitsky [ 2018-06-04 ] | |||||||||||||||
|
C/C has been made a git sub-module. This should make such linking errors not possible |