postgres-protobuf
postgres-protobuf copied to clipboard
Library is not compatible with Postgres-14
Hello,
Thank you for this library. I was following the instructions to make this library work to parse my Probuf data however, this is not compatible with Postgres-14.
It should be compatible.
Did you download the correct version? The release page has different builds for different Postgres versions.
If you compiled it yourself, check that you have Postgres server headers installed for only Postgres 14.
Hi,
Thanks for the response, I would like to actually show you another thing. I also pull the repo and run the make file, but it was stuck since there config file is not there.
Did you install the Postgres server headers mentioned in the readme?
Yes, I followed every single step in readme, but please correct me if there is specific commands needs to be run, I installed the server headers.
The file it's not finding should (on Ubuntu at least) be at /usr/include/postgresql/14/server/pg_config.h
. It's part of the server headers.
- Do you have that file?
- Could you post the output of
make
as text instead of a screenshot?
./build-protobuf-library.sh
- PROTOBUF_VERSION=3.11.2 ++ dirname ./build-protobuf-library.sh
- cd .
- rm -Rf 'third_party/protobuf-*' third_party/protobuf
- mkdir -p third_party/
- cd third_party
- curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.11.2/protobuf-cpp-3.11.2.tar.gz
- tar xzf - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4496k 100 4496k 0 0 2340k 0 0:00:01 0:00:01 --:--:-- 5379k
- mv protobuf-3.11.2 protobuf
- cd protobuf
- ./configure --with-pic --enable-static checking whether to enable maintainer-specific portions of Makefiles... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -E checking for gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking how to run the C++ preprocessor... g++ -E checking for g++... g++ checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... yes checking dependency style of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking for ar... ar checking the archiver (ar) interface... ar checking for gcc... gcc checking whether we are using the GNU Objective C compiler... no checking whether gcc accepts -g... no checking dependency style of gcc... gcc3 checking C++ compiler flags...... use default: -O2 -g -std=c++11 -DNDEBUG checking whether __SUNPRO_CC is declared... no checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether the linker supports version scripts... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for inttypes.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for working memcmp... yes checking for working strtod... yes checking for ftruncate... yes checking for memset... yes checking for mkdir... yes checking for strchr... yes checking for strerror... yes checking for strtol... yes checking zlib version... ok (1.2.0.4 or later) checking for library containing zlibVersion... -lz checking whether g++ supports C++11 features by default... yes checking whether -latomic is needed... no checking whether gcc is Clang... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking whether more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking the location of hash_map... <unordered_map> checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating benchmarks/Makefile config.status: creating conformance/Makefile config.status: creating protobuf.pc config.status: creating protobuf-lite.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands === configuring in third_party/googletest (/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf/third_party/googletest) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' '--with-pic' '--enable-static' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile === configuring in googletest (/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf/third_party/googletest/googletest) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' '--with-pic' '--enable-static' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for python... : checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking whether to check for GCC pthread/shared inconsistencies... yes checking whether -pthread is sufficient with -shared... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating scripts/gtest-config config.status: creating build-aux/config.h config.status: executing depfiles commands config.status: executing libtool commands === configuring in googlemock (/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf/third_party/googletest/googlemock) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' '--with-pic' '--enable-static' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for python... : checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking whether to check for GCC pthread/shared inconsistencies... yes checking whether -pthread is sufficient with -shared... yes checking for gtest-config... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating scripts/gmock-config config.status: creating build-aux/config.h config.status: executing depfiles commands config.status: executing libtool commands
- make -j16
make[1]: Entering directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf'
make all-recursive
make[2]: Entering directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf'
Making all in .
make[3]: Entering directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf'
Making all in src
make[3]: Entering directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf/src'
CXX google/protobuf/compiler/importer.lo
CXX google/protobuf/compiler/parser.lo
CXX google/protobuf/compiler/code_generator.lo
CXX google/protobuf/compiler/command_line_interface.lo
CXX google/protobuf/compiler/plugin.lo
CXX google/protobuf/compiler/subprocess.lo
CXX google/protobuf/compiler/plugin.pb.lo
CXX google/protobuf/compiler/zip_writer.lo
CXX google/protobuf/compiler/main.o
CXX google/protobuf/stubs/bytestream.lo
CXX google/protobuf/stubs/int128.lo
CXX google/protobuf/stubs/common.lo
CXX google/protobuf/io/io_win32.lo
CXX google/protobuf/stubs/status.lo
CXX google/protobuf/stubs/statusor.lo
CXX google/protobuf/stubs/stringpiece.lo
CXX google/protobuf/stubs/stringprintf.lo
CXX google/protobuf/stubs/structurally_valid.lo
CXX google/protobuf/stubs/strutil.lo
CXX google/protobuf/stubs/time.lo
CXX google/protobuf/any_lite.lo
CXX google/protobuf/arena.lo
CXX google/protobuf/extension_set.lo
CXX google/protobuf/generated_enum_util.lo
CXX google/protobuf/generated_message_util.lo
CXX google/protobuf/generated_message_table_driven_lite.lo
CXX google/protobuf/implicit_weak_message.lo
CXX google/protobuf/message_lite.lo
CXX google/protobuf/parse_context.lo
CXX google/protobuf/repeated_field.lo
CXX google/protobuf/wire_format_lite.lo
CXX google/protobuf/io/coded_stream.lo
CXX google/protobuf/io/strtod.lo
CXX google/protobuf/io/zero_copy_stream.lo
In file included from /usr/include/string.h:495,
from ./google/protobuf/stubs/port.h:39,
from ./google/protobuf/stubs/common.h:46,
from ./google/protobuf/message_lite.h:45,
from google/protobuf/message_lite.cc:36:
In function ‘void* memcpy(void*, const void*, size_t)’,
inlined from ‘google::protobuf::uint8* google::protobuf::io::EpsCopyOutputStream::WriteRaw(const void*, int, google::protobuf::uint8*)’ at ./google/protobuf/io/coded_stream.h:699:16,
inlined from ‘virtual google::protobuf::uint8* google::protobuf::internal::ImplicitWeakMessage::_InternalSerialize(google::protobuf::uint8*, google::protobuf::io::EpsCopyOutputStream*) const’ at ./google/protobuf/implicit_weak_message.h:87:28,
inlined from ‘bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream(google::protobuf::io::ZeroCopyOutputStream*) const’ at google/protobuf/message_lite.cc:388:30:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:33: warning: ‘void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int)’ specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX google/protobuf/io/zero_copy_stream_impl.lo
CXX google/protobuf/io/zero_copy_stream_impl_lite.lo
CXX google/protobuf/any.pb.lo
CXX google/protobuf/api.pb.lo
CXX google/protobuf/any.lo
CXX google/protobuf/descriptor.lo
CXX google/protobuf/descriptor_database.lo
CXX google/protobuf/descriptor.pb.lo
CXX google/protobuf/duration.pb.lo
CXX google/protobuf/dynamic_message.lo
CXX google/protobuf/empty.pb.lo
CXX google/protobuf/extension_set_heavy.lo
CXX google/protobuf/field_mask.pb.lo
CXX google/protobuf/generated_message_reflection.lo
CXX google/protobuf/generated_message_table_driven.lo
CXX google/protobuf/map_field.lo
CXX google/protobuf/message.lo
CXX google/protobuf/reflection_ops.lo
CXX google/protobuf/service.lo
CXX google/protobuf/source_context.pb.lo
CXX google/protobuf/struct.pb.lo
CXX google/protobuf/stubs/substitute.lo
CXX google/protobuf/text_format.lo
CXX google/protobuf/timestamp.pb.lo
CXX google/protobuf/type.pb.lo
CXX google/protobuf/unknown_field_set.lo
CXX google/protobuf/wire_format.lo
CXX google/protobuf/wrappers.pb.lo
CXX google/protobuf/io/gzip_stream.lo
CXX google/protobuf/io/printer.lo
CXX google/protobuf/io/tokenizer.lo
CXX google/protobuf/util/delimited_message_util.lo
CXX google/protobuf/util/field_comparator.lo
CXX google/protobuf/util/field_mask_util.lo
CXX google/protobuf/util/internal/datapiece.lo
CXX google/protobuf/util/internal/default_value_objectwriter.lo
CXX google/protobuf/util/internal/error_listener.lo
CXX google/protobuf/util/internal/field_mask_utility.lo
CXX google/protobuf/util/internal/json_escaping.lo
CXX google/protobuf/util/internal/json_objectwriter.lo
CXX google/protobuf/util/internal/json_stream_parser.lo
CXX google/protobuf/util/internal/object_writer.lo
CXX google/protobuf/util/internal/protostream_objectsource.lo
CXX google/protobuf/util/internal/protostream_objectwriter.lo
CXX google/protobuf/util/internal/proto_writer.lo
CXX google/protobuf/util/internal/type_info.lo
CXX google/protobuf/util/internal/type_info_test_helper.lo
CXX google/protobuf/util/internal/utility.lo
CXX google/protobuf/util/json_util.lo
CXX google/protobuf/util/message_differencer.lo
CXX google/protobuf/util/time_util.lo
CXX google/protobuf/util/type_resolver_util.lo
CXX google/protobuf/compiler/cpp/cpp_enum.lo
CXX google/protobuf/compiler/cpp/cpp_enum_field.lo
CXX google/protobuf/compiler/cpp/cpp_extension.lo
CXX google/protobuf/compiler/cpp/cpp_field.lo
CXX google/protobuf/compiler/cpp/cpp_file.lo
CXX google/protobuf/compiler/cpp/cpp_generator.lo
CXX google/protobuf/compiler/cpp/cpp_helpers.lo
CXX google/protobuf/compiler/cpp/cpp_map_field.lo
CXX google/protobuf/compiler/cpp/cpp_message.lo
CXX google/protobuf/compiler/cpp/cpp_message_field.lo
CXX google/protobuf/compiler/cpp/cpp_padding_optimizer.lo
CXX google/protobuf/compiler/cpp/cpp_primitive_field.lo
CXX google/protobuf/compiler/cpp/cpp_service.lo
CXX google/protobuf/compiler/cpp/cpp_string_field.lo
CXX google/protobuf/compiler/java/java_context.lo
CXX google/protobuf/compiler/java/java_enum.lo
CXX google/protobuf/compiler/java/java_enum_lite.lo
CXX google/protobuf/compiler/java/java_enum_field.lo
CXX google/protobuf/compiler/java/java_enum_field_lite.lo
CXX google/protobuf/compiler/java/java_extension.lo
CXX google/protobuf/compiler/java/java_extension_lite.lo
CXX google/protobuf/compiler/java/java_field.lo
CXX google/protobuf/compiler/java/java_file.lo
CXX google/protobuf/compiler/java/java_generator.lo
CXX google/protobuf/compiler/java/java_generator_factory.lo
CXX google/protobuf/compiler/java/java_helpers.lo
CXX google/protobuf/compiler/java/java_map_field.lo
CXX google/protobuf/compiler/java/java_map_field_lite.lo
CXX google/protobuf/compiler/java/java_message.lo
CXX google/protobuf/compiler/java/java_message_lite.lo
CXX google/protobuf/compiler/java/java_message_builder.lo
CXX google/protobuf/compiler/java/java_message_builder_lite.lo
CXX google/protobuf/compiler/java/java_message_field.lo
CXX google/protobuf/compiler/java/java_message_field_lite.lo
CXX google/protobuf/compiler/java/java_name_resolver.lo
CXX google/protobuf/compiler/java/java_primitive_field.lo
CXX google/protobuf/compiler/java/java_primitive_field_lite.lo
CXX google/protobuf/compiler/java/java_shared_code_generator.lo
CXX google/protobuf/compiler/java/java_service.lo
CXX google/protobuf/compiler/java/java_string_field.lo
CXX google/protobuf/compiler/java/java_string_field_lite.lo
CXX google/protobuf/compiler/java/java_doc_comment.lo
CXX google/protobuf/compiler/js/js_generator.lo
CXX google/protobuf/compiler/js/well_known_types_embed.lo
CXX google/protobuf/compiler/objectivec/objectivec_enum.lo
CXX google/protobuf/compiler/objectivec/objectivec_enum_field.lo
CXX google/protobuf/compiler/objectivec/objectivec_extension.lo
CXX google/protobuf/compiler/objectivec/objectivec_field.lo
CXX google/protobuf/compiler/objectivec/objectivec_file.lo
CXX google/protobuf/compiler/objectivec/objectivec_generator.lo
CXX google/protobuf/compiler/objectivec/objectivec_helpers.lo
CXX google/protobuf/compiler/objectivec/objectivec_map_field.lo
CXX google/protobuf/compiler/objectivec/objectivec_message.lo
CXX google/protobuf/compiler/objectivec/objectivec_message_field.lo
CXX google/protobuf/compiler/objectivec/objectivec_oneof.lo
CXX google/protobuf/compiler/objectivec/objectivec_primitive_field.lo
CXX google/protobuf/compiler/php/php_generator.lo
CXX google/protobuf/compiler/python/python_generator.lo
CXX google/protobuf/compiler/ruby/ruby_generator.lo
CXX google/protobuf/compiler/csharp/csharp_doc_comment.lo
CXX google/protobuf/compiler/csharp/csharp_enum.lo
CXX google/protobuf/compiler/csharp/csharp_enum_field.lo
CXX google/protobuf/compiler/csharp/csharp_field_base.lo
CXX google/protobuf/compiler/csharp/csharp_generator.lo
CXX google/protobuf/compiler/csharp/csharp_helpers.lo
CXX google/protobuf/compiler/csharp/csharp_map_field.lo
CXX google/protobuf/compiler/csharp/csharp_message.lo
CXX google/protobuf/compiler/csharp/csharp_message_field.lo
CXX google/protobuf/compiler/csharp/csharp_primitive_field.lo
CXX google/protobuf/compiler/csharp/csharp_reflection_class.lo
CXX google/protobuf/compiler/csharp/csharp_repeated_enum_field.lo
CXX google/protobuf/compiler/csharp/csharp_repeated_message_field.lo
CXX google/protobuf/compiler/csharp/csharp_repeated_primitive_field.lo
CXX google/protobuf/compiler/csharp/csharp_source_generator_base.lo
CXX google/protobuf/compiler/csharp/csharp_wrapper_field.lo
CXXLD libprotobuf-lite.la
CXXLD libprotobuf.la
ar:
u' modifier ignored since
D' is the default (seeU') ar:
u' modifier ignored sinceD' is the default (see
U') CXXLD libprotoc.la ar:u' modifier ignored since
D' is the default (see `U') CXXLD protoc make[3]: Leaving directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf/src' make[2]: Leaving directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf' make[1]: Leaving directory '/home/ermantatar/erman-linux/source-code/postgres-protobuf/third_party/protobuf' g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -fPIC -Ithird_party/protobuf/src -Wno-deprecated -std=c++17 -Wno-register -DEXT_VERSION_MAJOR=0 -DEXT_VERSION_MINOR=3 -DEXT_VERSION_PATCHLEVEL=0 -I. -I./ -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o postgres_utils.o postgres_utils.cpp postgres_utils.cpp:9:10: fatal error: pg_config.h: No such file or directory 9 | #include <pg_config.h> | ^~~~~~~~~~~~~ compilation terminated. make: *** [: postgres_utils.o] Error 1
And the file?
I apoligize, I forgot to send file, yes here it is.
cat pg_config.h
/* src/include/pg_config.h. Generated from pg_config.h.in by configure. / / src/include/pg_config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) / / #undef AC_APPLE_UNIVERSAL_BUILD */
/* The normal alignment of `double', in bytes. */ #define ALIGNOF_DOUBLE 8
/* The normal alignment of `int', in bytes. */ #define ALIGNOF_INT 4
/* The normal alignment of `long', in bytes. */ #define ALIGNOF_LONG 8
/* The normal alignment of `long long int', in bytes. / / #undef ALIGNOF_LONG_LONG_INT */
/* The normal alignment of `PG_INT128_TYPE', in bytes. */ #define ALIGNOF_PG_INT128_TYPE 16
/* The normal alignment of `short', in bytes. */ #define ALIGNOF_SHORT 2
/* Size of a disk block --- this also limits the size of a tuple. You can set it bigger if you need bigger tuples (although TOAST should reduce the need to have large tuples, since fields can be spread across multiple tuples). BLCKSZ must be a power of 2. The maximum possible value of BLCKSZ is currently 2^15 (32768). This is determined by the 15-bit widths of the lp_off and lp_len fields in ItemIdData (see include/storage/itemid.h). Changing BLCKSZ requires an initdb. */ #define BLCKSZ 8192
/* Saved arguments from configure */ #define CONFIGURE_ARGS " '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-tcl' '--with-perl' '--with-python' '--with-pam' '--with-openssl' '--with-libxml' '--with-libxslt' '--mandir=/usr/share/postgresql/15/man' '--docdir=/usr/share/doc/postgresql-doc-15' '--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share/' '--datadir=/usr/share/postgresql/15' '--bindir=/usr/lib/postgresql/15/bin' '--libdir=/usr/lib/x86_64-linux-gnu/' '--libexecdir=/usr/lib/postgresql/' '--includedir=/usr/include/postgresql/' '--with-extra-version= (Ubuntu 15.0-1.pgdg20.04+1)' '--enable-nls' '--enable-thread-safety' '--enable-debug' '--enable-dtrace' '--disable-rpath' '--with-uuid=e2fs' '--with-gnu-ld' '--with-gssapi' '--with-ldap' '--with-pgport=5432' '--with-system-tzdata=/usr/share/zoneinfo' 'AWK=mawk' 'MKDIR_P=/bin/mkdir -p' 'PROVE=/usr/bin/prove' 'PYTHON=/usr/bin/python3' 'TAR=/bin/tar' 'XSLTPROC=xsltproc --nonet' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now' '--enable-tap-tests' '--with-icu' '--with-llvm' 'LLVM_CONFIG=/usr/bin/llvm-config-10' 'CLANG=/usr/bin/clang-10' '--with-lz4' '--with-zstd' '--with-systemd' '--with-selinux' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security'"
/* Define to the default TCP port number on which the server listens and to which clients will try to connect. This can be overridden at run-time, but it's convenient if your clients have the right default compiled in. (--with-pgport=PORTNUM) */ #define DEF_PGPORT 5432
/* Define to the default TCP port number as a string constant. */ #define DEF_PGPORT_STR "5432"
/* Define to the file name extension of dynamically-loadable modules. */ #define DLSUFFIX ".so"
/* Define to build with GSSAPI support. (--with-gssapi) */ #define ENABLE_GSS 1
/* Define to 1 if you want National Language Support. (--enable-nls) */ #define ENABLE_NLS 1
/* Define to 1 to build client libraries as thread-safe code. (--enable-thread-safety) */ #define ENABLE_THREAD_SAFETY 1
/* Define to 1 if gettimeofday() takes only 1 argument. / / #undef GETTIMEOFDAY_1ARG */
#ifdef GETTIMEOFDAY_1ARG
define gettimeofday(a,b) gettimeofday(a)
#endif
/* Define to 1 if you have the `append_history' function. */ #define HAVE_APPEND_HISTORY 1
/* Define to 1 if you have the `ASN1_STRING_get0_data' function. */ #define HAVE_ASN1_STRING_GET0_DATA 1
/* Define to 1 if you want to use atomics if available. */ #define HAVE_ATOMICS 1
/* Define to 1 if you have the <atomic.h> header file. / / #undef HAVE_ATOMIC_H */
/* Define to 1 if you have the `backtrace_symbols' function. */ #define HAVE_BACKTRACE_SYMBOLS 1
/* Define to 1 if you have the `BIO_get_data' function. */ #define HAVE_BIO_GET_DATA 1
/* Define to 1 if you have the `BIO_meth_new' function. */ #define HAVE_BIO_METH_NEW 1
/* Define to 1 if you have the `clock_gettime' function. */ #define HAVE_CLOCK_GETTIME 1
/* Define to 1 if your compiler handles computed gotos. */ #define HAVE_COMPUTED_GOTO 1
/* Define to 1 if you have the `copyfile' function. / / #undef HAVE_COPYFILE */
/* Define to 1 if you have the <copyfile.h> header file. / / #undef HAVE_COPYFILE_H */
/* Define to 1 if you have the <crtdefs.h> header file. / / #undef HAVE_CRTDEFS_H */
/* Define to 1 if you have the `CRYPTO_lock' function. / / #undef HAVE_CRYPTO_LOCK */
/* Define to 1 if you have the declaration of `fdatasync', and to 0 if you don't. */ #define HAVE_DECL_FDATASYNC 1
/* Define to 1 if you have the declaration of `F_FULLFSYNC', and to 0 if you don't. */ #define HAVE_DECL_F_FULLFSYNC 0
/* Define to 1 if you have the declaration of `LLVMCreateGDBRegistrationListener', and to 0 if you don't. */ #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER 1
/* Define to 1 if you have the declaration of `LLVMCreatePerfJITEventListener', and to 0 if you don't. */ #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER 1
/* Define to 1 if you have the declaration of `LLVMGetHostCPUFeatures', and to 0 if you don't. */ #define HAVE_DECL_LLVMGETHOSTCPUFEATURES 1
/* Define to 1 if you have the declaration of `LLVMGetHostCPUName', and to 0 if you don't. */ #define HAVE_DECL_LLVMGETHOSTCPUNAME 1
/* Define to 1 if you have the declaration of `LLVMOrcGetSymbolAddressIn', and to 0 if you don't. */ #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN 1
/* Define to 1 if you have the declaration of `posix_fadvise', and to 0 if you don't. */ #define HAVE_DECL_POSIX_FADVISE 1
/* Define to 1 if you have the declaration of `preadv', and to 0 if you don't. */ #define HAVE_DECL_PREADV 1
/* Define to 1 if you have the declaration of `pwritev', and to 0 if you don't. */ #define HAVE_DECL_PWRITEV 1
/* Define to 1 if you have the declaration of `RTLD_GLOBAL', and to 0 if you don't. */ #define HAVE_DECL_RTLD_GLOBAL 1
/* Define to 1 if you have the declaration of `RTLD_NOW', and to 0 if you don't. */ #define HAVE_DECL_RTLD_NOW 1
/* Define to 1 if you have the declaration of `sigwait', and to 0 if you don't. */ #define HAVE_DECL_SIGWAIT 1
/* Define to 1 if you have the declaration of `strlcat', and to 0 if you don't. */ #define HAVE_DECL_STRLCAT 0
/* Define to 1 if you have the declaration of `strlcpy', and to 0 if you don't. */ #define HAVE_DECL_STRLCPY 0
/* Define to 1 if you have the declaration of `strnlen', and to 0 if you don't. */ #define HAVE_DECL_STRNLEN 1
/* Define to 1 if you have the declaration of `strtoll', and to 0 if you don't. */ #define HAVE_DECL_STRTOLL 1
/* Define to 1 if you have the declaration of `strtoull', and to 0 if you don't. */ #define HAVE_DECL_STRTOULL 1
/* Define to 1 if you have the `dlopen' function. */ #define HAVE_DLOPEN 1
/* Define to 1 if you have the <editline/history.h> header file. / / #undef HAVE_EDITLINE_HISTORY_H */
/* Define to 1 if you have the <editline/readline.h> header file. / / #undef HAVE_EDITLINE_READLINE_H */
/* Define to 1 if you have the <execinfo.h> header file. */ #define HAVE_EXECINFO_H 1
/* Define to 1 if you have the `explicit_bzero' function. */ #define HAVE_EXPLICIT_BZERO 1
/* Define to 1 if you have the `fdatasync' function. */ #define HAVE_FDATASYNC 1
/* Define to 1 if you have the `fls' function. / / #undef HAVE_FLS */
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #define HAVE_FSEEKO 1
/* Define to 1 if your compiler understands func. */ #define HAVE_FUNCNAME__FUNC 1
/* Define to 1 if your compiler understands FUNCTION. / / #undef HAVE_FUNCNAME__FUNCTION */
/* Define to 1 if you have __atomic_compare_exchange_n(int *, int *, int). */ #define HAVE_GCC__ATOMIC_INT32_CAS 1
/* Define to 1 if you have __atomic_compare_exchange_n(int64 *, int64 *, int64). */ #define HAVE_GCC__ATOMIC_INT64_CAS 1
/* Define to 1 if you have __sync_lock_test_and_set(char *) and friends. */ #define HAVE_GCC__SYNC_CHAR_TAS 1
/* Define to 1 if you have __sync_val_compare_and_swap(int *, int, int). */ #define HAVE_GCC__SYNC_INT32_CAS 1
/* Define to 1 if you have __sync_lock_test_and_set(int *) and friends. */ #define HAVE_GCC__SYNC_INT32_TAS 1
/* Define to 1 if you have __sync_val_compare_and_swap(int64 *, int64, int64). */ #define HAVE_GCC__SYNC_INT64_CAS 1
/* Define to 1 if you have the `getaddrinfo' function. */ #define HAVE_GETADDRINFO 1
/* Define to 1 if you have the `gethostbyname_r' function. */ #define HAVE_GETHOSTBYNAME_R 1
/* Define to 1 if you have the `getifaddrs' function. */ #define HAVE_GETIFADDRS 1
/* Define to 1 if you have the `getopt' function. */ #define HAVE_GETOPT 1
/* Define to 1 if you have the <getopt.h> header file. */ #define HAVE_GETOPT_H 1
/* Define to 1 if you have the `getopt_long' function. */ #define HAVE_GETOPT_LONG 1
/* Define to 1 if you have the `getpeereid' function. / / #undef HAVE_GETPEEREID */
/* Define to 1 if you have the `getpeerucred' function. / / #undef HAVE_GETPEERUCRED */
/* Define to 1 if you have the `getpwuid_r' function. */ #define HAVE_GETPWUID_R 1
/* Define to 1 if you have the `getrlimit' function. */ #define HAVE_GETRLIMIT 1
/* Define to 1 if you have the `getrusage' function. */ #define HAVE_GETRUSAGE 1
/* Define to 1 if you have the `gettimeofday' function. / / #undef HAVE_GETTIMEOFDAY */
/* Define to 1 if you have the <gssapi/gssapi.h> header file. */ #define HAVE_GSSAPI_GSSAPI_H 1
/* Define to 1 if you have the <gssapi.h> header file. / / #undef HAVE_GSSAPI_H */
/* Define to 1 if you have the <history.h> header file. / / #undef HAVE_HISTORY_H */
/* Define to 1 if you have the `history_truncate_file' function. */ #define HAVE_HISTORY_TRUNCATE_FILE 1
/* Define to 1 if you have the `HMAC_CTX_free' function. */ #define HAVE_HMAC_CTX_FREE 1
/* Define to 1 if you have the `HMAC_CTX_new' function. */ #define HAVE_HMAC_CTX_NEW 1
/* Define to 1 if you have the <ifaddrs.h> header file. */ #define HAVE_IFADDRS_H 1
/* Define to 1 if you have the `inet_aton' function. */ #define HAVE_INET_ATON 1
/* Define to 1 if you have the `inet_pton' function. */ #define HAVE_INET_PTON 1
/* Define to 1 if the system has the type `int64'. / / #undef HAVE_INT64 */
/* Define to 1 if the system has the type `int8'. / / #undef HAVE_INT8 */
/* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1
/* Define to 1 if you have the global variable 'int opterr'. */ #define HAVE_INT_OPTERR 1
/* Define to 1 if you have the global variable 'int optreset'. / / #undef HAVE_INT_OPTRESET */
/* Define to 1 if you have the global variable 'int timezone'. */ #define HAVE_INT_TIMEZONE 1
/* Define to 1 if you have support for IPv6. */ #define HAVE_IPV6 1
/* Define to 1 if __builtin_constant_p(x) implies "i"(x) acceptance. / / #undef HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P */
/* Define to 1 if you have the `kqueue' function. / / #undef HAVE_KQUEUE */
/* Define to 1 if you have the <langinfo.h> header file. */ #define HAVE_LANGINFO_H 1
/* Define to 1 if you have the <ldap.h> header file. */ #define HAVE_LDAP_H 1
/* Define to 1 if you have the `ldap_initialize' function. */ #define HAVE_LDAP_INITIALIZE 1
/* Define to 1 if you have the `crypto' library (-lcrypto). */ #define HAVE_LIBCRYPTO 1
/* Define to 1 if you have the `ldap' library (-lldap). */ #define HAVE_LIBLDAP 1
/* Define to 1 if you have the `lz4' library (-llz4). */ #define HAVE_LIBLZ4 1
/* Define to 1 if you have the `m' library (-lm). */ #define HAVE_LIBM 1
/* Define to 1 if you have the `pam' library (-lpam). */ #define HAVE_LIBPAM 1
/* Define if you have a function readline library */ #define HAVE_LIBREADLINE 1
/* Define to 1 if you have the `selinux' library (-lselinux). */ #define HAVE_LIBSELINUX 1
/* Define to 1 if you have the `ssl' library (-lssl). */ #define HAVE_LIBSSL 1
/* Define to 1 if you have the `wldap32' library (-lwldap32). / / #undef HAVE_LIBWLDAP32 */
/* Define to 1 if you have the `xml2' library (-lxml2). */ #define HAVE_LIBXML2 1
/* Define to 1 if you have the `xslt' library (-lxslt). */ #define HAVE_LIBXSLT 1
/* Define to 1 if you have the `z' library (-lz). */ #define HAVE_LIBZ 1
/* Define to 1 if you have the `zstd' library (-lzstd). */ #define HAVE_LIBZSTD 1
/* Define to 1 if you have the `link' function. */ #define HAVE_LINK 1
/* Define to 1 if the system has the type `locale_t'. */ #define HAVE_LOCALE_T 1
/* Define to 1 if `long int' works and is 64 bits. */ #define HAVE_LONG_INT_64 1
/* Define to 1 if `long long int' works and is 64 bits. / / #undef HAVE_LONG_LONG_INT_64 */
/* Define to 1 if you have the <mbarrier.h> header file. / / #undef HAVE_MBARRIER_H */
/* Define to 1 if you have the `mbstowcs_l' function. / / #undef HAVE_MBSTOWCS_L */
/* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset_s' function. / / #undef HAVE_MEMSET_S */
/* Define to 1 if the system has the type `MINIDUMP_TYPE'. / / #undef HAVE_MINIDUMP_TYPE */
/* Define to 1 if you have the `mkdtemp' function. */ #define HAVE_MKDTEMP 1
/* Define to 1 if you have the <netinet/tcp.h> header file. */ #define HAVE_NETINET_TCP_H 1
/* Define to 1 if you have the <net/if.h> header file. */ #define HAVE_NET_IF_H 1
/* Define to 1 if you have the `OPENSSL_init_ssl' function. */ #define HAVE_OPENSSL_INIT_SSL 1
/* Define to 1 if you have the <ossp/uuid.h> header file. / / #undef HAVE_OSSP_UUID_H */
/* Define to 1 if you have the <pam/pam_appl.h> header file. / / #undef HAVE_PAM_PAM_APPL_H */
/* Define to 1 if you have the `poll' function. */ #define HAVE_POLL 1
/* Define to 1 if you have the <poll.h> header file. */ #define HAVE_POLL_H 1
/* Define to 1 if you have a POSIX-conforming sigwait declaration. */ #define HAVE_POSIX_DECL_SIGWAIT 1
/* Define to 1 if you have the `posix_fadvise' function. */ #define HAVE_POSIX_FADVISE 1
/* Define to 1 if you have the `posix_fallocate' function. */ #define HAVE_POSIX_FALLOCATE 1
/* Define to 1 if the assembler supports PPC's LWARX mutex hint bit. / / #undef HAVE_PPC_LWARX_MUTEX_HINT */
/* Define to 1 if you have the `ppoll' function. */ #define HAVE_PPOLL 1
/* Define to 1 if you have the `pread' function. */ #define HAVE_PREAD 1
/* Define to 1 if you have the `pstat' function. / / #undef HAVE_PSTAT */
/* Define to 1 if the PS_STRINGS thing exists. / / #undef HAVE_PS_STRINGS */
/* Define if you have POSIX threads libraries and header files. */ #define HAVE_PTHREAD 1
/* Define to 1 if you have the `pthread_barrier_wait' function. */ #define HAVE_PTHREAD_BARRIER_WAIT 1
/* Define to 1 if you have the `pthread_is_threaded_np' function. / / #undef HAVE_PTHREAD_IS_THREADED_NP */
/* Have PTHREAD_PRIO_INHERIT. */ #define HAVE_PTHREAD_PRIO_INHERIT 1
/* Define to 1 if you have the `pwrite' function. */ #define HAVE_PWRITE 1
/* Define to 1 if you have the <readline.h> header file. / / #undef HAVE_READLINE_H */
/* Define to 1 if you have the <readline/history.h> header file. */ #define HAVE_READLINE_HISTORY_H 1
/* Define to 1 if you have the <readline/readline.h> header file. */ #define HAVE_READLINE_READLINE_H 1
/* Define to 1 if you have the `readlink' function. */ #define HAVE_READLINK 1
/* Define to 1 if you have the `readv' function. */ #define HAVE_READV 1
/* Define to 1 if you have the `rl_completion_matches' function. */ #define HAVE_RL_COMPLETION_MATCHES 1
/* Define to 1 if you have the global variable 'rl_completion_suppress_quote'. */ #define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1
/* Define to 1 if you have the `rl_filename_completion_function' function. */ #define HAVE_RL_FILENAME_COMPLETION_FUNCTION 1
/* Define to 1 if you have the global variable 'rl_filename_quote_characters'. */ #define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1
/* Define to 1 if you have the global variable 'rl_filename_quoting_function'. */ #define HAVE_RL_FILENAME_QUOTING_FUNCTION 1
/* Define to 1 if you have the `rl_reset_screen_size' function. */ #define HAVE_RL_RESET_SCREEN_SIZE 1
/* Define to 1 if you have the `rl_variable_bind' function. */ #define HAVE_RL_VARIABLE_BIND 1
/* Define to 1 if you have the <security/pam_appl.h> header file. */ #define HAVE_SECURITY_PAM_APPL_H 1
/* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1
/* Define to 1 if you have the `setproctitle' function. / / #undef HAVE_SETPROCTITLE */
/* Define to 1 if you have the `setproctitle_fast' function. / / #undef HAVE_SETPROCTITLE_FAST */
/* Define to 1 if you have the `setsid' function. */ #define HAVE_SETSID 1
/* Define to 1 if you have the `shm_open' function. */ #define HAVE_SHM_OPEN 1
/* Define to 1 if the system has the type `socklen_t'. */ #define HAVE_SOCKLEN_T 1
/* Define to 1 if you have spinlocks. */ #define HAVE_SPINLOCKS 1
/* Define to 1 if stdbool.h conforms to C99. */ #define HAVE_STDBOOL_H 1
/* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strchrnul' function. */ #define HAVE_STRCHRNUL 1
/* Define to 1 if you have the `strerror_r' function. */ #define HAVE_STRERROR_R 1
/* Define to 1 if you have the <strings.h> header file. */ #define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1
/* Define to 1 if you have the `strlcat' function. / / #undef HAVE_STRLCAT */
/* Define to 1 if you have the `strlcpy' function. / / #undef HAVE_STRLCPY */
/* Define to 1 if you have the `strnlen' function. */ #define HAVE_STRNLEN 1
/* Define to 1 if you have the `strsignal' function. */ #define HAVE_STRSIGNAL 1
/* Define to 1 if you have the `strtof' function. */ #define HAVE_STRTOF 1
/* Define to 1 if you have the `strtoll' function. */ #define HAVE_STRTOLL 1
/* Define to 1 if you have the `strtoq' function. / / #undef HAVE_STRTOQ */
/* Define to 1 if you have the `strtoull' function. */ #define HAVE_STRTOULL 1
/* Define to 1 if you have the `strtouq' function. / / #undef HAVE_STRTOUQ */
/* Define to 1 if the system has the type `struct addrinfo'. */ #define HAVE_STRUCT_ADDRINFO 1
/* Define to 1 if the system has the type `struct cmsgcred'. / / #undef HAVE_STRUCT_CMSGCRED */
/* Define to 1 if the system has the type `struct option'. */ #define HAVE_STRUCT_OPTION 1
/* Define to 1 if sa_len' is a member of
struct sockaddr'. /
/ #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
/* Define to 1 if the system has the type `struct sockaddr_storage'. */ #define HAVE_STRUCT_SOCKADDR_STORAGE 1
/* Define to 1 if ss_family' is a member of
struct sockaddr_storage'. */
#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
/* Define to 1 if ss_len' is a member of
struct sockaddr_storage'. /
/ #undef HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN */
/* Define to 1 if __ss_family' is a member of
struct sockaddr_storage'. /
/ #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY */
/* Define to 1 if __ss_len' is a member of
struct sockaddr_storage'. /
/ #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN */
/* Define to 1 if the system has the type `struct sockaddr_un'. */ #define HAVE_STRUCT_SOCKADDR_UN 1
/* Define to 1 if tm_zone' is a member of
struct tm'. */
#define HAVE_STRUCT_TM_TM_ZONE 1
/* Define to 1 if you have the `symlink' function. */ #define HAVE_SYMLINK 1
/* Define to 1 if you have the `syncfs' function. */ #define HAVE_SYNCFS 1
/* Define to 1 if you have the `sync_file_range' function. */ #define HAVE_SYNC_FILE_RANGE 1
/* Define to 1 if you have the syslog interface. */ #define HAVE_SYSLOG 1
/* Define to 1 if you have the <sys/epoll.h> header file. */ #define HAVE_SYS_EPOLL_H 1
/* Define to 1 if you have the <sys/event.h> header file. / / #undef HAVE_SYS_EVENT_H */
/* Define to 1 if you have the <sys/ipc.h> header file. */ #define HAVE_SYS_IPC_H 1
/* Define to 1 if you have the <sys/personality.h> header file. */ #define HAVE_SYS_PERSONALITY_H 1
/* Define to 1 if you have the <sys/prctl.h> header file. */ #define HAVE_SYS_PRCTL_H 1
/* Define to 1 if you have the <sys/procctl.h> header file. / / #undef HAVE_SYS_PROCCTL_H */
/* Define to 1 if you have the <sys/pstat.h> header file. / / #undef HAVE_SYS_PSTAT_H */
/* Define to 1 if you have the <sys/resource.h> header file. */ #define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the <sys/select.h> header file. */ #define HAVE_SYS_SELECT_H 1
/* Define to 1 if you have the <sys/sem.h> header file. */ #define HAVE_SYS_SEM_H 1
/* Define to 1 if you have the <sys/shm.h> header file. */ #define HAVE_SYS_SHM_H 1
/* Define to 1 if you have the <sys/signalfd.h> header file. */ #define HAVE_SYS_SIGNALFD_H 1
/* Define to 1 if you have the <sys/sockio.h> header file. / / #undef HAVE_SYS_SOCKIO_H */
/* Define to 1 if you have the <sys/stat.h> header file. */ #define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/tas.h> header file. / / #undef HAVE_SYS_TAS_H */
/* Define to 1 if you have the <sys/types.h> header file. */ #define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/ucred.h> header file. / / #undef HAVE_SYS_UCRED_H */
/* Define to 1 if you have the <sys/uio.h> header file. */ #define HAVE_SYS_UIO_H 1
/* Define to 1 if you have the <sys/un.h> header file. */ #define HAVE_SYS_UN_H 1
/* Define to 1 if you have the <termios.h> header file. */ #define HAVE_TERMIOS_H 1
/* Define to 1 if your compiler understands `typeof' or something similar. */ #define HAVE_TYPEOF 1
/* Define to 1 if you have the <ucred.h> header file. / / #undef HAVE_UCRED_H */
/* Define to 1 if the system has the type `uint64'. / / #undef HAVE_UINT64 */
/* Define to 1 if the system has the type `uint8'. / / #undef HAVE_UINT8 */
/* Define to 1 if the system has the type `union semun'. / / #undef HAVE_UNION_SEMUN */
/* Define to 1 if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1
/* Define to 1 if you have the `unsetenv' function. */ #define HAVE_UNSETENV 1
/* Define to 1 if you have the `uselocale' function. */ #define HAVE_USELOCALE 1
/* Define to 1 if you have BSD UUID support. / / #undef HAVE_UUID_BSD */
/* Define to 1 if you have E2FS UUID support. */ #define HAVE_UUID_E2FS 1
/* Define to 1 if you have the <uuid.h> header file. / / #undef HAVE_UUID_H */
/* Define to 1 if you have OSSP UUID support. / / #undef HAVE_UUID_OSSP */
/* Define to 1 if you have the <uuid/uuid.h> header file. */ #define HAVE_UUID_UUID_H 1
/* Define to 1 if you have the `wcstombs_l' function. / / #undef HAVE_WCSTOMBS_L */
/* Define to 1 if you have the <wctype.h> header file. */ #define HAVE_WCTYPE_H 1
/* Define to 1 if you have the <winldap.h> header file. / / #undef HAVE_WINLDAP_H */
/* Define to 1 if you have the `writev' function. */ #define HAVE_WRITEV 1
/* Define to 1 if you have the `X509_get_signature_nid' function. */ #define HAVE_X509_GET_SIGNATURE_NID 1
/* Define to 1 if the assembler supports X86_64's POPCNTQ instruction. */ #define HAVE_X86_64_POPCNTQ 1
/* Define to 1 if the system has the type `_Bool'. */ #define HAVE__BOOL 1
/* Define to 1 if your compiler understands __builtin_bswap16. */ #define HAVE__BUILTIN_BSWAP16 1
/* Define to 1 if your compiler understands __builtin_bswap32. */ #define HAVE__BUILTIN_BSWAP32 1
/* Define to 1 if your compiler understands __builtin_bswap64. */ #define HAVE__BUILTIN_BSWAP64 1
/* Define to 1 if your compiler understands __builtin_clz. */ #define HAVE__BUILTIN_CLZ 1
/* Define to 1 if your compiler understands __builtin_constant_p. */ #define HAVE__BUILTIN_CONSTANT_P 1
/* Define to 1 if your compiler understands __builtin_ctz. */ #define HAVE__BUILTIN_CTZ 1
/* Define to 1 if your compiler understands __builtin_frame_address. */ #define HAVE__BUILTIN_FRAME_ADDRESS 1
/* Define to 1 if your compiler understands _builtin$op_overflow. */ #define HAVE__BUILTIN_OP_OVERFLOW 1
/* Define to 1 if your compiler understands __builtin_popcount. */ #define HAVE__BUILTIN_POPCOUNT 1
/* Define to 1 if your compiler understands __builtin_types_compatible_p. */ #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
/* Define to 1 if your compiler understands __builtin_unreachable. */ #define HAVE__BUILTIN_UNREACHABLE 1
/* Define to 1 if you have the `_configthreadlocale' function. / / #undef HAVE__CONFIGTHREADLOCALE */
/* Define to 1 if you have __cpuid. / / #undef HAVE__CPUID */
/* Define to 1 if you have __get_cpuid. */ #define HAVE__GET_CPUID 1
/* Define to 1 if your compiler understands _Static_assert. */ #define HAVE__STATIC_ASSERT 1
/* Define to 1 if you have the `__strtoll' function. / / #undef HAVE___STRTOLL */
/* Define to 1 if you have the `__strtoull' function. / / #undef HAVE___STRTOULL */
/* Define to the appropriate printf length modifier for 64-bit ints. */ #define INT64_MODIFIER "l"
/* Define to 1 if `locale_t' requires <xlocale.h>. / / #undef LOCALE_T_IN_XLOCALE */
/* Define as the maximum alignment requirement of any C data type. */ #define MAXIMUM_ALIGNOF 8
/* Define bytes to use libc memset(). */ #define MEMSET_LOOP_LIMIT 1024
/* Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions. */ #define OPENSSL_API_COMPAT 0x10001000L
/* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "[email protected]"
/* Define to the full name of this package. */ #define PACKAGE_NAME "PostgreSQL"
/* Define to the full name and version of this package. */ #define PACKAGE_STRING "PostgreSQL 15.0"
/* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "postgresql"
/* Define to the home page for this package. */ #define PACKAGE_URL "https://www.postgresql.org/"
/* Define to the version of this package. */ #define PACKAGE_VERSION "15.0"
/* Define to the name of a signed 128-bit integer type. */ #define PG_INT128_TYPE __int128
/* Define to the name of a signed 64-bit integer type. */ #define PG_INT64_TYPE long int
/* Define to the name of the default PostgreSQL service principal in Kerberos (GSSAPI). (--with-krb-srvnam=NAME) */ #define PG_KRB_SRVNAM "postgres"
/* PostgreSQL major version as a string */ #define PG_MAJORVERSION "15"
/* PostgreSQL major version number */ #define PG_MAJORVERSION_NUM 15
/* PostgreSQL minor version number */ #define PG_MINORVERSION_NUM 0
/* Define to best printf format archetype, usually gnu_printf if available. */ #define PG_PRINTF_ATTRIBUTE gnu_printf
/* Define to 1 to use <stdbool.h> to define type bool. */ #define PG_USE_STDBOOL 1
/* PostgreSQL version as a string */ #define PG_VERSION "15.0 (Ubuntu 15.0-1.pgdg20.04+1)"
/* PostgreSQL version as a number */ #define PG_VERSION_NUM 150000
/* A string containing the version number, platform, and C compiler */ #define PG_VERSION_STR "PostgreSQL 15.0 (Ubuntu 15.0-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit"
/* Define to 1 to allow profiling output to be saved separately for each process. / / #undef PROFILE_PID_DIR */
/* Define to necessary symbol if this constant uses a non-standard name on your system. / / #undef PTHREAD_CREATE_JOINABLE */
/* RELSEG_SIZE is the maximum number of blocks allowed in one disk file. Thus, the maximum size of a single file is RELSEG_SIZE * BLCKSZ; relations bigger than that are divided into multiple files. RELSEG_SIZE * BLCKSZ must be less than your OS' limit on file size. This is often 2 GB or 4GB in a 32-bit operating system, unless you have large file support enabled. By default, we make the limit 1 GB to avoid any possible integer-overflow problems within the OS. A limit smaller than necessary only means we divide a large relation into more chunks than necessary, so it seems best to err in the direction of a small limit. A power-of-2 value is recommended to save a few cycles in md.c, but is not absolutely required. Changing RELSEG_SIZE requires an initdb. */ #define RELSEG_SIZE 131072
/* The size of `bool', as computed by sizeof. */ #define SIZEOF_BOOL 1
/* The size of `long', as computed by sizeof. */ #define SIZEOF_LONG 8
/* The size of `off_t', as computed by sizeof. */ #define SIZEOF_OFF_T 8
/* The size of `size_t', as computed by sizeof. */ #define SIZEOF_SIZE_T 8
/* The size of `void *', as computed by sizeof. */ #define SIZEOF_VOID_P 8
/* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1
/* Define to 1 if strerror_r() returns int. / / #undef STRERROR_R_INT */
/* Define to 1 to use ARMv8 CRC Extension. / / #undef USE_ARMV8_CRC32C */
/* Define to 1 to use ARMv8 CRC Extension with a runtime check. / / #undef USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK */
/* Define to 1 to build with assertion checks. (--enable-cassert) / / #undef USE_ASSERT_CHECKING */
/* Define to 1 to build with Bonjour support. (--with-bonjour) / / #undef USE_BONJOUR */
/* Define to 1 to build with BSD Authentication support. (--with-bsd-auth) / / #undef USE_BSD_AUTH */
/* Define to build with ICU support. (--with-icu) */ #define USE_ICU 1
/* Define to 1 to build with LDAP support. (--with-ldap) */ #define USE_LDAP 1
/* Define to 1 to build with XML support. (--with-libxml) */ #define USE_LIBXML 1
/* Define to 1 to use XSLT support when building contrib/xml2. (--with-libxslt) */ #define USE_LIBXSLT 1
/* Define to 1 to build with LLVM based JIT support. (--with-llvm) */ #define USE_LLVM 1
/* Define to 1 to build with LZ4 support. (--with-lz4) */ #define USE_LZ4 1
/* Define to select named POSIX semaphores. / / #undef USE_NAMED_POSIX_SEMAPHORES */
/* Define to 1 to build with OpenSSL support. (--with-ssl=openssl) */ #define USE_OPENSSL 1
/* Define to 1 to build with PAM support. (--with-pam) */ #define USE_PAM 1
/* Define to 1 to use software CRC-32C implementation (slicing-by-8). / / #undef USE_SLICING_BY_8_CRC32C */
/* Define to 1 use Intel SSE 4.2 CRC instructions. / / #undef USE_SSE42_CRC32C */
/* Define to 1 to use Intel SSE 4.2 CRC instructions with a runtime check. */ #define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1
/* Define to build with systemd support. (--with-systemd) */ #define USE_SYSTEMD 1
/* Define to select SysV-style semaphores. / / #undef USE_SYSV_SEMAPHORES */
/* Define to select SysV-style shared memory. */ #define USE_SYSV_SHARED_MEMORY 1
/* Define to select unnamed POSIX semaphores. */ #define USE_UNNAMED_POSIX_SEMAPHORES 1
/* Define to select Win32-style semaphores. / / #undef USE_WIN32_SEMAPHORES */
/* Define to select Win32-style shared memory. / / #undef USE_WIN32_SHARED_MEMORY */
/* Define to 1 to build with ZSTD support. (--with-zstd) */ #define USE_ZSTD 1
/* Define to 1 if `wcstombs_l' requires <xlocale.h>. / / #undef WCSTOMBS_L_IN_XLOCALE */
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD
if defined BIG_ENDIAN
define WORDS_BIGENDIAN 1
endif
#else
ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
endif
#endif
/* Size of a WAL file block. This need have no particular relation to BLCKSZ. XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O, XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O buffers, else direct I/O may fail. Changing XLOG_BLCKSZ requires an initdb. */ #define XLOG_BLCKSZ 8192
/* Number of bits in a file offset, on hosts where this is settable. / / #undef _FILE_OFFSET_BITS */
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). / / #undef _LARGEFILE_SOURCE */
/* Define for large files, on AIX-style hosts. / / #undef _LARGE_FILES */
/* Define to __inline__' or
__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. /
#ifndef __cplusplus
/ #undef inline */
#endif
/* Define to keyword to use for C99 restrict support, or to nothing if not supported */ #define pg_restrict __restrict
/* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported directly. / #define restrict __restrict / Work around a bug in Sun C++: it does not support _Restrict or restrict, even though the corresponding Sun C compiler ends up with "#define restrict _Restrict" or "#define restrict restrict" in the previous line. Perhaps some future version of Sun C++ will work with restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ #if defined __SUNPRO_CC && !defined __RESTRICT
define _Restrict
define restrict
#endif
/* Define to how the compiler spells `typeof'. / / #undef typeof */
And it's found at exactly the path /usr/include/postgresql/14/server/pg_config.h
?
If so, then I'm not sure why the compiler can't find it, given that -I/usr/include/postgresql/14/server
is part of the command.
Also, what distro are you using?
You can alternatively try to build in Docker, which uses an Ubuntu 20.04 environment, with env POSTGRES_VERSION=14 ./docker-build-dist.sh
The build result will be in dist/
Closing for now. Let me know if you're still having problems.