BUG #14021: configure failing to find shared libperl

From: aelmalinka(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14021: configure failing to find shared libperl
Date: 2016-03-14 22:52:20
Message-ID: 20160314225220.8903.60205@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14021
Logged by: Michael Thomas
Email address: aelmalinka(at)gmail(dot)com
PostgreSQL version: 9.5.1
Operating system: Linux (Exherbo)
Description:

configure fails to detect shared perl is enabled because $Config{useshrplib}
is set to define, unsure if this is a bug w/ perl or w/ postgresql however
both versions of perl installed 5.22.1 and 5.20.3 are set the same, and this
has only recently become a problem despite this being an upgrade

output of config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PostgreSQL configure 9.5.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--prefix=/usr/x86_64-pc-linux-gnu --bindir=/usr/x86_64-pc-linux-gnu/bin
--sbindir=/usr/x86_64-pc-linux-gnu/bin --libdir=/usr/x86_64-pc-linux-gnu/lib
--datadir=/usr/share --datarootdir=/usr/share --infodir=/usr/share/info
--mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var/lib
--disable-dependency-tracking --disable-silent-rules --enable-fast-install
--enable-nls --with-system-tzdata=/usr/share/zoneinfo --with-uuid=e2fs
--with-zlib --without-ldap --with-pam --with-perl --with-python
--with-readline --with-openssl --without-tcl --with-libxml --with-libxslt

## --------- ##
## Platform. ##
## --------- ##

hostname = kiera
uname -m = x86_64
uname -r = 4.5.0
uname -s = Linux
uname -v = #26 SMP Mon Mar 14 15:51:22 EDT 2016

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = x86_64
/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/x86_64-pc-linux-gnu/libexec/paludis/utils/exheres-0
PATH: /usr/x86_64-pc-linux-gnu/libexec/paludis/utils
PATH: /usr/bin
PATH: /usr/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/host/bin
PATH: /opt/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2750: checking build system type
configure:2764: result: x86_64-pc-linux-gnu
configure:2784: checking host system type
configure:2797: result: x86_64-pc-linux-gnu
configure:2819: checking which template to use
configure:2889: result: linux
configure:2984: checking whether to build with 64-bit integer date/time
support
configure:3013: result: yes
configure:3020: checking whether NLS is wanted
configure:3052: result: yes
configure:3060: checking for default port number
configure:3085: result: 5432
configure:3503: checking for block size
configure:3537: result: 8kB
configure:3549: checking for segment size
configure:3578: result: 1GB
configure:3590: checking for WAL block size
configure:3625: result: 8kB
configure:3637: checking for WAL segment size
configure:3672: result: 16MB
configure:3725: checking for x86_64-pc-linux-gnu-gcc
configure:3752: result: x86_64-pc-linux-gnu-cc
configure:3827: checking for C compiler version
configure:3836: x86_64-pc-linux-gnu-cc --version >&5
x86_64-pc-linux-gnu-cc (GCC) 5.3.0
Copyright (C) 2015 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:3847: $? = 0
configure:3836: x86_64-pc-linux-gnu-cc -v >&5
Using built-in specs.
COLLECT_GCC=x86_64-pc-linux-gnu-cc
COLLECT_LTO_WRAPPER=/usr/x86_64-pc-linux-gnu/libexec/gcc/x86_64-pc-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/paludis/build/sys-devel-gcc-5.3.0-r2/work/gcc-5.3.0/configure
--cache-file=config.cache --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--prefix=/usr/x86_64-pc-linux-gnu --datarootdir=/usr/share
--localstatedir=/var --sysconfdir=/etc --disable-dependency-tracking
--enable-fast-install --enable-serial-configure --disable-bootstrap
--disable-decimal-float --disable-install-libiberty --disable-libada
--disable-libatomic --disable-libcilkrts --disable-libffi
--disable-libgfortran --disable-libgo --disable-libgomp --disable-libitm
--disable-libjava --disable-libmpx --disable-libobjc --disable-liboffloadmic
--disable-libquadmath --disable-libsanitizer --disable-libssp
--disable-libstdcxx --disable-libstdc++-v3 --disable-libvtv
--disable-vtable-verify --disable-multilib --disable-nls --disable-shared
--enable-lto --disable-plugin --enable-threads
--enable-languages=c,c++,fortran,objc,obj-c++ --with-sysroot=
--with-gxx-include-dir=/usr/x86_64-pc-linux-gnu/include/c++/5.3.0
--without-isl --program-transform='s,$,-5.1,'
--with-lib-path=/usr/x86_64-pc-linux-gnu/lib
--with-as=/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-as
--with-ld=/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld
--with-system-zlib --with-glibc-version=2.11 --enable-linker-build-id
--with-multilib-list=
Thread model: posix
gcc version 5.3.0 (GCC)
configure:3847: $? = 0
configure:3836: x86_64-pc-linux-gnu-cc -V >&5
x86_64-pc-linux-gnu-cc: error: unrecognized command line option '-V'
x86_64-pc-linux-gnu-cc: fatal error: no input files
compilation terminated.
configure:3847: $? = 1
configure:3836: x86_64-pc-linux-gnu-cc -qversion >&5
x86_64-pc-linux-gnu-cc: error: unrecognized command line option '-qversion'
x86_64-pc-linux-gnu-cc: fatal error: no input files
compilation terminated.
configure:3847: $? = 1
configure:3867: checking whether the C compiler works
configure:3889: x86_64-pc-linux-gnu-cc -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:3893: $? = 0
configure:3941: result: yes
configure:3944: checking for C compiler default output file name
configure:3946: result: a.out
configure:3952: checking for suffix of executables
configure:3959: x86_64-pc-linux-gnu-cc -o conftest -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:3963: $? = 0
configure:3985: result:
configure:4007: checking whether we are cross compiling
configure:4015: x86_64-pc-linux-gnu-cc -o conftest -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:4019: $? = 0
configure:4026: ./conftest
configure:4030: $? = 0
configure:4045: result: no
configure:4050: checking for suffix of object files
configure:4072: x86_64-pc-linux-gnu-cc -c -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:4076: $? = 0
configure:4097: result: o
configure:4101: checking whether we are using the GNU C compiler
configure:4120: x86_64-pc-linux-gnu-cc -c -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:4120: $? = 0
configure:4129: result: yes
configure:4138: checking whether x86_64-pc-linux-gnu-cc accepts -g
configure:4158: x86_64-pc-linux-gnu-cc -c -g -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:4158: $? = 0
configure:4199: result: yes
configure:4216: checking for x86_64-pc-linux-gnu-cc option to accept ISO
C89
configure:4279: x86_64-pc-linux-gnu-cc -c -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
configure:4279: $? = 0
configure:4292: result: none needed
configure:4330: x86_64-pc-linux-gnu-cc -c -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:24:1: error: unknown type name 'choke'
choke me
^
configure:4330: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "9.5.1"
| #define PACKAGE_STRING "PostgreSQL 9.5.1"
| #define PACKAGE_BUGREPORT "pgsql-bugs(at)postgresql(dot)org"
| #define PACKAGE_URL ""
| #define PG_MAJORVERSION "9.5"
| #define PG_VERSION "9.5.1"
| #define USE_INTEGER_DATETIMES 1
| #define ENABLE_NLS 1
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| #define BLCKSZ 8192
| #define RELSEG_SIZE 131072
| #define XLOG_BLCKSZ 8192
| #define XLOG_SEG_SIZE (16 * 1024 * 1024)
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __INTEL_COMPILER
| choke me
| #endif
| ;
| return 0;
| }
configure:4352: x86_64-pc-linux-gnu-cc -c -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:24:1: error: unknown type name 'choke'
choke me
^
configure:4352: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "9.5.1"
| #define PACKAGE_STRING "PostgreSQL 9.5.1"
| #define PACKAGE_BUGREPORT "pgsql-bugs(at)postgresql(dot)org"
| #define PACKAGE_URL ""
| #define PG_MAJORVERSION "9.5"
| #define PG_VERSION "9.5.1"
| #define USE_INTEGER_DATETIMES 1
| #define ENABLE_NLS 1
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| #define BLCKSZ 8192
| #define RELSEG_SIZE 131072
| #define XLOG_BLCKSZ 8192
| #define XLOG_SEG_SIZE (16 * 1024 * 1024)
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __SUNPRO_C
| choke me
| #endif
| ;
| return 0;
| }
configure:4407: checking whether x86_64-pc-linux-gnu-cc supports
-Wdeclaration-after-statement
configure:4427: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
configure:4427: $? = 0
configure:4436: result: yes
configure:4442: checking whether x86_64-pc-linux-gnu-cc supports
-Wendif-labels
configure:4462: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
configure:4462: $? = 0
configure:4471: result: yes
configure:4477: checking whether x86_64-pc-linux-gnu-cc supports
-Wmissing-format-attribute
configure:4497: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -g3 -gdwarf-4 -fvar-tracking-assignments
-march=native -pipe -O2 -D_GNU_SOURCE conftest.c >&5
configure:4497: $? = 0
configure:4506: result: yes
configure:4513: checking whether x86_64-pc-linux-gnu-cc supports
-Wformat-security
configure:4533: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
configure:4533: $? = 0
configure:4542: result: yes
configure:4549: checking whether x86_64-pc-linux-gnu-cc supports
-fno-strict-aliasing
configure:4569: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -g3
-gdwarf-4 -fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE
conftest.c >&5
configure:4569: $? = 0
configure:4578: result: yes
configure:4585: checking whether x86_64-pc-linux-gnu-cc supports -fwrapv
configure:4605: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
-g3 -gdwarf-4 -fvar-tracking-assignments -march=native -pipe -O2
-D_GNU_SOURCE conftest.c >&5
configure:4605: $? = 0
configure:4614: result: yes
configure:4621: checking whether x86_64-pc-linux-gnu-cc supports
-fexcess-precision=standard
configure:4641: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -g3 -gdwarf-4 -fvar-tracking-assignments
-march=native -pipe -O2 -D_GNU_SOURCE conftest.c >&5
configure:4641: $? = 0
configure:4650: result: yes
configure:4657: checking whether x86_64-pc-linux-gnu-cc supports
-funroll-loops
configure:4677: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -funroll-loops -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
configure:4677: $? = 0
configure:4686: result: yes
configure:4692: checking whether x86_64-pc-linux-gnu-cc supports
-ftree-vectorize
configure:4712: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -ftree-vectorize -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
configure:4712: $? = 0
configure:4721: result: yes
configure:4730: checking whether x86_64-pc-linux-gnu-cc supports
-Wunused-command-line-argument
configure:4750: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -Wunused-command-line-argument -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
x86_64-pc-linux-gnu-cc: error: unrecognized command line option
'-Wunused-command-line-argument'
configure:4750: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "9.5.1"
| #define PACKAGE_STRING "PostgreSQL 9.5.1"
| #define PACKAGE_BUGREPORT "pgsql-bugs(at)postgresql(dot)org"
| #define PACKAGE_URL ""
| #define PG_MAJORVERSION "9.5"
| #define PG_VERSION "9.5.1"
| #define USE_INTEGER_DATETIMES 1
| #define ENABLE_NLS 1
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| #define BLCKSZ 8192
| #define RELSEG_SIZE 131072
| #define XLOG_BLCKSZ 8192
| #define XLOG_SEG_SIZE (16 * 1024 * 1024)
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4759: result: no
configure:4994: checking whether the C compiler still works
configure:5007: x86_64-pc-linux-gnu-cc -o conftest -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
>&5
configure:5007: $? = 0
configure:5008: result: yes
configure:5033: x86_64-pc-linux-gnu-cc -c -Wall -Wmissing-prototypes
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
-fexcess-precision=standard -g3 -gdwarf-4 -fvar-tracking-assignments
-march=native -pipe -O2 -g3 -gdwarf-4 -fvar-tracking-assignments
-march=native -pipe -O2 -D_GNU_SOURCE conftest.c >&5
configure:5033: $? = 0
configure:5046: checking how to run the C preprocessor
configure:5116: result: x86_64-pc-linux-gnu-cpp
configure:5136: x86_64-pc-linux-gnu-cpp -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
configure:5136: $? = 0
configure:5150: x86_64-pc-linux-gnu-cpp -g3 -gdwarf-4
-fvar-tracking-assignments -march=native -pipe -O2 -D_GNU_SOURCE conftest.c
conftest.c:19:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:5150: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "PostgreSQL"
| #define PACKAGE_TARNAME "postgresql"
| #define PACKAGE_VERSION "9.5.1"
| #define PACKAGE_STRING "PostgreSQL 9.5.1"
| #define PACKAGE_BUGREPORT "pgsql-bugs(at)postgresql(dot)org"
| #define PACKAGE_URL ""
| #define PG_MAJORVERSION "9.5"
| #define PG_VERSION "9.5.1"
| #define USE_INTEGER_DATETIMES 1
| #define ENABLE_NLS 1
| #define DEF_PGPORT 5432
| #define DEF_PGPORT_STR "5432"
| #define BLCKSZ 8192
| #define RELSEG_SIZE 131072
| #define XLOG_BLCKSZ 8192
| #define XLOG_SEG_SIZE (16 * 1024 * 1024)
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5292: checking allow thread-safe client libraries
configure:5322: result: yes
configure:5329: checking whether to build with Tcl
configure:5355: result: no
configure:5387: checking whether to build Perl modules
configure:5413: result: yes
configure:5420: checking whether to build Python modules
configure:5446: result: yes
configure:5453: checking whether to build with GSSAPI support
configure:5484: result: no
configure:5527: checking whether to build with PAM support
configure:5555: result: yes
configure:5562: checking whether to build with LDAP support
configure:5590: result: no
configure:5597: checking whether to build with Bonjour support
configure:5625: result: no
configure:5632: checking whether to build with OpenSSL support
configure:5660: result: yes
configure:5667: checking whether to build with SELinux support
configure:5694: result: no
configure:5884: checking for xml2-config
configure:5900: found /usr/bin/xml2-config
configure:5911: result: xml2-config
configure:6038: checking for grep that handles long lines and -e
configure:6096: result: /usr/bin/grep
configure:6101: checking for egrep
configure:6163: result: /usr/bin/grep -E
configure:6210: checking for ld used by GCC
configure:6273: result: x86_64-pc-linux-gnu-ld
configure:6280: checking if the linker (x86_64-pc-linux-gnu-ld) is GNU ld
GNU ld (GNU Binutils) 2.25.1
configure:6292: result: yes
configure:6336: checking for x86_64-pc-linux-gnu-ranlib
configure:6363: result: x86_64-pc-linux-gnu-ranlib
configure:6429: checking for x86_64-pc-linux-gnu-strip
configure:6445: found /usr/bin/x86_64-pc-linux-gnu-strip
configure:6456: result: x86_64-pc-linux-gnu-strip
configure:6519: checking whether it is possible to strip libraries
configure:6524: result: yes
configure:6549: checking for x86_64-pc-linux-gnu-ar
configure:6576: result: x86_64-pc-linux-gnu-ar
configure:6931: checking for a BSD-compatible install
configure:6999: result: /usr/bin/ginstall -c
configure:7021: checking for tar
configure:7039: found /usr/bin/tar
configure:7051: result: /usr/bin/tar
configure:7059: checking whether ln -s works
configure:7063: result: yes
configure:7074: checking for gawk
configure:7090: found /usr/bin/gawk
configure:7101: result: gawk
configure:7112: checking for a thread-safe mkdir -p
configure:7151: result: /usr/bin/mkdir -p
configure:7167: checking for bison
configure:7185: found /usr/bin/bison
configure:7197: result: /usr/bin/bison
configure:7212: using bison (GNU Bison) 3.0.4
configure:7251: checking for flex
configure:7296: result: /usr/bin/flex
configure:7316: using flex 2.6.0
configure:7328: checking for perl
configure:7346: found /usr/bin/perl
configure:7358: result: /usr/bin/perl
configure:7370: using perl 5.22.1
configure:7403: checking for Perl archlibexp
configure:7407: result:
/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-arch
configure:7409: checking for Perl privlibexp
configure:7413: result:
/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-pure
configure:7415: checking for Perl useshrplib
configure:7419: result: define
configure:7422: error: cannot build PL/Perl because libperl is not a shared
library
You might have to rebuild your Perl installation. Refer to the
documentation for details. Use --without-perl to disable building
PL/Perl.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=x86_64-pc-linux-gnu-cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g3 -gdwarf-4 -fvar-tracking-assignments
-march=native -pipe -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-g3 -gdwarf-4 -fvar-tracking-assignments
-march=native -pipe -O2'
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=x86_64-pc-linux-gnu-cpp
ac_cv_env_DOCBOOKSTYLE_set=
ac_cv_env_DOCBOOKSTYLE_value=
ac_cv_env_LDFLAGS_EX_set=
ac_cv_env_LDFLAGS_EX_value=
ac_cv_env_LDFLAGS_SL_set=
ac_cv_env_LDFLAGS_SL_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=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_BISON=/usr/bin/bison
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_LD=x86_64-pc-linux-gnu-ld
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_TAR=/usr/bin/tar
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AR=x86_64-pc-linux-gnu-ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-cc
ac_cv_prog_CPP=x86_64-pc-linux-gnu-cpp
ac_cv_prog_RANLIB=x86_64-pc-linux-gnu-ranlib
ac_cv_prog_STRIP=x86_64-pc-linux-gnu-strip
ac_cv_prog_XML2_CONFIG=xml2-config
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_gnu_ld=yes
pgac_cv_path_flex=/usr/bin/flex
pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
pgac_cv_prog_cc_cflags__Wendif_labels=yes
pgac_cv_prog_cc_cflags__Wformat_security=yes
pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
pgac_cv_prog_cc_cflags__ftree_vectorize=yes
pgac_cv_prog_cc_cflags__funroll_loops=yes
pgac_cv_prog_cc_cflags__fwrapv=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='x86_64-pc-linux-gnu-ar'
AWK='gawk'
BISON='/usr/bin/bison'
BISONFLAGS=' -Wno-deprecated'
CC='x86_64-pc-linux-gnu-cc'
CFLAGS='-Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-g3 -gdwarf-4 -fvar-tracking-assignments -march=native -pipe -O2'
CFLAGS_SSE42=''
CFLAGS_VECTOR=' -funroll-loops -ftree-vectorize'
COLLATEINDEX=''
CPP='x86_64-pc-linux-gnu-cpp'
CPPFLAGS='-g3 -gdwarf-4 -fvar-tracking-assignments -march=native -pipe -O2
-D_GNU_SOURCE -I/usr/x86_64-pc-linux-gnu/include/libxml2 '
DBTOEPUB=''
DEFS=''
DLLTOOL=''
DLLWRAP=''
DOCBOOKSTYLE=''
DTRACE=''
DTRACEFLAGS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
ELF_SYS='true'
EXEEXT=''
FLEX='/usr/bin/flex'
FLEXFLAGS=''
GCC='yes'
GCOV=''
GENHTML=''
GREP='/usr/bin/grep'
HAVE_IPV6=''
HAVE_POSIX_SIGNALS=''
INCLUDES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
JADE=''
LCOV=''
LD='x86_64-pc-linux-gnu-ld'
LDAP_LIBS_BE=''
LDAP_LIBS_FE=''
LDFLAGS=' -L/usr/x86_64-pc-linux-gnu/lib '
LDFLAGS_EX=''
LDFLAGS_SL=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MKDIR_P='/usr/bin/mkdir -p'
MSGFMT=''
MSGFMT_FLAGS=''
MSGMERGE=''
NSGMLS=''
OBJEXT='o'
OSX=''
PACKAGE_BUGREPORT='pgsql-bugs(at)postgresql(dot)org'
PACKAGE_NAME='PostgreSQL'
PACKAGE_STRING='PostgreSQL 9.5.1'
PACKAGE_TARNAME='postgresql'
PACKAGE_URL=''
PACKAGE_VERSION='9.5.1'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
PG_CRC32C_OBJS=''
PG_MAJORVERSION='9.5'
PG_VERSION_NUM=''
PORTNAME='linux'
PROVE=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
PYTHON=''
RANLIB='x86_64-pc-linux-gnu-ranlib'
SHELL='/bin/sh'
STRIP='x86_64-pc-linux-gnu-strip'
STRIP_SHARED_LIB='x86_64-pc-linux-gnu-strip --strip-unneeded'
STRIP_STATIC_LIB='x86_64-pc-linux-gnu-strip -x'
SUN_STUDIO_CC='no'
TAR='/usr/bin/tar'
TAS=''
TCLSH=''
TCL_CONFIG_SH=''
TCL_INCLUDE_SPEC=''
TCL_LIBS=''
TCL_LIB_SPEC=''
TCL_SHARED_BUILD=''
TCL_SHLIB_LD_LIBS=''
UUID_EXTRA_OBJS='md5.o sha1.o'
UUID_LIBS=''
WANTED_LANGUAGES=''
WINDRES=''
XGETTEXT=''
XML2_CONFIG='xml2-config'
XMLLINT=''
XSLTPROC=''
ZIC=''
ac_ct_CC=''
acx_pthread_config=''
autodepend=''
bindir='/usr/x86_64-pc-linux-gnu/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
configure_args=' '\''--build=x86_64-pc-linux-gnu'\''
'\''--host=x86_64-pc-linux-gnu'\'' '\''--prefix=/usr/x86_64-pc-linux-gnu'\''
'\''--bindir=/usr/x86_64-pc-linux-gnu/bin'\''
'\''--sbindir=/usr/x86_64-pc-linux-gnu/bin'\''
'\''--libdir=/usr/x86_64-pc-linux-gnu/lib'\'' '\''--datadir=/usr/share'\''
'\''--datarootdir=/usr/share'\'' '\''--infodir=/usr/share/info'\''
'\''--mandir=/usr/share/man'\'' '\''--sysconfdir=/etc'\''
'\''--localstatedir=/var/lib'\'' '\''--disable-dependency-tracking'\''
'\''--disable-silent-rules'\'' '\''--enable-fast-install'\''
'\''--enable-nls'\'' '\''--with-system-tzdata=/usr/share/zoneinfo'\''
'\''--with-uuid=e2fs'\'' '\''--with-zlib'\'' '\''--without-ldap'\''
'\''--with-pam'\'' '\''--with-perl'\'' '\''--with-python'\''
'\''--with-readline'\'' '\''--with-openssl'\'' '\''--without-tcl'\''
'\''--with-libxml'\'' '\''--with-libxslt'\''
'\''build_alias=x86_64-pc-linux-gnu'\''
'\''host_alias=x86_64-pc-linux-gnu'\'' '\''CC=x86_64-pc-linux-gnu-cc'\''
'\''CFLAGS=-g3 -gdwarf-4 -fvar-tracking-assignments -march=native -pipe
-O2'\'' '\''CPPFLAGS=-g3 -gdwarf-4 -fvar-tracking-assignments -march=native
-pipe -O2'\'' '\''CPP=x86_64-pc-linux-gnu-cpp'\'''
datadir='/usr/share'
datarootdir='/usr/share'
default_port='5432'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_coverage='no'
enable_debug='no'
enable_dtrace='no'
enable_nls='yes'
enable_rpath='yes'
enable_tap_tests='no'
enable_thread_safety='yes'
exec_prefix='NONE'
have_docbook=''
have_win32_dbghelp=''
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_bin='/usr/bin/ginstall -c'
krb_srvtab=''
ld_R_works=''
libdir='/usr/x86_64-pc-linux-gnu/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
perl_archlibexp='/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-arch'
perl_embed_ldflags=''
perl_privlibexp='/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-pure'
perl_useshrplib='define'
prefix='/usr/x86_64-pc-linux-gnu'
program_transform_name='s,x,x,'
psdir='${docdir}'
python_additional_libs=''
python_includespec=''
python_libdir=''
python_libspec=''
python_majorversion=''
python_version=''
sbindir='/usr/x86_64-pc-linux-gnu/bin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
vpath_build=''
with_gnu_ld='yes'
with_libxml='yes'
with_libxslt='yes'
with_openssl='yes'
with_perl='yes'
with_python='yes'
with_selinux='no'
with_system_tzdata='/usr/share/zoneinfo'
with_tcl='no'
with_uuid='e2fs'
with_zlib='yes'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "PostgreSQL"
#define PACKAGE_TARNAME "postgresql"
#define PACKAGE_VERSION "9.5.1"
#define PACKAGE_STRING "PostgreSQL 9.5.1"
#define PACKAGE_BUGREPORT "pgsql-bugs(at)postgresql(dot)org"
#define PACKAGE_URL ""
#define PG_MAJORVERSION "9.5"
#define PG_VERSION "9.5.1"
#define USE_INTEGER_DATETIMES 1
#define ENABLE_NLS 1
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
#define BLCKSZ 8192
#define RELSEG_SIZE 131072
#define XLOG_BLCKSZ 8192
#define XLOG_SEG_SIZE (16 * 1024 * 1024)
#define ENABLE_THREAD_SAFETY 1
#define PG_KRB_SRVNAM "postgres"
#define USE_PAM 1
#define USE_OPENSSL 1
#define HAVE_UUID_E2FS 1
#define USE_LIBXML 1
#define USE_LIBXSLT 1

configure: exit 1

output of perl -V:

Summary of my perl5 (revision 5 version 22 subversion 1) configuration:

Platform:
osname=linux, osvers=current, archname=x86_64-pc-linux-gnu
uname='x86_64-pc-linux-gnu'
config_args='--build=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--target-tools-prefix=x86_64-pc-linux-gnu- --prefix=/usr/x86_64-pc-linux-gnu
--html1dir=/usr/share/doc/perl-5.22.1/html
--html3dir=/usr/share/doc/perl-5.22.1/html -Dcf_by=Exherbo
-Darchname=x86_64-pc-linux-gnu -Dlddlflags=-shared
-Dprivlib=/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-pure
-Darchlib=/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-arch
-Dsitelib=/usr/x86_64-pc-linux-gnu/lib/perl5/site_perl/5.22-pure
-Dsitearch=/usr/x86_64-pc-linux-gnu/lib/perl5/site_perl/5.22-arch
-Dvendorlib=/usr/x86_64-pc-linux-gnu/lib/perl5/vendor_perl/5.22-pure
-Dvendorarch=/usr/x86_64-pc-linux-gnu/lib/perl5/vendor_perl/5.22-arch
-Dperlpath=/usr/x86_64-pc-linux-gnu/bin/perl5.22 -Dsharedir=/usr/share
-Dusevendorprefix -Duselargefiles -Uinstallusrbinperl -Dusesoname -Ui_ndbm
-Ui_db -Ui_gdbm -Dusethreads -Uusemultiplicity'
hint=default, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='x86_64-pc-linux-gnu-cc', ccflags ='-D_POSIX_C_SOURCE -D_XOPEN_SOURCE
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -W',
optimize='',
cppflags='-g3 -gdwarf-4 -fvar-tracking-assignments -march=native -pipe
-O2'
ccversion='', gccversion='5.3.0', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678,
doublekind=-1
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16,
longdblkind=-1
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='x86_64-pc-linux-gnu-cc', ldflags =''
libpth=/lib /usr/lib /usr/local/lib
libs= -lm -lcrypt -lpthread -lnsl -lgdbm -ldb -ldl -lutil -lc
-lgdbm_compat
perllibs=-lm -lcrypt -lpthread -ldl
libc=, so=so, useshrplib=define, libperl=libperl.so.5.22.0
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared '

Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO
USE_PERL_ATOF USE_REENTRANT_API
Built under linux
Compiled at Mar 7 2016 17:29:48
%ENV:
PERL5LIB="/home/malinka/.lib:."
@INC:
/home/malinka/.lib
.
/usr/x86_64-pc-linux-gnu/lib/perl5/site_perl/5.22-arch
/usr/x86_64-pc-linux-gnu/lib/perl5/site_perl/5.22-pure
/usr/x86_64-pc-linux-gnu/lib/perl5/vendor_perl/5.22-arch
/usr/x86_64-pc-linux-gnu/lib/perl5/vendor_perl/5.22-pure
/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-arch
/usr/x86_64-pc-linux-gnu/lib/perl5/core_perl/5.22-pure
.

patch which fixes issue:

--- configure.in.old 2016-03-14 18:35:19.600174836 -0400
+++ configure.in 2016-03-14 18:35:39.175834709 -0400
@@ -890,7 +890,7 @@
AC_MSG_ERROR([Perl not found])
fi
PGAC_CHECK_PERL_CONFIGS([archlibexp,privlibexp,useshrplib])
- if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true;
then
+ if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true &&
test "$perl_usrsharplib" != define ; then
AC_MSG_ERROR([cannot build PL/Perl because libperl is not a shared
library
You might have to rebuild your Perl installation. Refer to the
documentation for details. Use --without-perl to disable building

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-03-15 00:13:51 Re: BUG #14021: configure failing to find shared libperl
Previous Message b.yordanov2 2016-03-14 20:43:48 BUG #14020: row_number() over(partition by order by) - weird behavior