[CONC-491] libmariadb fails to build on OpenBSD due to undefined iconv symbols Created: 2020-08-29  Updated: 2021-02-15  Resolved: 2021-02-09

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1.10

Type: Task Priority: Major
Reporter: Brad Smith Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

OpenBSD



 Description   

libmariadb currently defines LIBICONV_PLUG to workaround a Linux issue globally but this breaks building on any OS that uses GNU iconv as a non native implementation, as in part of GLIBC for example.

From the iconv.h header..

#ifndef LIBICONV_PLUG
#define iconv_open libiconv_open
#endif
#ifndef LIBICONV_PLUG
#define iconv libiconv
#endif
#ifndef LIBICONV_PLUG
#define iconv_close libiconv_close
#endif

Which results in undefined symbols.



 Comments   
Comment by Brad Smith [ 2020-09-09 ]

I created a pull request.

https://github.com/mariadb-corporation/mariadb-connector-c/pull/147

Comment by Georg Richter [ 2020-10-06 ]

Hi Brad,

can you please try with latest stable version? We change build option in 3.1,10 so by default C/C will be build without iconv.

Comment by Brad Smith [ 2021-02-09 ]

We have MariaDB 10.5.8 in our ports tree and it is building fine.

Generated at Thu Feb 08 03:05:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.