vidardb / pgrocks-fdw

Bring RocksDB to PostgreSQL as an extension. It is the first foreign data wrapper (FDW) that introduces LSM-tree into PostgreSQL. The underneath storage engine can be RocksDB. The FDW also serves for VidarDB engine, a versatile storage engine for various workloads. See the link for more info about VidarDB engine.
https://www.vidardb.com
Apache License 2.0
122 stars 11 forks source link

compile problem in centos 7.6 #40

Open youngerking1985 opened 2 years ago

youngerking1985 commented 2 years ago

when make project, display this problem. my enviroment is centos 7.6_x64; r/local/pgsql/include/internal -D_GNU_SOURCE -c -o src/server/kv_storage.o src/server/kv_storage.cc In file included from /usr/include/c++/4.8.2/unordered_map:35:0, from /usr/local/include/rocksdb/db.h:16, from src/server/kv_storage.cc:26: /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

youngerking1985 commented 2 years ago

I modify makefile, modify

ifeq ($(shell uname -s),Darwin)
COMPILE.cc   = $(CXX) $(CXXFLAGS) -std=c++11 $(CPPFLAGS) -c
PG_CPPFLAGS += -Wno-deprecated-declarations
SHLIB_LINK  += -lstdc++
endif

to

COMPILE.cc   = $(CXX) $(CXXFLAGS) -std=c++11 $(CPPFLAGS) -c
ifeq ($(shell uname -s),Darwin)
COMPILE.cc   = $(CXX) $(CXXFLAGS) -std=c++11 $(CPPFLAGS) -c
PG_CPPFLAGS += -Wno-deprecated-declarations
SHLIB_LINK  += -lstdc++
endif

it is ok in compile in centos. maybe there is a better way but i am not familar with makefile.

jsc0218 commented 2 years ago

Thanks for your report. I think the issue might come from the compiler version with 4.8. A newer version would be okay.