EnterpriseDB / mysql_fdw

PostgreSQL foreign data wrapper for MySQL
Other
533 stars 163 forks source link

Build failure with gcc 10 (-fno-common) #199

Closed df7cb closed 4 years ago

df7cb commented 4 years ago

In gcc 10, -fno-common is the default and building fails:

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -g -O2 -fdebug-prefix-map=/home/myon/projects/postgresql/postgresql-mysql-fdw/postgresql-mysql-fdw.git=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -shared -o mysql_fdw.so connection.o option.o deparse.o mysql_query.o mysql_fdw.o -L/usr/lib/x86_64-linux-gnu  -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-10/lib  -L/usr/lib/x86_64-linux-gnu/mit-krb5 -Wl,--as-needed -g -O2 -fdebug-prefix-map=/home/myon/projects/postgresql/postgresql-mysql-fdw/postgresql-mysql-fdw.git=. -fstack-protector-strong -Wformat -Werror=format-security  
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:208: multiple definition of `_mysql_num_rows'; connection.o:./build-12/./mysql_fdw.h:208: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:207: multiple definition of `_mysql_num_fields'; connection.o:./build-12/./mysql_fdw.h:207: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:206: multiple definition of `_mysql_errno'; connection.o:./build-12/./mysql_fdw.h:206: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:205: multiple definition of `_mysql_stmt_errno'; connection.o:./build-12/./mysql_fdw.h:205: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:203: multiple definition of `_mysql_get_proto_info'; connection.o:./build-12/./mysql_fdw.h:203: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:202: multiple definition of `_mysql_get_server_info'; connection.o:./build-12/./mysql_fdw.h:202: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:201: multiple definition of `_mysql_get_host_info'; connection.o:./build-12/./mysql_fdw.h:201: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:196: multiple definition of `_mysql_real_connect'; connection.o:./build-12/./mysql_fdw.h:196: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:193: multiple definition of `_mysql_ssl_set'; connection.o:./build-12/./mysql_fdw.h:193: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:192: multiple definition of `_mysql_init'; connection.o:./build-12/./mysql_fdw.h:192: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:191: multiple definition of `_mysql_store_result'; connection.o:./build-12/./mysql_fdw.h:191: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:190: multiple definition of `_mysql_close'; connection.o:./build-12/./mysql_fdw.h:190: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:189: multiple definition of `_mysql_error'; connection.o:./build-12/./mysql_fdw.h:189: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:188: multiple definition of `_mysql_fetch_fields'; connection.o:./build-12/./mysql_fdw.h:188: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:187: multiple definition of `_mysql_fetch_field'; connection.o:./build-12/./mysql_fdw.h:187: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:186: multiple definition of `_mysql_fetch_row'; connection.o:./build-12/./mysql_fdw.h:186: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:185: multiple definition of `_mysql_stmt_store_result'; connection.o:./build-12/./mysql_fdw.h:185: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:184: multiple definition of `_mysql_stmt_result_metadata'; connection.o:./build-12/./mysql_fdw.h:184: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:183: multiple definition of `_mysql_stmt_init'; connection.o:./build-12/./mysql_fdw.h:183: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:181: multiple definition of `_mysql_stmt_bind_result'; connection.o:./build-12/./mysql_fdw.h:181: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:180: multiple definition of `_mysql_stmt_bind_param'; connection.o:./build-12/./mysql_fdw.h:180: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:179: multiple definition of `_mysql_free_result'; connection.o:./build-12/./mysql_fdw.h:179: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:178: multiple definition of `_mysql_stmt_reset'; connection.o:./build-12/./mysql_fdw.h:178: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:177: multiple definition of `_mysql_stmt_close'; connection.o:./build-12/./mysql_fdw.h:177: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:174: multiple definition of `_mysql_stmt_attr_set'; connection.o:./build-12/./mysql_fdw.h:174: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:173: multiple definition of `_mysql_query'; connection.o:./build-12/./mysql_fdw.h:173: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:172: multiple definition of `_mysql_stmt_fetch'; connection.o:./build-12/./mysql_fdw.h:172: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:171: multiple definition of `_mysql_stmt_execute'; connection.o:./build-12/./mysql_fdw.h:171: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:169: multiple definition of `_mysql_stmt_prepare'; connection.o:./build-12/./mysql_fdw.h:169: first defined here
/usr/bin/ld: option.o:./build-12/./mysql_fdw.h:167: multiple definition of `_mysql_options'; connection.o:./build-12/./mysql_fdw.h:167: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:208: multiple definition of `_mysql_num_rows'; connection.o:./build-12/./mysql_fdw.h:208: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:207: multiple definition of `_mysql_num_fields'; connection.o:./build-12/./mysql_fdw.h:207: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:206: multiple definition of `_mysql_errno'; connection.o:./build-12/./mysql_fdw.h:206: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:205: multiple definition of `_mysql_stmt_errno'; connection.o:./build-12/./mysql_fdw.h:205: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:203: multiple definition of `_mysql_get_proto_info'; connection.o:./build-12/./mysql_fdw.h:203: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:202: multiple definition of `_mysql_get_server_info'; connection.o:./build-12/./mysql_fdw.h:202: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:201: multiple definition of `_mysql_get_host_info'; connection.o:./build-12/./mysql_fdw.h:201: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:196: multiple definition of `_mysql_real_connect'; connection.o:./build-12/./mysql_fdw.h:196: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:193: multiple definition of `_mysql_ssl_set'; connection.o:./build-12/./mysql_fdw.h:193: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:192: multiple definition of `_mysql_init'; connection.o:./build-12/./mysql_fdw.h:192: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:191: multiple definition of `_mysql_store_result'; connection.o:./build-12/./mysql_fdw.h:191: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:190: multiple definition of `_mysql_close'; connection.o:./build-12/./mysql_fdw.h:190: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:189: multiple definition of `_mysql_error'; connection.o:./build-12/./mysql_fdw.h:189: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:188: multiple definition of `_mysql_fetch_fields'; connection.o:./build-12/./mysql_fdw.h:188: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:187: multiple definition of `_mysql_fetch_field'; connection.o:./build-12/./mysql_fdw.h:187: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:186: multiple definition of `_mysql_fetch_row'; connection.o:./build-12/./mysql_fdw.h:186: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:185: multiple definition of `_mysql_stmt_store_result'; connection.o:./build-12/./mysql_fdw.h:185: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:184: multiple definition of `_mysql_stmt_result_metadata'; connection.o:./build-12/./mysql_fdw.h:184: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:183: multiple definition of `_mysql_stmt_init'; connection.o:./build-12/./mysql_fdw.h:183: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:181: multiple definition of `_mysql_stmt_bind_result'; connection.o:./build-12/./mysql_fdw.h:181: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:180: multiple definition of `_mysql_stmt_bind_param'; connection.o:./build-12/./mysql_fdw.h:180: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:179: multiple definition of `_mysql_free_result'; connection.o:./build-12/./mysql_fdw.h:179: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:178: multiple definition of `_mysql_stmt_reset'; connection.o:./build-12/./mysql_fdw.h:178: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:177: multiple definition of `_mysql_stmt_close'; connection.o:./build-12/./mysql_fdw.h:177: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:174: multiple definition of `_mysql_stmt_attr_set'; connection.o:./build-12/./mysql_fdw.h:174: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:173: multiple definition of `_mysql_query'; connection.o:./build-12/./mysql_fdw.h:173: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:172: multiple definition of `_mysql_stmt_fetch'; connection.o:./build-12/./mysql_fdw.h:172: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:171: multiple definition of `_mysql_stmt_execute'; connection.o:./build-12/./mysql_fdw.h:171: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:169: multiple definition of `_mysql_stmt_prepare'; connection.o:./build-12/./mysql_fdw.h:169: first defined here
/usr/bin/ld: deparse.o:./build-12/./mysql_fdw.h:167: multiple definition of `_mysql_options'; connection.o:./build-12/./mysql_fdw.h:167: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:208: multiple definition of `_mysql_num_rows'; connection.o:./build-12/./mysql_fdw.h:208: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:207: multiple definition of `_mysql_num_fields'; connection.o:./build-12/./mysql_fdw.h:207: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:206: multiple definition of `_mysql_errno'; connection.o:./build-12/./mysql_fdw.h:206: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:205: multiple definition of `_mysql_stmt_errno'; connection.o:./build-12/./mysql_fdw.h:205: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:203: multiple definition of `_mysql_get_proto_info'; connection.o:./build-12/./mysql_fdw.h:203: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:202: multiple definition of `_mysql_get_server_info'; connection.o:./build-12/./mysql_fdw.h:202: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:201: multiple definition of `_mysql_get_host_info'; connection.o:./build-12/./mysql_fdw.h:201: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:196: multiple definition of `_mysql_real_connect'; connection.o:./build-12/./mysql_fdw.h:196: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:193: multiple definition of `_mysql_ssl_set'; connection.o:./build-12/./mysql_fdw.h:193: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:192: multiple definition of `_mysql_init'; connection.o:./build-12/./mysql_fdw.h:192: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:191: multiple definition of `_mysql_store_result'; connection.o:./build-12/./mysql_fdw.h:191: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:190: multiple definition of `_mysql_close'; connection.o:./build-12/./mysql_fdw.h:190: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:189: multiple definition of `_mysql_error'; connection.o:./build-12/./mysql_fdw.h:189: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:188: multiple definition of `_mysql_fetch_fields'; connection.o:./build-12/./mysql_fdw.h:188: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:187: multiple definition of `_mysql_fetch_field'; connection.o:./build-12/./mysql_fdw.h:187: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:186: multiple definition of `_mysql_fetch_row'; connection.o:./build-12/./mysql_fdw.h:186: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:185: multiple definition of `_mysql_stmt_store_result'; connection.o:./build-12/./mysql_fdw.h:185: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:184: multiple definition of `_mysql_stmt_result_metadata'; connection.o:./build-12/./mysql_fdw.h:184: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:183: multiple definition of `_mysql_stmt_init'; connection.o:./build-12/./mysql_fdw.h:183: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:181: multiple definition of `_mysql_stmt_bind_result'; connection.o:./build-12/./mysql_fdw.h:181: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:180: multiple definition of `_mysql_stmt_bind_param'; connection.o:./build-12/./mysql_fdw.h:180: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:179: multiple definition of `_mysql_free_result'; connection.o:./build-12/./mysql_fdw.h:179: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:178: multiple definition of `_mysql_stmt_reset'; connection.o:./build-12/./mysql_fdw.h:178: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:177: multiple definition of `_mysql_stmt_close'; connection.o:./build-12/./mysql_fdw.h:177: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:174: multiple definition of `_mysql_stmt_attr_set'; connection.o:./build-12/./mysql_fdw.h:174: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:173: multiple definition of `_mysql_query'; connection.o:./build-12/./mysql_fdw.h:173: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:172: multiple definition of `_mysql_stmt_fetch'; connection.o:./build-12/./mysql_fdw.h:172: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:171: multiple definition of `_mysql_stmt_execute'; connection.o:./build-12/./mysql_fdw.h:171: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:169: multiple definition of `_mysql_stmt_prepare'; connection.o:./build-12/./mysql_fdw.h:169: first defined here
/usr/bin/ld: mysql_query.o:./build-12/./mysql_fdw.h:167: multiple definition of `_mysql_options'; connection.o:./build-12/./mysql_fdw.h:167: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:179: multiple definition of `_mysql_free_result'; connection.o:./build-12/./mysql_fdw.h:179: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:177: multiple definition of `_mysql_stmt_close'; connection.o:./build-12/./mysql_fdw.h:177: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:206: multiple definition of `_mysql_errno'; connection.o:./build-12/./mysql_fdw.h:206: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:189: multiple definition of `_mysql_error'; connection.o:./build-12/./mysql_fdw.h:189: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:173: multiple definition of `_mysql_query'; connection.o:./build-12/./mysql_fdw.h:173: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:191: multiple definition of `_mysql_store_result'; connection.o:./build-12/./mysql_fdw.h:191: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:208: multiple definition of `_mysql_num_rows'; connection.o:./build-12/./mysql_fdw.h:208: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:186: multiple definition of `_mysql_fetch_row'; connection.o:./build-12/./mysql_fdw.h:186: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:205: multiple definition of `_mysql_stmt_errno'; connection.o:./build-12/./mysql_fdw.h:205: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:171: multiple definition of `_mysql_stmt_execute'; connection.o:./build-12/./mysql_fdw.h:171: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:180: multiple definition of `_mysql_stmt_bind_param'; connection.o:./build-12/./mysql_fdw.h:180: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:183: multiple definition of `_mysql_stmt_init'; connection.o:./build-12/./mysql_fdw.h:183: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:169: multiple definition of `_mysql_stmt_prepare'; connection.o:./build-12/./mysql_fdw.h:169: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:207: multiple definition of `_mysql_num_fields'; connection.o:./build-12/./mysql_fdw.h:207: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:172: multiple definition of `_mysql_stmt_fetch'; connection.o:./build-12/./mysql_fdw.h:172: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:187: multiple definition of `_mysql_fetch_field'; connection.o:./build-12/./mysql_fdw.h:187: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:174: multiple definition of `_mysql_stmt_attr_set'; connection.o:./build-12/./mysql_fdw.h:174: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:184: multiple definition of `_mysql_stmt_result_metadata'; connection.o:./build-12/./mysql_fdw.h:184: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:188: multiple definition of `_mysql_fetch_fields'; connection.o:./build-12/./mysql_fdw.h:188: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:181: multiple definition of `_mysql_stmt_bind_result'; connection.o:./build-12/./mysql_fdw.h:181: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:185: multiple definition of `_mysql_stmt_store_result'; connection.o:./build-12/./mysql_fdw.h:185: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:178: multiple definition of `_mysql_stmt_reset'; connection.o:./build-12/./mysql_fdw.h:178: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:167: multiple definition of `_mysql_options'; connection.o:./build-12/./mysql_fdw.h:167: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:193: multiple definition of `_mysql_ssl_set'; connection.o:./build-12/./mysql_fdw.h:193: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:196: multiple definition of `_mysql_real_connect'; connection.o:./build-12/./mysql_fdw.h:196: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:190: multiple definition of `_mysql_close'; connection.o:./build-12/./mysql_fdw.h:190: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:192: multiple definition of `_mysql_init'; connection.o:./build-12/./mysql_fdw.h:192: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:201: multiple definition of `_mysql_get_host_info'; connection.o:./build-12/./mysql_fdw.h:201: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:202: multiple definition of `_mysql_get_server_info'; connection.o:./build-12/./mysql_fdw.h:202: first defined here
/usr/bin/ld: mysql_fdw.o:./build-12/./mysql_fdw.h:203: multiple definition of `_mysql_get_proto_info'; connection.o:./build-12/./mysql_fdw.h:203: first defined here
collect2: error: ld returned 1 exit status
surajkharage19 commented 4 years ago

Thanks, @df7cb for reporting this. We missed adding extern to the MySQL library functions. We will fix that and update here.

jeevanchalke commented 4 years ago

Committed a fix.

Thank you, Christoph, for reporting the issue. Can you please check now?

df7cb commented 4 years ago

Looks good now. Thanks!