tds_fdw icon indicating copy to clipboard operation
tds_fdw copied to clipboard

Unable to build on macOS Mojave10.14.2

Open nazneen84 opened this issue 4 years ago • 3 comments

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

nazneen84 avatar Aug 19 '19 17:08 nazneen84

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

Can you share the full log?

juliogonzalez avatar Sep 27 '19 21:09 juliogonzalez

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/[email protected]/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

frbuceta avatar Oct 01 '19 10:10 frbuceta

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.

nazneen84 avatar Oct 02 '19 07:10 nazneen84