tds-fdw / tds_fdw

A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)
Other
380 stars 102 forks source link

Unable to build on macOS Mojave10.14.2 #207

Open nazneen84 opened 5 years ago

nazneen84 commented 5 years ago

I was not able to build 2.0.0 alpha 3 without PG_CPPFLAGS := -I./include/ -I/usr/include/ -I/usr/local/include -fvisibility=hidden in the Makefile

-I/usr/include/ fixed stdio.h not found

-I/usr/local/include fixed sybfront.h not found

juliogonzalez commented 5 years ago

Sadly, neither Geoff or me have a macOS so we can try to reproduce.

Can you share the full log?

frbuceta commented 5 years ago

I can't compile version 1.0.8 on macOs 10.14.6 either (last stable)

➜  tds_fdw-1.0.8: make USE_PGXS=1 TDS_INCLUDE=-I/usr/local/include/

clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2  -I./include/ -I. -I./ -I/usr/local/Cellar/postgresql/11.5_1/include/server -I/usr/local/Cellar/postgresql/11.5_1/include/internal -I/usr/local/Cellar/icu4c/64.2/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libxml2   -c -o src/tds_fdw.o src/tds_fdw.c
clang: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
src/tds_fdw.c:21:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.
make: *** [src/tds_fdw.o] Error 1
nazneen84 commented 5 years ago

FYI this extension is not supported by Azure Postgres so we had to pass on using it :( I voted for it on UserVoice. But that's all I can do.