php / pecl-database-pdo_ibm

PDO driver for IBM databases
http://pecl.php.net/package/pdo_ibm
Apache License 2.0
17 stars 14 forks source link

fatal error: 'sqlcli1.h' file not found #27

Open OrPh4ns opened 6 months ago

OrPh4ns commented 6 months ago

While installing

/private/var/tmp/pear/temp/PDO_IBM/php_pdo_ibm_int.h:26:10: fatal error: 'sqlcli1.h' file not found

NattyNarwhal commented 6 months ago

What platform is this on?

OrPh4ns commented 6 months ago

What platform is this on?

php 8.3, laravel 10, ubuntu server 22.04

NattyNarwhal commented 6 months ago

How did you build and install the extension?

NattyNarwhal commented 6 months ago

Actually, what is the config.log you have? If it fails to find any library to use (for whatever reason), it won't add the headers. It should be popping up a more obvious error message though, so I'll add that.

rocarreno commented 3 months ago

I have the same problem... @OrPh4ns did you manage to solve it?

NattyNarwhal commented 3 months ago

Post your config.log file - it's almost certainly an issue with an incorrectly specified path.

rocarreno commented 3 months ago

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.71. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = primeweb uname -m = x86_64 uname -r = 5.15.0-117-generic uname -s = Linux uname -v = #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024

/usr/bin/uname -p = x86_64 /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/local/sbin/ PATH: /usr/local/bin/ PATH: /usr/sbin/ PATH: /usr/bin/ PATH: /sbin/ PATH: /bin/ PATH: /usr/games/ PATH: /usr/local/games/ PATH: /snap/bin/

-----------

Core tests.

-----------

configure:2597: looking for aux files: ltmain.sh config.guess config.sub configure:2610: trying ./build/ configure:2639: ./build/ltmain.sh found configure:2639: ./build/config.guess found configure:2639: ./build/config.sub found configure:2756: checking for grep that handles long lines and -e configure:2820: result: /usr/bin/grep configure:2825: checking for egrep configure:2893: result: /usr/bin/grep -E configure:2898: checking for a sed that does not truncate output configure:2968: result: /usr/bin/sed configure:3112: checking for pkg-config configure:3135: found /usr/bin/pkg-config configure:3147: result: /usr/bin/pkg-config configure:3172: checking pkg-config is at least version 0.9.0 configure:3175: result: yes configure:3251: checking for cc configure:3272: found /usr/bin/cc configure:3283: result: cc configure:3314: checking for C compiler version configure:3323: cc --version >&5 cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 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:3334: $? = 0 configure:3323: cc -v >&5 Using built-in specs. COLLECT_GCC=cc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --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 --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) ... rest of stderr output deleted ... configure:3334: $? = 0 configure:3323: cc -V >&5 cc: error: unrecognized command-line option '-V' cc: fatal error: no input files compilation terminated. configure:3334: $? = 1 configure:3323: cc -qversion >&5 cc: error: unrecognized command-line option '-qversion'; did you mean '--version'? cc: fatal error: no input files compilation terminated. configure:3334: $? = 1 configure:3323: cc -version >&5 cc: error: unrecognized command-line option '-version' cc: fatal error: no input files compilation terminated. configure:3334: $? = 1 configure:3354: checking whether the C compiler works configure:3376: cc conftest.c >&5 configure:3380: $? = 0 configure:3430: result: yes configure:3433: checking for C compiler default output file name configure:3435: result: a.out configure:3441: checking for suffix of executables configure:3448: cc -o conftest conftest.c >&5 configure:3452: $? = 0 configure:3475: result: configure:3497: checking whether we are cross compiling configure:3505: cc -o conftest conftest.c >&5 configure:3509: $? = 0 configure:3516: ./conftest configure:3520: $? = 0 configure:3535: result: no configure:3540: checking for suffix of object files configure:3563: cc -c conftest.c >&5 configure:3567: $? = 0 configure:3589: result: o configure:3593: checking whether the compiler supports GNU C configure:3613: cc -c conftest.c >&5 configure:3613: $? = 0 configure:3623: result: yes configure:3634: checking whether cc accepts -g configure:3655: cc -c -g conftest.c >&5 configure:3655: $? = 0 configure:3699: result: yes configure:3719: checking for cc option to enable C11 features configure:3734: cc -c -g -O2 conftest.c >&5 configure:3734: $? = 0 configure:3752: result: none needed configure:3868: checking how to run the C preprocessor configure:3894: cc -E conftest.c configure:3894: $? = 0 configure:3909: cc -E conftest.c conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory 9 #include ^~~~~~ compilation terminated. configure:3909: $? = 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 configure:3936: result: cc -E configure:3950: cc -E conftest.c configure:3950: $? = 0 configure:3965: cc -E conftest.c conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory 9 #include ^~~~~~ compilation terminated. configure:3965: $? = 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 configure:3998: checking for icc configure:4008: result: no configure:4022: checking for suncc configure:4032: result: no configure:4050: checking for system library directory configure:4066: result: lib configure:4073: checking if compiler supports -Wl,-rpath, configure:4093: cc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5 configure:4093: $? = 0 configure:4104: result: yes configure:4159: checking build system type configure:4174: result: x86_64-pc-linux-gnu configure:4194: checking host system type configure:4208: result: x86_64-pc-linux-gnu configure:4228: checking target system type configure:4242: result: x86_64-pc-linux-gnu configure:4346: checking for PHP prefix configure:4348: result: /usr configure:4350: checking for PHP includes configure:4352: result: -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib configure:4354: checking for PHP extension directory configure:4356: result: /usr/lib/php/20230831 configure:4358: checking for PHP installed headers prefix configure:4360: result: /usr/include/php/20230831 configure:4363: checking if debug is enabled configure:4390: result: no configure:4393: checking if zts is enabled configure:4420: result: no configure:4488: checking for gawk configure:4510: found /usr/bin/gawk configure:4521: result: gawk configure:4566: checking for DB2 driver for PDO configure:4607: result: yes, shared configure:4622: checking for stdio.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for stdlib.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for string.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for inttypes.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for stdint.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for strings.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for sys/stat.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for sys/types.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4622: checking for unistd.h configure:4622: cc -c -g -O2 conftest.c >&5 configure:4622: $? = 0 configure:4622: result: yes configure:4651: checking size of long configure:4657: cc -o conftest -g -O2 conftest.c >&5 configure:4657: $? = 0 configure:4657: ./conftest configure:4657: $? = 0 configure:4672: result: 8 configure:4680: checking if we're on a 64-bit platform configure:4940: result: yes configure:5047: checking for SQLDriverConnect in -ldb2 configure:5070: cc -o conftest -g -O2 -Wl,-rpath,/lib64 -L/lib64 conftest.c -ldb2 >&5 /usr/bin/ld: cannot find -ldb2: No such file or directory collect2: error: ld returned 1 exit status configure:5070: $? = 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 HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_STRINGS_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define STDC_HEADERS 1 #define SIZEOF_LONG 8 / 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. */
char SQLDriverConnect ();
int
main (void)
{
return SQLDriverConnect ();
;
return 0;
}
configure:5080: result: no configure:5299: checking for SQLDriverConnect in -ldb2 configure:5322: cc -o conftest -g -O2 -Wl,-rpath,/lib -L/lib conftest.c -ldb2 >&5 /usr/bin/ld: cannot find -ldb2: No such file or directory collect2: error: ld returned 1 exit status configure:5322: $? = 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 HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_STRINGS_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define STDC_HEADERS 1 #define SIZEOF_LONG 8 / 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. */
char SQLDriverConnect ();
int
main (void)
{
return SQLDriverConnect ();
;
return 0;
}
configure:5332: result: no configure:5550: checking for LDBDriverConnect in -ldb400sg configure:5573: cc -o conftest -g -O2 -Wl,-rpath,/lib -L/lib conftest.c -ldb400sg >&5 /usr/bin/ld: cannot find -ldb400sg: No such file or directory collect2: error: ld returned 1 exit status configure:5573: $? = 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 HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_STRINGS_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define STDC_HEADERS 1 #define SIZEOF_LONG 8 / 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. */
char LDBDriverConnect ();
int
main (void)
{
return LDBDriverConnect ();
;
return 0;
}
configure:5583: result: no configure:5833: checking for SQLDriverConnect in -ldb400 configure:5856: cc -o conftest -g -O2 -Wl,-rpath,/lib -L/lib conftest.c -ldb400 >&5 /usr/bin/ld: cannot find -ldb400: No such file or directory collect2: error: ld returned 1 exit status configure:5856: $? = 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 HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_STRINGS_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define STDC_HEADERS 1 #define SIZEOF_LONG 8 / 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. */
char SQLDriverConnect ();
int
main (void)
{
return SQLDriverConnect ();
;
return 0;
}

configure:5866: result: no configure:5983: checking for PDO includes configure:5999: result: /usr/include/php/20230831/ext configure:6610: checking how to print strings configure:6637: result: printf configure:6658: checking for a sed that does not truncate output configure:6728: result: /usr/bin/sed configure:6746: checking for fgrep configure:6814: result: /usr/bin/grep -F configure:6850: checking for ld used by cc configure:6918: result: /usr/bin/ld configure:6925: checking if the linker (/usr/bin/ld) is GNU ld configure:6941: result: yes configure:6953: checking for BSD- or MS-compatible name lister (nm) configure:7008: result: /usr/bin/nm -B configure:7148: checking the name lister (/usr/bin/nm -B) interface configure:7156: cc -c -g -O2 conftest.c >&5 configure:7159: /usr/bin/nm -B "conftest.o" configure:7162: output 0000000000000000 B some_variable configure:7169: result: BSD nm configure:7172: checking whether ln -s works configure:7176: result: yes configure:7184: checking the maximum length of command line arguments configure:7316: result: 1572864 configure:7364: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format configure:7405: result: func_convert_file_noop configure:7412: checking how to convert x86_64-pc-linux-gnu file names to toolchain format configure:7433: result: func_convert_file_noop configure:7440: checking for /usr/bin/ld option to reload object files configure:7448: result: -r configure:7527: checking for objdump configure:7548: found /usr/bin/objdump configure:7559: result: objdump configure:7591: checking how to recognize dependent libraries configure:7792: result: pass_all configure:7882: checking for dlltool configure:7917: result: no configure:7947: checking how to associate runtime and link libraries configure:7975: result: printf %s\n configure:8040: checking for ar configure:8061: found /usr/bin/ar configure:8072: result: ar configure:8109: checking for archiver @FILE support configure:8127: cc -c -g -O2 conftest.c >&5 configure:8127: $? = 0 configure:8131: ar cr libconftest.a @conftest.lst >&5 configure:8134: $? = 0 configure:8139: ar cr libconftest.a @conftest.lst >&5 ar: conftest.o: No such file or directory configure:8142: $? = 1 configure:8154: result: @ configure:8217: checking for strip configure:8238: found /usr/bin/strip configure:8249: result: strip configure:8326: checking for ranlib configure:8347: found /usr/bin/ranlib configure:8358: result: ranlib configure:8435: checking for gawk configure:8467: result: gawk configure:8507: checking command to parse /usr/bin/nm -B output from cc object configure:8661: cc -c -g -O2 conftest.c >&5 configure:8664: $? = 0 configure:8668: /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:8734: cc -o conftest -g -O2 conftest.c conftstm.o >&5 configure:8737: $? = 0 configure:8775: result: ok configure:8822: checking for sysroot configure:8853: result: no configure:8860: checking for a working dd configure:8904: result: /usr/bin/dd configure:8908: checking how to truncate binary pipes configure:8924: result: /usr/bin/dd bs=4096 count=1 configure:9061: cc -c -g -O2 conftest.c >&5 configure:9064: $? = 0 configure:9261: checking for mt configure:9282: found /usr/bin/mt configure:9293: result: mt configure:9316: checking if mt is a manifest tool configure:9323: mt '-?' configure:9331: result: no configure:10057: checking for dlfcn.h configure:10057: cc -c -g -O2 conftest.c >&5 configure:10057: $? = 0 configure:10057: result: yes configure:10316: checking for objdir configure:10332: result: .libs configure:10596: checking if cc supports -fno-rtti -fno-exceptions configure:10615: cc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command-line option '-fno-rtti' is valid for C++/D/ObjC++ but not for C configure:10619: $? = 0 configure:10632: result: no configure:10996: checking for cc option to produce PIC configure:11004: result: -fPIC -DPIC configure:11012: checking if cc PIC flag -fPIC -DPIC works configure:11031: cc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5 configure:11035: $? = 0 configure:11048: result: yes configure:11077: checking if cc static flag -static works configure:11106: result: yes configure:11121: checking if cc supports -c -o file.o configure:11143: cc -c -g -O2 -o out/conftest2.o conftest.c >&5 configure:11147: $? = 0 configure:11169: result: yes configure:11177: checking if cc supports -c -o file.o configure:11225: result: yes configure:11258: checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries configure:12528: result: yes configure:12565: checking whether -lc should be explicitly linked in configure:12574: cc -c -g -O2 conftest.c >&5 configure:12577: $? = 0 configure:12592: cc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2>\&1 | /usr/bin/grep -lc >/dev/null 2>\&1 configure:12595: $? = 0 configure:12609: result: no configure:12769: checking dynamic linker characteristics configure:13351: cc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5 configure:13351: $? = 0 configure:13602: result: GNU/Linux ld.so configure:13724: checking how to hardcode library paths into programs configure:13749: result: immediate configure:14301: checking whether stripping libraries is possible configure:14306: result: yes configure:14341: checking if libtool supports shared libraries configure:14343: result: yes configure:14346: checking whether to build shared libraries configure:14371: result: yes configure:14374: checking whether to build static libraries configure:14378: result: no configure:14703: patching config.h.in configure:14714: creating ./config.status

----------------------

Running config.status.

----------------------

This file was extended by config.status, which was generated by GNU Autoconf 2.71. Invocation command line was

CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status

on primeweb

config.status:882: creating config.h config.status:972: config.h is unchanged config.status:986: executing libtool commands

----------------

Cache variables.

----------------

ac_cv_build=x86_64-pc-linux-gnu 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_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_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_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_stdint_h=yes ac_cv_header_stdio_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=x86_64-pc-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_FGREP='/usr/bin/grep -F' ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/usr/bin/sed ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config ac_cv_path_lt_DD=/usr/bin/dd ac_cv_prog_AWK=gawk ac_cv_prog_CPP='cc -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=cc 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_c11= ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_sizeof_long=8 ac_cv_target=x86_64-pc-linux-gnu lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=no 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_NM='/usr/bin/nm -B' lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_gnu_ld=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][ABCDGIRSTW] . (.)$/ {"\1", (void ) \&\1},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: (.) .$/ {"\1", (void ) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW] . (lib.)$/ {"\1", (void ) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW] . (.)$/ {"lib\1", (void ) \&\1},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T . (.)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW] . (.*)$/extern char \1;/p'\''' lt_cv_sys_global_symbol_to_import= 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 lt_cv_truncate_bin='/usr/bin/dd bs=4096 count=1' pdo_cv_inc_path=/usr/include/php/20230831/ext php_cv_cc_rpath=yes

-----------------

Output variables.

-----------------

AR='ar' AWK='gawk' BUILD_CC='cc' CC='cc' CFLAGS='-g -O2' CONFIGURE_COMMAND=' '\''./configure'\'' ' CONFIGURE_OPTIONS='' CPP='cc -E' CPPFLAGS=' -DHAVE_CONFIG_H' DEFS='-DHAVE_CONFIG_H' DLLTOOL='false' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' FGREP='/usr/bin/grep -F' GREP='/usr/bin/grep' LD='/usr/bin/ld -m elf_x86_64' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='ln -s' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MANIFEST_TOOL=':' NM='/usr/bin/nm -B' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OTOOL64='' OTOOL='' 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='ranlib' SED='/usr/bin/sed' SHELL='/bin/bash' SHLIB_DL_SUFFIX_NAME='so' SHLIB_SUFFIX_NAME='so' STRIP='strip' ac_ct_AR='ar' ac_ct_CC='cc' ac_ct_DUMPBIN='' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='$(prefix)' 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='${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='/usr' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='x86_64-pc-linux-gnu' target_alias='' target_cpu='x86_64' target_os='linux-gnu' target_vendor='pc'

-----------

confdefs.h.

-----------

/ confdefs.h /

define PACKAGE_NAME ""

define PACKAGE_TARNAME ""

define PACKAGE_VERSION ""

define PACKAGE_STRING ""

define PACKAGE_BUGREPORT ""

define PACKAGE_URL ""

define HAVE_STDIO_H 1

define HAVE_STDLIB_H 1

define HAVE_STRING_H 1

define HAVE_INTTYPES_H 1

define HAVE_STDINT_H 1

define HAVE_STRINGS_H 1

define HAVE_SYS_STAT_H 1

define HAVE_SYS_TYPES_H 1

define HAVE_UNISTD_H 1

define STDC_HEADERS 1

define SIZEOF_LONG 8

define COMPILE_DL_PDO_IBM 1

define HAVE_DLFCN_H 1

define LT_OBJDIR ".libs/"

configure: exit 0

tessus commented 3 months ago

If you run ./configure without arguments you have to source the db2 profile first, or set the env vars accordingly.

Also, configure should already print an error message if DB2 headers are not found.

ssanko commented 1 month ago

@rocarreno @OrPh4ns you could define an C include path when running any build command by prepending C_INCLUDE_PATH=/usr/local/clidriver/include (edit the path where You have downloaded the cli driver)

e.g. C_INCLUDE_PATH=/usr/local/clidriver/include pecl install pdo_ibm

then it will compile the extension correctly