EnterpriseDB / mongo_fdw

PostgreSQL foreign data wrapper for MongoDB
GNU Lesser General Public License v3.0
326 stars 70 forks source link

Compilation error #110

Closed GHNewbiee closed 5 years ago

GHNewbiee commented 5 years ago

Hi,

Ubuntu 16.04
PostgreSQL 10.5

Using either autogen.sh --with-master or autogen.sh --with-legacy and later make -f Makefile.meta && sudo make -f Makefile.meta install.

Result:

/usr/bin/ld: json-c/json_util.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
json-c/json_util.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
/usr/lib/postgresql/10/lib/pgxs/src/makefiles/../../src/Makefile.shlib:292: recipe for target 'mongo_fdw.so' failed
make: *** [mongo_fdw.so] Error 1

Tia

PS: One question since I am not a folk of your "IT society". What is the "cost" for you to distribute your work ready after compilation as a package? Do you believe that you gain more following this manner?