Comments (10)
The failing check failed to link libpq into the executable it was building. You can see the "-lpq" option in the previous check ("PQexec in -lpq") but not in the failing one ("correct C++ linkage of basic libpq functions").
This looks like it's related to a bug I fixed recently. Have a look at the check in your version of configure.ac.in, around line 454. For me it currently says::
# Remove redundant occurrances of -lpq
LIBS=[$(echo "$LIBS" | sed -e 's/-lpq[[:space:]]*[[:space:]]-lpq\>/-lpq/g')]
Until the fix, however, the outer brackets around the LIBS value were missing::
# Remove redundant occurrances of -lpq
LIBS=$(echo "$LIBS" | sed -e 's/-lpq[[:space:]]*[[:space:]]-lpq\>/-lpq/g')
I think one of two things is going wrong. Either you don't have the square brackets yet, and the latest version should work for you. Or you do have them, and it broke something else for you. I'd be interested to hear which!
from libpqxx.
4.0.1 is using echo "$LIBS" | sed -e 's/-lpq[[:space:]]*[[:space:]]-lpq\>/-lpq/g'
and 5.0.1 is using LIBS="$(echo "$LIBS" | sed -e 's/-lpq[[:space:]]*[[:space:]]-lpq\>/-lpq/g')"
. I tried switch both to the new way with the outer brackets and they both still fail with the same error.
from libpqxx.
Okay, hopefully commit 85e9336 fixed this for good. My apologies for this mess... Macro-ing in m4 has never been my strong suit!
from libpqxx.
Sorry for not following up sooner, but this fixed the issue ( https://koji.fedoraproject.org/koji/buildinfo?buildID=911028 ). Thanks for all the help.
from libpqxx.
Glad you found a way — but surely there's a newer packaged version? This is libpqxx 4.0.1 and I'm about to release 6.0!
from libpqxx.
The problem is that libpqxx 5 is not code compatible with 4, so I'm not sure when Fedora will be able to update because there are several uses of libpqxx and they still use the 4 style of code.
from libpqxx.
You'd expect them to support multiple versions installed side by side though.
from libpqxx.
Maintaining multiple versions of a library is a big pain. Since 6 is coming out around 6 months after 5, would having to support 4, 5 and 6 be required? What type of API compatibility can be expected going forward? Basically, supporting 2 versions I could maybe get behind, but 3 or more would be out of the question.
from libpqxx.
Fair enough. Might be best to skip 5 then, and go straight to 6 — provided that the platform as a whole is OK with C++11.
Compiling the same libpqxx version with different C++ versions (C++11, C++14, C++17, ...) will give you slightly different feature sets, but I try to keep the differences hidden away in inline functions so the binary should not be affected. Unless compilers change their name mangling of course!
from libpqxx.
(Edit, I wasn't running with the newest code. I am now in the process of configure and make with a cloned repo. The following error does not show when using the newst code. Sorry for any inconvenience. I'll let this be here for other people who may encounter the same problem when following the tutorial.)
Hey, I was following this guide: https://www.tutorialspoint.com/postgresql/postgresql_c_cpp.htm
However I got stuck on the "./configure" step.
The output of the ./configure step was the following:
`
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /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 whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-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 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 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... no
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 make sets $(MAKE)... (cached) yes
checking for mkdir... /bin/mkdir
checking for pkg-config... /usr/bin/pkg-config
checking for doxygen... no
checking for dot... NO
checking for xmlto... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking maintainer mode...
checking g++ visibility attribute... yes
checking whether g++ accepts -fvisibility-inlines-hidden... yes
checking g++ const attribute... yes
checking g++ deprecation attribute... yes
checking g++ noreturn attribute... yes
checking g++ pure attribute... yes
checking name of standard library namespace (normally "std")... ::std
checking boost/smart_ptr.hpp usability... yes
checking boost/smart_ptr.hpp presence... yes
checking for boost/smart_ptr.hpp... yes
checking whether TR1 headers live in tr1 directory... yes
checking namespace of TR1 extension to the C++ standard... std::tr1
checking ios usability... yes
checking ios presence... yes
checking for ios... yes
checking streambuf usability... yes
checking streambuf presence... yes
checking for streambuf... yes
checking locale usability... yes
checking locale presence... yes
checking for locale... yes
checking locale function and stringstream::imbue... yes
checking char_traits template... yes
checking "warning" preprocessor directive... yes
checking "message" preprocessor pragma... yes
checking for pg_config... /usr/bin/pg_config
configure: using PostgreSQL headers at /usr/include/postgresql
configure: using PostgreSQL libraries at /usr/lib/x86_64-linux-gnu
checking for ANSI C header files... (cached) yes
checking ability to compile programs using the standard C library... yes
checking for library containing select... none required
checking /usr/include/postgresql/libpq-fe.h usability... yes
checking /usr/include/postgresql/libpq-fe.h presence... yes
checking for /usr/include/postgresql/libpq-fe.h... yes
checking for ability to compile source files using libpq... yes
checking for main in -lpq... yes
checking for PQexec in -lpq... yes
checking for correct C++ linkage of basic libpq functions...
sed: character class syntax is [[:space:]], not [:space:]
configure: error:
Linking a call to libpq failed in C++, even though it succeeded in C. If your
C and C++ compilers are very different beasts, this may mean that we do not have
the right options for linking with it after all.
Read the config.log file for more detailed information. Look for the last error
message, which may be several pages up from the end of the file.
`
The config.log file looks like this:
`
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libpqxx configure 4.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure
---------
Platform.
---------
hostname = DESKTOP-T7BC3Q4
uname -m = x86_64
uname -r = 4.4.0-17134-Microsoft
uname -s = Linux
uname -v = #285-Microsoft Thu Aug 30 17:31:00 PST 2018
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /mnt/c/ProgramData/Oracle/Java/javapath_target_15604375
PATH: /mnt/c/Program Files/Microsoft MPI/Bin
PATH: /mnt/c/Windows/System32
PATH: /mnt/c/Windows
PATH: /mnt/c/Windows/System32/wbem
PATH: /mnt/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn
PATH: /mnt/c/Program Files/dotnet
PATH: /mnt/c/Program Files/Anaconda3
PATH: /mnt/c/Program Files/Anaconda3/Scripts
PATH: /mnt/c/Program Files/Anaconda3/Library/bin
PATH: /mnt/c/Program Files (x86)/GtkSharp/2.12/bin
PATH: /mnt/c/Program Files (x86)/sbt/bin
PATH: /mnt/c/BigData/Hadoop/bin
PATH: /mnt/c/Program Files/Java/jdk1.8.0_144/bin
PATH: /mnt/c/BigData/Spark/spark-2.2.0-bin-hadoop2.7/bin
PATH: /mnt/d/Putty
PATH: /mnt/c/Program Files (x86)/Skype/Phone
PATH: /mnt/c/Program Files/NodeJS
PATH: /mnt/c/Windows/System32/OpenSSH
PATH: /mnt/c/Program Files/Git/cmd
PATH: /mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common
PATH: /mnt/c/Program Files (x86)/Microsoft SQL Server/140/Tools/Binn
PATH: /mnt/c/Program Files/Microsoft SQL Server/140/Tools/Binn
PATH: /mnt/c/Program Files (x86)/Microsoft SQL Server/140/DTS/Binn
PATH: /mnt/c/Program Files/Microsoft SQL Server/140/DTS/Binn
PATH: /mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn
PATH: /mnt/c/Users/peter/AppData/Local/Microsoft/WindowsApps
PATH: /mnt/c/Users/peter/AppData/Local/GitHubDesktop/bin
PATH: /mnt/c/Users/peter/AppData/Local/Microsoft/WindowsApps
PATH: /mnt/c/Users/peter/AppData/Roaming/npm
PATH: /mnt/d/Microsoft VS Code/bin
PATH: /snap/bin
-----------
Core tests.
-----------
configure:2438: checking for a BSD-compatible install
configure:2506: result: /usr/bin/install -c
configure:2517: checking whether build environment is sane
configure:2567: result: yes
configure:2708: checking for a thread-safe mkdir -p
configure:2747: result: /bin/mkdir -p
configure:2760: checking for gawk
configure:2776: found /usr/bin/gawk
configure:2787: result: gawk
configure:2798: checking whether make sets $(MAKE)
configure:2820: result: yes
configure:2976: checking for g++
configure:2992: found /usr/bin/g++
configure:3003: result: g++
configure:3030: checking for C++ compiler version
configure:3039: g++ --version >&5
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3050: $? = 0
configure:3039: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu118.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu18.04)
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1
configure:3050: $? = 0
configure:3039: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3050: $? = 1
configure:3039: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:3050: $? = 1
configure:3070: checking whether the C++ compiler works
configure:3092: g++ conftest.cpp >&5
configure:3096: $? = 0
configure:3144: result: yes
configure:3147: checking for C++ compiler default output file name
configure:3149: result: a.out
configure:3155: checking for suffix of executables
configure:3162: g++ -o conftest conftest.cpp >&5
configure:3166: $? = 0
configure:3188: result:
configure:3210: checking whether we are cross compiling
configure:3218: g++ -o conftest conftest.cpp >&5
configure:3222: $? = 0
configure:3229: ./conftest
configure:3233: $? = 0
configure:3248: result: no
configure:3253: checking for suffix of object files
configure:3275: g++ -c conftest.cpp >&5
configure:3279: $? = 0
configure:3300: result: o
configure:3304: checking whether we are using the GNU C++ compiler
configure:3323: g++ -c conftest.cpp >&5
configure:3323: $? = 0
configure:3332: result: yes
configure:3341: checking whether g++ accepts -g
configure:3361: g++ -c -g conftest.cpp >&5
configure:3361: $? = 0
configure:3402: result: yes
configure:3436: checking for style of include used by make
configure:3464: result: GNU
configure:3489: checking dependency style of g++
configure:3599: result: gcc3
configure:3662: checking for gcc
configure:3678: found /usr/bin/gcc
configure:3689: result: gcc
configure:3918: checking for C compiler version
configure:3927: gcc --version >&5
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3938: $? = 0
configure:3927: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu118.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu18.04)
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1
configure:3938: $? = 0
configure:3927: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3938: $? = 1
configure:3927: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3938: $? = 1
configure:3942: checking whether we are using the GNU C compiler
configure:3961: gcc -c conftest.c >&5
configure:3961: $? = 0
configure:3970: result: yes
configure:3979: checking whether gcc accepts -g
configure:3999: gcc -c -g conftest.c >&5
configure:3999: $? = 0
configure:4040: result: yes
configure:4057: checking for gcc option to accept ISO C89
configure:4121: gcc -c -g -O2 conftest.c >&5
configure:4121: $? = 0
configure:4134: result: none needed
configure:4156: checking dependency style of gcc
configure:4266: result: gcc3
configure:4342: checking build system type
configure:4356: result: x86_64-unknown-linux-gnu
configure:4376: checking host system type
configure:4389: result: x86_64-unknown-linux-gnu
configure:4430: checking how to print strings
configure:4457: result: printf
configure:4478: checking for a sed that does not truncate output
configure:4542: result: /bin/sed
configure:4560: checking for grep that handles long lines and -e
configure:4618: result: /bin/grep
configure:4623: checking for egrep
configure:4685: result: /bin/grep -E
configure:4690: checking for fgrep
configure:4752: result: /bin/grep -F
configure:4787: checking for ld used by gcc
configure:4854: result: /usr/bin/ld
configure:4861: checking if the linker (/usr/bin/ld) is GNU ld
configure:4876: result: yes
configure:4888: checking for BSD- or MS-compatible name lister (nm)
configure:4937: result: /usr/bin/nm -B
configure:5067: checking the name lister (/usr/bin/nm -B) interface
configure:5074: g++ -c -g -O2 conftest.cpp >&5
configure:5077: /usr/bin/nm -B "conftest.o"
configure:5080: output
0000000000000000 B some_variable
configure:5087: result: BSD nm
configure:5090: checking whether ln -s works
configure:5094: result: yes
configure:5102: checking the maximum length of command line arguments
configure:5227: result: 1572864
configure:5244: checking whether the shell understands some XSI constructs
configure:5254: result: yes
configure:5258: checking whether the shell understands "+="
configure:5264: result: yes
configure:5299: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
configure:5339: result: func_convert_file_noop
configure:5346: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
configure:5366: result: func_convert_file_noop
configure:5373: checking for /usr/bin/ld option to reload object files
configure:5380: result: -r
configure:5454: checking for objdump
configure:5470: found /usr/bin/objdump
configure:5481: result: objdump
configure:5513: checking how to recognize dependent libraries
configure:5715: result: pass_all
configure:5800: checking for dlltool
configure:5830: result: no
configure:5860: checking how to associate runtime and link libraries
configure:5887: result: printf %s\n
configure:5948: checking for ar
configure:5964: found /usr/bin/ar
configure:5975: result: ar
configure:6012: checking for archiver @file support
configure:6029: g++ -c -g -O2 conftest.cpp >&5
configure:6029: $? = 0
configure:6032: ar cru libconftest.a @conftest.lst >&5
ar: u' modifier ignored since
D' is the default (see U') configure:6035: $? = 0 configure:6040: ar cru libconftest.a @conftest.lst >&5 ar:
u' modifier ignored since D' is the default (see
U')
ar: conftest.o: No such file or directory
configure:6043: $? = 1
configure:6055: result: @
configure:6113: checking for strip
configure:6129: found /usr/bin/strip
configure:6140: result: strip
configure:6212: checking for ranlib
configure:6228: found /usr/bin/ranlib
configure:6239: result: ranlib
configure:6341: checking command to parse /usr/bin/nm -B output from gcc object
configure:6460: g++ -c -g -O2 conftest.cpp >&5
configure:6463: $? = 0
configure:6467: /usr/bin/nm -B conftest.o | sed -n -e 's/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]([_A-Za-z][_A-Za-z0-9])$/\1 \2 \2/p' | sed '/ __gnu_lto/d' > conftest.nm
configure:6470: $? = 0
configure:6536: g++ -o conftest -g -O2 conftest.cpp conftstm.o >&5
configure:6539: $? = 0
configure:6577: result: ok
configure:6614: checking for sysroot
configure:6644: result: no
configure:6722: g++ -c -g -O2 conftest.cpp >&5
configure:6725: $? = 0
configure:6888: checking for mt
configure:6904: found /bin/mt
configure:6915: result: mt
configure:6938: checking if mt is a manifest tool
configure:6944: mt '-?'
configure:6952: result: no
configure:7584: checking how to run the C preprocessor
configure:7615: gcc -E conftest.c
configure:7615: $? = 0
configure:7629: gcc -E conftest.c
conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:7629: $? = 1
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "libpqxx"
| #define PACKAGE_TARNAME "libpqxx"
| #define PACKAGE_VERSION "4.0"
| #define PACKAGE_STRING "libpqxx 4.0"
| #define PACKAGE_BUGREPORT "Jeroen T. Vermeulen [email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libpqxx"
| #define VERSION "4.0"
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:7654: result: gcc -E
configure:7674: gcc -E conftest.c
configure:7674: $? = 0
configure:7688: gcc -E conftest.c
conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:7688: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libpqxx"
| #define PACKAGE_TARNAME "libpqxx"
| #define PACKAGE_VERSION "4.0"
| #define PACKAGE_STRING "libpqxx 4.0"
| #define PACKAGE_BUGREPORT "Jeroen T. Vermeulen [email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libpqxx"
| #define VERSION "4.0"
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:7717: checking for ANSI C header files
configure:7737: gcc -c -g -O2 conftest.c >&5
configure:7737: $? = 0
configure:7810: gcc -o conftest -g -O2 conftest.c >&5
configure:7810: $? = 0
configure:7810: ./conftest
configure:7810: $? = 0
configure:7821: result: yes
configure:7834: checking for sys/types.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for sys/stat.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for stdlib.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for string.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for memory.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for strings.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for inttypes.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for stdint.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7834: checking for unistd.h
configure:7834: gcc -c -g -O2 conftest.c >&5
configure:7834: $? = 0
configure:7834: result: yes
configure:7848: checking for dlfcn.h
configure:7848: gcc -c -g -O2 conftest.c >&5
configure:7848: $? = 0
configure:7848: result: yes
configure:8015: checking for objdir
configure:8030: result: .libs
configure:8301: checking if gcc supports -fno-rtti -fno-exceptions
configure:8319: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C
configure:8323: $? = 0
configure:8336: result: no
configure:8646: checking for gcc option to produce PIC
configure:8653: result: -fPIC -DPIC
configure:8661: checking if gcc PIC flag -fPIC -DPIC works
configure:8679: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
configure:8683: $? = 0
configure:8696: result: yes
configure:8725: checking if gcc static flag -static works
configure:8753: result: yes
configure:8768: checking if gcc supports -c -o file.o
configure:8789: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:8793: $? = 0
configure:8815: result: yes
configure:8823: checking if gcc supports -c -o file.o
configure:8870: result: yes
configure:8903: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:10065: result: yes
configure:10310: checking dynamic linker characteristics
configure:10825: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
configure:10825: $? = 0
configure:11059: result: GNU/Linux ld.so
configure:11166: checking how to hardcode library paths into programs
configure:11191: result: immediate
configure:11731: checking whether stripping libraries is possible
configure:11736: result: yes
configure:11771: checking if libtool supports shared libraries
configure:11773: result: yes
configure:11776: checking whether to build shared libraries
configure:11797: result: no
configure:11800: checking whether to build static libraries
configure:11804: result: yes
configure:11827: checking how to run the C++ preprocessor
configure:11854: g++ -E conftest.cpp
configure:11854: $? = 0
configure:11868: g++ -E conftest.cpp
conftest.cpp:23:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:11868: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libpqxx"
| #define PACKAGE_TARNAME "libpqxx"
| #define PACKAGE_VERSION "4.0"
| #define PACKAGE_STRING "libpqxx 4.0"
| #define PACKAGE_BUGREPORT "Jeroen T. Vermeulen [email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libpqxx"
| #define VERSION "4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:11893: result: g++ -E
configure:11913: g++ -E conftest.cpp
configure:11913: $? = 0
configure:11927: g++ -E conftest.cpp
conftest.cpp:23:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:11927: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libpqxx"
| #define PACKAGE_TARNAME "libpqxx"
| #define PACKAGE_VERSION "4.0"
| #define PACKAGE_STRING "libpqxx 4.0"
| #define PACKAGE_BUGREPORT "Jeroen T. Vermeulen [email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libpqxx"
| #define VERSION "4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| / end confdefs.h. /
| #include <ac_nonexistent.h>
configure:12097: checking for ld used by g++
configure:12164: result: /usr/bin/ld -m elf_x86_64
configure:12171: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld
configure:12186: result: yes
configure:12241: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:13245: result: yes
configure:13280: g++ -c -g -O2 conftest.cpp >&5
configure:13283: $? = 0
configure:13803: checking for g++ option to produce PIC
configure:13810: result: -fPIC -DPIC
configure:13818: checking if g++ PIC flag -fPIC -DPIC works
configure:13836: g++ -c -g -O2 -fPIC -DPIC -DPIC conftest.cpp >&5
configure:13840: $? = 0
configure:13853: result: yes
configure:13876: checking if g++ static flag -static works
configure:13904: result: yes
configure:13916: checking if g++ supports -c -o file.o
configure:13937: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5
configure:13941: $? = 0
configure:13963: result: yes
configure:13968: checking if g++ supports -c -o file.o
configure:14015: result: yes
configure:14045: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
configure:14082: result: yes
configure:14225: checking dynamic linker characteristics
configure:14908: result: GNU/Linux ld.so
configure:14961: checking how to hardcode library paths into programs
configure:14986: result: immediate
configure:15045: checking whether make sets $(MAKE)
configure:15067: result: yes
configure:15078: checking for mkdir
configure:15096: found /bin/mkdir
configure:15108: result: /bin/mkdir
configure:15118: checking for pkg-config
configure:15136: found /usr/bin/pkg-config
configure:15148: result: /usr/bin/pkg-config
configure:15169: checking for doxygen
configure:15202: result: no
configure:15217: checking for dot
configure:15245: result: NO
configure:15255: checking for xmlto
configure:15288: result: no
configure:15322: checking whether to enable maintainer-specific portions of Makefiles
configure:15331: result: no
configure:15346: checking maintainer mode
configure:15353: result:
configure:15452: checking g++ visibility attribute
configure:15470: g++ -c -g -O2 -Werror conftest.cpp >&5
configure:15470: $? = 0
configure:15478: result: yes
configure:15370: checking whether g++ accepts -fvisibility-inlines-hidden
configure:15383: g++ -c -g -O2 -Werror -fvisibility-inlines-hidden conftest.cpp >&5
configure:15383: $? = 0
configure:15389: result: yes
configure:15490: checking g++ const attribute
configure:15504: g++ -c -g -O2 conftest.cpp >&5
configure:15504: $? = 0
configure:15512: result: yes
configure:15515: checking g++ deprecation attribute
configure:15529: g++ -c -g -O2 conftest.cpp >&5
configure:15529: $? = 0
configure:15537: result: yes
configure:15540: checking g++ noreturn attribute
configure:15559: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:27:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
void attribute ((noreturn)) f() throw (int);
^~~~~
conftest.cpp:28:17: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
void f()throw(int){throw 1;}
^~~~~
configure:15559: $? = 0
configure:15567: result: yes
configure:15570: checking g++ pure attribute
configure:15584: g++ -c -g -O2 conftest.cpp >&5
configure:15584: $? = 0
configure:15592: result: yes
configure:15604: checking name of standard library namespace (normally "std")
configure:15625: g++ -c -g -O2 conftest.cpp >&5
configure:15625: $? = 0
configure:15637: result: ::std
configure:15648: checking boost/smart_ptr.hpp usability
configure:15648: g++ -c -g -O2 conftest.cpp >&5
configure:15648: $? = 0
configure:15648: result: yes
configure:15648: checking boost/smart_ptr.hpp presence
configure:15648: g++ -E conftest.cpp
configure:15648: $? = 0
configure:15648: result: yes
configure:15648: checking for boost/smart_ptr.hpp
configure:15648: result: yes
configure:15660: checking whether TR1 headers live in tr1 directory
configure:15674: g++ -c -g -O2 conftest.cpp >&5
configure:15674: $? = 0
configure:15682: result: yes
configure:15692: checking namespace of TR1 extension to the C++ standard
configure:15719: g++ -c -g -O2 conftest.cpp >&5
configure:15719: $? = 0
configure:15731: result: std::tr1
configure:15735: checking ios usability
configure:15735: g++ -c -g -O2 conftest.cpp >&5
configure:15735: $? = 0
configure:15735: result: yes
configure:15735: checking ios presence
configure:15735: g++ -E conftest.cpp
configure:15735: $? = 0
configure:15735: result: yes
configure:15735: checking for ios
configure:15735: result: yes
configure:15747: checking streambuf usability
configure:15747: g++ -c -g -O2 conftest.cpp >&5
configure:15747: $? = 0
configure:15747: result: yes
configure:15747: checking streambuf presence
configure:15747: g++ -E conftest.cpp
configure:15747: $? = 0
configure:15747: result: yes
configure:15747: checking for streambuf
configure:15747: result: yes
configure:15759: checking locale usability
configure:15759: g++ -c -g -O2 conftest.cpp >&5
configure:15759: $? = 0
configure:15759: result: yes
configure:15759: checking locale presence
configure:15759: g++ -E conftest.cpp
configure:15759: $? = 0
configure:15759: result: yes
configure:15759: checking for locale
configure:15759: result: yes
configure:15771: checking locale function and stringstream::imbue
configure:15788: g++ -c -g -O2 conftest.cpp >&5
configure:15788: $? = 0
configure:15796: result: yes
configure:15799: checking char_traits template
configure:15814: g++ -c -g -O2 conftest.cpp >&5
configure:15814: $? = 0
configure:15822: result: yes
configure:15825: checking "warning" preprocessor directive
configure:15839: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:37:2: warning: #warning cpp supports warning directive [-Wcpp]
#warning cpp supports warning directive
^~~~~~~
configure:15839: $? = 0
configure:15847: result: yes
configure:15850: checking "message" preprocessor pragma
configure:15864: g++ -c -g -O2 conftest.cpp >&5
conftest.cpp:38:46: note: #pragma message: cpp supports message pragma
#pragma message("cpp supports message pragma")
^
configure:15864: $? = 0
configure:15872: result: yes
configure:15880: checking for pg_config
configure:15898: found /usr/bin/pg_config
configure:15910: result: /usr/bin/pg_config
configure:15929: using PostgreSQL headers at /usr/include/postgresql
configure:15932: using PostgreSQL libraries at /usr/lib/x86_64-linux-gnu
configure:15943: checking for ANSI C header files
configure:16047: result: yes
configure:16056: checking ability to compile programs using the standard C library
configure:16071: g++ -c -g -O2 conftest.cpp >&5
configure:16071: $? = 0
configure:16088: result: yes
configure:16094: checking for library containing select
configure:16125: g++ -o conftest -g -O2 conftest.cpp >&5
configure:16125: $? = 0
configure:16142: result: none required
configure:16206: checking /usr/include/postgresql/libpq-fe.h usability
configure:16206: g++ -c -g -O2 conftest.cpp >&5
configure:16206: $? = 0
configure:16206: result: yes
configure:16206: checking /usr/include/postgresql/libpq-fe.h presence
configure:16206: g++ -E conftest.cpp
configure:16206: $? = 0
configure:16206: result: yes
configure:16206: checking for /usr/include/postgresql/libpq-fe.h
configure:16206: result: yes
configure:16226: checking for ability to compile source files using libpq
configure:16239: g++ -c -g -O2 conftest.cpp >&5
configure:16239: $? = 0
configure:16252: result: yes
configure:16266: checking for main in -lpq
configure:16285: gcc -o conftest -g -O2 -L/usr/lib/x86_64-linux-gnu conftest.c -lpq -L/usr/lib/x86_64-linux-gnu >&5
configure:16285: $? = 0
configure:16294: result: yes
configure:16313: checking for PQexec in -lpq
configure:16338: gcc -o conftest -g -O2 -L/usr/lib/x86_64-linux-gnu conftest.c -lpq -L/usr/lib/x86_64-linux-gnu -lpq >&5
configure:16338: $? = 0
configure:16347: result: yes
configure:16385: checking for correct C++ linkage of basic libpq functions
configure:16424: g++ -o conftest -g -O2 -L/usr/lib/x86_64-linux-gnu conftest.cpp >&5
/tmp/cc3NZIfp.o: In function main': /home/peter/libpqxx-4.0/conftest.cpp:44: undefined reference to
PQexec'
collect2: error: ld returned 1 exit status
configure:16424: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libpqxx"
| #define PACKAGE_TARNAME "libpqxx"
| #define PACKAGE_VERSION "4.0"
| #define PACKAGE_STRING "libpqxx 4.0"
| #define PACKAGE_BUGREPORT "Jeroen T. Vermeulen [email protected]"
| #define PACKAGE_URL ""
| #define PACKAGE "libpqxx"
| #define VERSION "4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define PQXX_HAVE_GCC_VISIBILITY 1
| #define PQXX_HAVE_GCC_CONST 1
| #define PQXX_HAVE_GCC_DEPRECATED 1
| #define PQXX_HAVE_GCC_NORETURN 1
| #define PQXX_HAVE_GCC_PURE 1
| #define PGSTD std
| #define PQXX_HAVE_BOOST_SMART_PTR 1
| #define PQXX_TR1_HEADERS 1
| #define PQXXTR1 std::tr1
| #define PQXX_HAVE_IOS 1
| #define PQXX_HAVE_STREAMBUF 1
| #define PQXX_HAVE_LOCALE 1
| #define PQXX_HAVE_IMBUE 1
| #define PQXX_HAVE_CHAR_TRAITS 1
| #define PQXX_HAVE_CPP_WARNING 1
| #define PQXX_HAVE_CPP_PRAGMA_MESSAGE 1
| #define STDC_HEADERS 1
| #define HAVE_LIBPQ 1
| #define HAVE_LIBPQ 1
| / end confdefs.h. */
|
| #include </usr/include/postgresql/libpq-fe.h>
| int main(){return !PQexec(0,0);}
configure:16427: error:
Linking a call to libpq failed in C++, even though it succeeded in C. If your
C and C++ compilers are very different beasts, this may mean that we do not have
the right options for linking with it after all.
Read the config.log file for more detailed information. Look for the last error
message, which may be several pages up from the end of the file.
----------------
Cache variables.
----------------
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header__usr_include_postgresql_libpq_fe_h=yes
ac_cv_header_boost_smart_ptr_hpp=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_ios=yes
ac_cv_header_locale=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_streambuf=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_lib_pq=ac_cv_lib_pq_main
ac_cv_lib_pq_PQexec=yes
ac_cv_lib_pq_main=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GREP=/bin/grep
ac_cv_path_MKDIR=/bin/mkdir
ac_cv_path_PG_CONFIG=/usr/bin/pg_config
ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_HAVE_DOT=NO
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_MANIFEST_TOOL=mt
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_search_select='none required'
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
lt_cv_ar_at_file=@
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_LDCXX='/usr/bin/ld -m elf_x86_64'
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_compiler_static_works_CXX=yes
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_shlibpath_overrides_runpath=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '''s/^.[ ]([ABCDGIRSTW][ABCDGIRSTW])[ ][ ]([_A-Za-z][_A-Za-z0-9])$/\1 \2 \2/p''' | sed '''/ __gnu_lto/d''''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '''s/^: ([^ ])[ ]$/ {"\1", (void ) 0},/p''' -e '''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"\2", (void ) &\2},/p''''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '''s/^: ([^ ])[ ]$/ {"\1", (void ) 0},/p''' -e '''s/^[ABCDGIRSTW] ([^ ]) (lib[^ ])$/ {"\2", (void ) &\2},/p''' -e '''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"lib\2", (void ) &\2},/p''''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '''s/^T . (.)$/extern int \1();/p''' -e '''s/^[ABCDGIRSTW]* .* (.*)$/extern char \1;/p''''
lt_cv_sys_max_cmd_len=1572864
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
-----------------
Output variables.
-----------------
ACLOCAL='${SHELL} /home/peter/libpqxx-4.0/config/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/peter/libpqxx-4.0/config/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /home/peter/libpqxx-4.0/config/missing --run autoconf'
AUTOHEADER='${SHELL} /home/peter/libpqxx-4.0/config/missing --run autoheader'
AUTOMAKE='${SHELL} /home/peter/libpqxx-4.0/config/missing --run automake-1.11'
AWK='gawk'
BUILD_REFERENCE_FALSE='#'
BUILD_REFERENCE_TRUE=''
BUILD_TUTORIAL_FALSE='#'
BUILD_TUTORIAL_TRUE=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DOXYGEN=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP='/bin/grep -F'
GREP='/bin/grep'
HAVE_DOT='NO'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS=' -L/usr/lib/x86_64-linux-gnu'
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/peter/libpqxx-4.0/config/missing --run makeinfo'
MANIFEST_TOOL=':'
MKDIR='/bin/mkdir'
MKDIR_P='/bin/mkdir -p'
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='libpqxx'
PACKAGE_BUGREPORT='Jeroen T. Vermeulen [email protected]'
PACKAGE_NAME='libpqxx'
PACKAGE_STRING='libpqxx 4.0'
PACKAGE_TARNAME='libpqxx'
PACKAGE_URL=''
PACKAGE_VERSION='4.0'
PATH_SEPARATOR=':'
PG_CONFIG='/usr/bin/pg_config'
PKG_CONFIG='/usr/bin/pkg-config'
POSTGRES_INCLUDE='-I/usr/include/postgresql'
POSTGRES_LIB=''
PQXXVERSION='4.0'
PQXX_ABI='4.0'
PQXX_MAJOR='4'
PQXX_MINOR='0'
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP='strip'
VERSION='4.0'
XMLTO=''
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/peter/libpqxx-4.0/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
with_postgres_include='/usr/include/postgresql'
with_postgres_lib='/usr/lib/x86_64-linux-gnu'
-----------
confdefs.h.
-----------
/* confdefs.h */
#define PACKAGE_NAME "libpqxx"
#define PACKAGE_TARNAME "libpqxx"
#define PACKAGE_VERSION "4.0"
#define PACKAGE_STRING "libpqxx 4.0"
#define PACKAGE_BUGREPORT "Jeroen T. Vermeulen [email protected]"
#define PACKAGE_URL ""
#define PACKAGE "libpqxx"
#define VERSION "4.0"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define PQXX_HAVE_GCC_VISIBILITY 1
#define PQXX_HAVE_GCC_CONST 1
#define PQXX_HAVE_GCC_DEPRECATED 1
#define PQXX_HAVE_GCC_NORETURN 1
#define PQXX_HAVE_GCC_PURE 1
#define PGSTD std
#define PQXX_HAVE_BOOST_SMART_PTR 1
#define PQXX_TR1_HEADERS 1
#define PQXXTR1 std::tr1
#define PQXX_HAVE_IOS 1
#define PQXX_HAVE_STREAMBUF 1
#define PQXX_HAVE_LOCALE 1
#define PQXX_HAVE_IMBUE 1
#define PQXX_HAVE_CHAR_TRAITS 1
#define PQXX_HAVE_CPP_WARNING 1
#define PQXX_HAVE_CPP_PRAGMA_MESSAGE 1
#define STDC_HEADERS 1
#define HAVE_LIBPQ 1
#define HAVE_LIBPQ 1
configure: exit 1
`
I'm using:
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
psql (PostgreSQL) 10.5 (Ubuntu 10.5-0ubuntu0.18.04)
Is this a bug, or is there something I haven't configured correctly?
Do you have any tips on different things I could try? Eg. maybe trying out different versions of libpqxx?
I have apt-get update and upgraded all packages on my system, and I have no idea where to go from here, other than posting the error here.
Best, Peter.
OutputFromConfigure.txt
config.log.txt
from libpqxx.
Related Issues (20)
- Can I use stream_to to insert multiple records while one field is Postgis Geometry type? HOT 5
- std::optional<std::chrono::year_month_day> to DATE error if optional is empty HOT 4
- Encoding problems with bytea HOT 22
- Undefined refences when compiling example from the documentation HOT 10
- After compilation, there are only pqxx files but no pqxx.hxx files. Is this normal? HOT 31
- Rtti usage on demand HOT 6
- linking issue when using torch+pqxx in cmake. HOT 11
- Can't use libpqxx 7.9.0 from vcpkg in a Visual Studio 2022 C++ 17 project HOT 6
- Allow parsing arrays without connection HOT 21
- Any example to deal with time or date? HOT 2
- ERROR: Unsupported server version; 9.0 is the minimum. HOT 4
- Readthedocs /stable documentation page is empty. HOT 7
- Make pqxx iterators model the right iterator category HOT 9
- CMakeDetermineCompileFeatures throwing errors HOT 24
- `stream_to` uses `quote_name` as 2 argument function HOT 6
- std::ranges undefined? HOT 7
- building fail on github actions using cmake 3.30 HOT 7
- Cross compile of the pqxx in c++ for arm7 HOT 4
- The linking issue with the compiled artifact libpqxx.so HOT 7
- query() for prepared statements HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpqxx.