EnterpriseDB / mysql_fdw

PostgreSQL foreign data wrapper for MySQL
Other
528 stars 160 forks source link

fails to compile on DragonFlyBSD 4.2.3 #64

Open ferz opened 9 years ago

ferz commented 9 years ago

gmake USE_PGXS=1 cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -fno-strict-aliasing -fPIC -DPIC -I/usr/local/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include -I/usr/local/include -c -o connection.o connection.c cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -fno-strict-aliasing -fPIC -DPIC -I/usr/local/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include -I/usr/local/include -c -o option.o option.c cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -fno-strict-aliasing -fPIC -DPIC -I/usr/local/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include -I/usr/local/include -c -o deparse.o deparse.c cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -fno-strict-aliasing -fPIC -DPIC -I/usr/local/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include -I/usr/local/include -c -o mysql_query.o mysql_query.c cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -pipe -O2 -fno-strict-aliasing -fPIC -DPIC -I/usr/local/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include -I/usr/local/include -c -o mysql_fdw.o mysql_fdw.c mysql_fdw.c: In function 'mysql_load_library': mysql_fdw.c:176:56: error: 'RTLD_DEEPBIND' undeclared (first use in this function) mysql_dll_handle = dlopen(_MYSQL_LIBNAME, RTLD_LAZY | RTLD_DEEPBIND); ^ mysql_fdw.c:176:56: note: each undeclared identifier is reported only once for each function it appears in

: recipe for target 'mysql_fdw.o' failed gmake: **\* [mysql_fdw.o] Error 1 uname -a DragonFly vola 4.2-RELEASE DragonFly v4.2.3.2.g6ca39-RELEASE #3: Mon Jul 20 22:51:17 CEST 2015 nonsolosoft@diff.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
j4sper commented 8 years ago

@ferz I had trouble building the extension on OpenBSD, but I got it to work by installing mariadb from ports and using that instead of the MySQL C client library. I modified the makefile too, but it was just a oneliner #if defined(__APPLE__) -> #if defined(__APPLE__) || defined(__OpenBSD__)