Bug #81045 [Fbk]: Install Curl with PHP 7.4 on AIX 7.1
| From: | nikic@php.net | Date: | Tue, 18 May 2021 07:40:13 +0000 |
| Subject: | Bug #81045 [Fbk]: Install Curl with PHP 7.4 on AIX 7.1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233879@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81045&edit=1
ID: 81045
Updated by: nikic@php.net
Reported by: m dot tarek dot i dot m at gmail dot com
Summary: Install Curl with PHP 7.4 on AIX 7.1
Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: AIX 7.1
PHP Version: 7.4Git-2021-05-17 (Git)
Block user comment: N
Private report: N
New Comment:
configure:4922: gcc -o conftest -g -O2 -L/opt/freeware/lib64 -L/opt/freeware/lib64 -lcurl
conftest.c -lcurl -L/opt/freeware/lib -L/usr/lib/ -L/usr/lib/ -L/usr/local/lib/ >&5
ld: 0711-317 ERROR: Undefined symbol: .curl_easy_perform
Executed script looks reasonable, assuming libcurl is indeed available on one of those paths.
Don't know what is going wrong here, and the only other thread I found on this topic
(https://curl.se/mail/lib-2013-02/0302.html) doesn't have a resolution either.
Previous Comments:
------------------------------------------------------------------------
[2021-05-18 07:07:56] m dot tarek dot i dot m at gmail dot com
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = nmeuatap0
uname -m = 00FBE3BD4C00
uname -r = 1
uname -s = AIX
uname -v = 7
/usr/bin/uname -p = powerpc
/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 = 7.1.0.0
/bin/universe = unknown
PATH: /usr/bin
PATH: /etc
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/ucb
PATH: /usr/bin/X11
PATH: /sbin
PATH: /usr/java8_64/jre/bin
PATH: /usr/java8_64/bin
PATH: /home/db2inst1/sqllib/bin
PATH: /home/db2inst1/sqllib/adm
PATH: /home/db2inst1/sqllib/misc
PATH: /home/db2inst1/sqllib/db2tss/bin
PATH: /opt/freeware/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2352: checking for grep that handles long lines and -e
configure:2410: result: /usr/bin/grep
configure:2415: checking for egrep
configure:2477: result: /usr/bin/grep -E
configure:2482: checking for a sed that does not truncate output
configure:2546: result: /opt/freeware/bin//sed
configure:2685: checking for pkg-config
configure:2703: found /usr/bin/pkg-config
configure:2715: result: /usr/bin/pkg-config
configure:2740: checking pkg-config is at least version 0.9.0
configure:2743: result: yes
configure:2805: checking for cc
configure:2835: result: no
configure:2805: checking for gcc
configure:2821: found /opt/freeware/bin//gcc
configure:2832: result: gcc
configure:2863: checking for C compiler version
configure:2872: gcc --version >&5
gcc (GCC) 8.3.0
Copyright (C) 2018 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:2883: $? = 0
configure:2872: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/8/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-8.3.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man
--infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,go --enable-version-specific-runtime-libs
--disable-nls --enable-decimal-float=dpd --disable-libstdcxx-pch --enable-__cxa_atexit
--disable-werror --enable-libstdcxx-filesystem-ts --with-gcc-major-version-only --program-suffix=-8
--disable-rpath --host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 8.3.0 (GCC)
configure:2883: $? = 0
configure:2872: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2883: $? = 1
configure:2872: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean
'--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2883: $? = 1
configure:2903: checking whether the C compiler works
configure:2925: gcc conftest.c >&5
configure:2929: $? = 0
configure:2977: result: yes
configure:2980: checking for C compiler default output file name
configure:2982: result: a.out
configure:2988: checking for suffix of executables
configure:2995: gcc -o conftest conftest.c >&5
configure:2999: $? = 0
configure:3021: result:
configure:3043: checking whether we are cross compiling
configure:3051: gcc -o conftest conftest.c >&5
configure:3055: $? = 0
configure:3062: ./conftest
configure:3066: $? = 0
configure:3081: result: no
configure:3086: checking for suffix of object files
configure:3108: gcc -c conftest.c >&5
configure:3112: $? = 0
configure:3133: result: o
configure:3137: checking whether we are using the GNU C compiler
configure:3156: gcc -c conftest.c >&5
configure:3156: $? = 0
configure:3165: result: yes
configure:3174: checking whether gcc accepts -g
configure:3194: gcc -c -g conftest.c >&5
configure:3194: $? = 0
configure:3235: result: yes
configure:3252: checking for gcc option to accept ISO C89
configure:3315: gcc -c -g -O2 conftest.c >&5
configure:3315: $? = 0
configure:3328: result: none needed
configure:3354: checking how to run the C preprocessor
configure:3385: gcc -E conftest.c
configure:3385: $? = 0
configure:3399: gcc -E conftest.c
conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3399: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3424: result: gcc -E
configure:3444: gcc -E conftest.c
configure:3444: $? = 0
configure:3458: gcc -E conftest.c
conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3458: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3489: checking for icc
configure:3498: result: no
configure:3512: checking for suncc
configure:3521: result: no
configure:3539: checking for system library directory
configure:3554: result: lib
configure:3561: checking if compiler supports -R
configure:3580: gcc -o conftest -g -O2 conftest.c -R /usr/lib >&5
gcc: error: unrecognized command line option '-R'
configure:3580: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3590: result: no
configure:3595: checking if compiler supports -Wl,-rpath,
configure:3614: gcc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5
ld: 0706-012 The -p flag is not recognized.
ld: 0706-012 The -a flag is not recognized.
ld: 0706-012 The -t flag is not recognized.
ld: 0706-012 The -h flag is not recognized.
collect2: error: ld returned 255 exit status
configure:3614: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3624: result: no
configure:3640: checking build system type
configure:3654: result: powerpc-ibm-aix7.1.5.0
configure:3674: checking host system type
configure:3687: result: powerpc-ibm-aix7.1.5.0
configure:3707: checking target system type
configure:3720: result: powerpc-ibm-aix7.1.5.0
configure:3823: checking for PHP prefix
configure:3825: result: /opt/freeware
configure:3827: checking for PHP includes
configure:3829: result: -I/opt/freeware/include/php -I/opt/freeware/include/php/main
-I/opt/freeware/include/php/TSRM -I/opt/freeware/include/php/Zend -I/opt/freeware/include/php/ext
-I/opt/freeware/include/php/ext/date/lib
configure:3831: checking for PHP extension directory
configure:3833: result: /opt/freeware/lib/php/modules
configure:3835: checking for PHP installed headers prefix
configure:3837: result: /opt/freeware/include/php
configure:3840: checking if debug is enabled
configure:3866: result: no
configure:3869: checking if zts is enabled
configure:3895: result: no
configure:3963: checking for gawk
configure:3994: result: no
configure:3963: checking for nawk
configure:3980: found /usr/bin/nawk
configure:3991: result: nawk
configure:4014: checking if nawk is broken
configure:4021: result: no
configure:4034: checking for cURL support
configure:4074: result: yes, shared
configure:4083: checking for libcurl >= 7.15.5
configure:4090: $PKG_CONFIG --exists --print-errors "libcurl >= 7.15.5"
configure:4093: $? = 0
configure:4107: $PKG_CONFIG --exists --print-errors "libcurl >= 7.15.5"
configure:4110: $? = 0
configure:4168: result: yes
configure:4177: $PKG_CONFIG --exists --print-errors "libcurl"
configure:4180: $? = 0
configure:4336: checking for SSL support in libcurl
configure:4341: result: yes
configure:4355: checking for libcurl linked against old openssl
configure:4357: checking for ANSI C header files
configure:4377: gcc -c -g -O2 conftest.c >&5
configure:4377: $? = 0
configure:4450: gcc -o conftest -g -O2 -L/opt/freeware/lib64 -lcurl conftest.c >&5
configure:4450: $? = 0
configure:4450: ./conftest
configure:4450: $? = 0
configure:4461: result: yes
configure:4474: checking for sys/types.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for sys/stat.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for stdlib.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for string.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for memory.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for strings.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for inttypes.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for stdint.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4474: checking for unistd.h
configure:4474: gcc -c -g -O2 conftest.c >&5
configure:4474: $? = 0
configure:4474: result: yes
configure:4522: gcc -o conftest -g -O2 -L/opt/freeware/lib64 -lcurl conftest.c >&5
ld: 0711-317 ERROR: Undefined symbol: .curl_version_info
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
configure:4522: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #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
| /* end confdefs.h. */
|
| #include <strings.h>
| #include <curl/curl.h>
|
| int main(int argc, char *argv[])
| {
| curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
|
| if (data && data->ssl_version && *data->ssl_version) {
| const char *ptr = data->ssl_version;
|
| while(*ptr == ' ') ++ptr;
| if (strncasecmp(ptr, "OpenSSL/1.1", sizeof("OpenSSL/1.1")-1) == 0) {
| /* New OpenSSL version */
| return 3;
| }
| if (strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1) == 0) {
| /* Old OpenSSL version */
| return 0;
| }
| /* Different SSL library */
| return 2;
| }
| /* No SSL support */
| return 1;
| }
|
configure:4775: result: no
configure:4897: checking for curl_easy_perform in -lcurl
configure:4922: gcc -o conftest -g -O2 -L/opt/freeware/lib64 -L/opt/freeware/lib64 -lcurl
conftest.c -lcurl -L/opt/freeware/lib -L/usr/lib/ -L/usr/lib/ -L/usr/local/lib/ >&5
ld: 0711-317 ERROR: Undefined symbol: .curl_easy_perform
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
configure:4922: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #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
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char curl_easy_perform ();
| int
| main ()
| {
| return curl_easy_perform ();
| ;
| return 0;
| }
configure:4931: result: no
configure:4949: error: There is something wrong. Please check config.log for more information.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=powerpc-ibm-aix7.1.5.0
ac_cv_c_compiler_gnu=yes
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_CURL_CFLAGS_set=''
ac_cv_env_CURL_CFLAGS_value=''
ac_cv_env_CURL_FEATURES_set=''
ac_cv_env_CURL_FEATURES_value=''
ac_cv_env_CURL_LIBS_set=''
ac_cv_env_CURL_LIBS_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_OPENSSL_CFLAGS_set=''
ac_cv_env_OPENSSL_CFLAGS_value=''
ac_cv_env_OPENSSL_LIBS_set=''
ac_cv_env_OPENSSL_LIBS_value=''
ac_cv_env_PKG_CONFIG_LIBDIR_set=''
ac_cv_env_PKG_CONFIG_LIBDIR_value=''
ac_cv_env_PKG_CONFIG_PATH_set=''
ac_cv_env_PKG_CONFIG_PATH_value=''
ac_cv_env_PKG_CONFIG_set=''
ac_cv_env_PKG_CONFIG_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_inttypes_h=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_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=powerpc-ibm-aix7.1.5.0
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/opt/freeware/bin//sed
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_prog_AWK=nawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=''
ac_cv_prog_cc_g=yes
ac_cv_target=powerpc-ibm-aix7.1.5.0
php_cv_cc_dashr=no
php_cv_cc_rpath=no
pkg_cv_CURL_CFLAGS=-I/opt/freeware/include
pkg_cv_CURL_FEATURES='SSL IPv6 UnixSockets libz AsynchDNS NTLM NTLM_WB TLS-SRP
HTTPS-proxy'
pkg_cv_CURL_LIBS='-L/opt/freeware/lib64 -lcurl'
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AWK='nawk'
CC='gcc'
CFLAGS='-g -O2'
CONFIGURE_COMMAND=' '\''./configure'\'' '
CONFIGURE_OPTIONS=''
CPP='gcc -E'
CPPFLAGS=''
CURL_CFLAGS='-I/opt/freeware/include'
CURL_FEATURES='SSL IPv6 UnixSockets libz AsynchDNS NTLM NTLM_WB TLS-SRP HTTPS-proxy'
CURL_LIBS='-L/opt/freeware/lib64 -lcurl'
DEFS=''
DSYMUTIL=''
ECHO='/opt/freeware/bin//echo'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
NMEDIT=''
OBJEXT='o'
OPENSSL_CFLAGS=''
OPENSSL_LIBS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED='/opt/freeware/bin//sed'
SHELL='/bin/sh'
SHLIB_DL_SUFFIX_NAME='so'
SHLIB_SUFFIX_NAME='so'
STRIP=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='powerpc-ibm-aix7.1.5.0'
build_alias=''
build_cpu='powerpc'
build_os='aix7.1.5.0'
build_vendor='ibm'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='powerpc-ibm-aix7.1.5.0'
host_alias='powerpc-ibm-aix7.1.5.0'
host_cpu='powerpc'
host_os='aix7.1.5.0'
host_vendor='ibm'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/freeware'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='powerpc-ibm-aix7.1.5.0'
target_alias=''
target_cpu='powerpc'
target_os='aix7.1.5.0'
target_vendor='ibm'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#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
configure: exit 1
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=81045
--
Edit this bug report at https://bugs.php.net/bug.php?id=81045&edit=1