pierrejoye / php-krb5

Port of pecl's krb5, php 7 and later
MIT License
7 stars 8 forks source link

make: *** No rule to make target '/root/kdm/php-krb5-master/kadm.c', needed by 'kadm.lo'. Stop #1

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello, My self Ninad. I am trying to install php-krb5 on fedora29 system with PHP 7.2 installed. At the time of make I am getting below error.

make: *** No rule to make target '/root/kdm/php-krb5-master/kadm.c', needed by 'kadm.lo'. Stop

Here I want to use kadm5 to add/change/delete principals in MIT kerberos. So I kindly request you to guide me in this regards.

elpoutro commented 5 years ago

Same problem for me. Have you found the missing library?

bdegoy commented 5 years ago

Hi, Same for me. On WHM/cPanel, CentOS 6, PHP Version 7.1.33. Source is in /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5

root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# /opt/cpanel/ea-php71/root/usr/bin/phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303

root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# ./configure --with-krb5kadm

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking PHP version... 5.6.26
checking for kerberos support... yes, shared
checking path to krb5config tool... no
checking for kerberos KADM5 support... yes
checking whether we have krb5config... /usr/bin/krb5-config
checking for required linker flags... -lkadm5clnt_mit -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
checking for required compiler flags...
checking for kerberos library version... Kerberos 5 release 1.10.3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# make && make install
make: *** No rule to make target `/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/kadm.c', needed by `kadm.lo'.  Stop.
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# make clean
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la       modules/* libs/*
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# ./configure --with-krb5kadm
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking PHP version... 5.6.26
checking for kerberos support... yes, shared
checking path to krb5config tool... no
checking for kerberos KADM5 support... yes
checking whether we have krb5config... /usr/bin/krb5-config
checking for required linker flags... -lkadm5clnt_mit -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
checking for required compiler flags...
checking for kerberos library version... Kerberos 5 release 1.10.3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# make && make install
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/krb5.c -o php5/krb5.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/krb5.c  -fPIC -DPIC -o php5/.libs/krb5.o
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/negotiate_auth.c -o php5/negotiate_auth.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/negotiate_auth.c  -fPIC -DPIC -o php5/.libs/negotiate_auth.o
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/gssapi.c -o php5/gssapi.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/gssapi.c  -fPIC -DPIC -o php5/.libs/gssapi.o
make: *** No rule to make target `/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/kadm.c', needed by `kadm.lo'.  Stop.

Any idea? Thanks in advance, Bertrand

bdegoy commented 5 years ago

Hi, Same for me. On WHM/cPanel, CentOS 6, PHP Version 7.1.33. Source is in /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5

root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# /opt/cpanel/ea-php71/root/usr/bin/phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303

root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# ./configure --with-krb5kadm

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking PHP version... 5.6.26
checking for kerberos support... yes, shared
checking path to krb5config tool... no
checking for kerberos KADM5 support... yes
checking whether we have krb5config... /usr/bin/krb5-config
checking for required linker flags... -lkadm5clnt_mit -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
checking for required compiler flags...
checking for kerberos library version... Kerberos 5 release 1.10.3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# make && make install
make: *** No rule to make target `/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/kadm.c', needed by `kadm.lo'.  Stop.
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# make clean
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la       modules/* libs/*
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# ./configure --with-krb5kadm
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking PHP version... 5.6.26
checking for kerberos support... yes, shared
checking path to krb5config tool... no
checking for kerberos KADM5 support... yes
checking whether we have krb5config... /usr/bin/krb5-config
checking for required linker flags... -lkadm5clnt_mit -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
checking for required compiler flags...
checking for kerberos library version... Kerberos 5 release 1.10.3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
root@vps223233 [/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5]# make && make install
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/krb5.c -o php5/krb5.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/krb5.c  -fPIC -DPIC -o php5/.libs/krb5.o
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/negotiate_auth.c -o php5/negotiate_auth.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/negotiate_auth.c  -fPIC -DPIC -o php5/.libs/negotiate_auth.o
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/gssapi.c -o php5/gssapi.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/gssapi.c  -fPIC -DPIC -o php5/.libs/gssapi.o
make: *** No rule to make target `/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/kadm.c', needed by `kadm.lo'.  Stop.

Any idea? Thanks in advance, Bertrand

bdegoy commented 5 years ago

Hi, Same for me. On WHM/cPanel, CentOS 6, PHP Version 7.1.33. Source is in /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 = current directory.

# /opt/cpanel/ea-php71/root/usr/bin/phpize

Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303

# ./configure --with-krb5kadm

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking PHP version... 5.6.26
checking for kerberos support... yes, shared
checking path to krb5config tool... no
checking for kerberos KADM5 support... yes
checking whether we have krb5config... /usr/bin/krb5-config
checking for required linker flags... -lkadm5clnt_mit -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
checking for required compiler flags...
checking for kerberos library version... Kerberos 5 release 1.10.3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands

# make && make install

/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/krb5.c -o php5/krb5.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/krb5.c  -fPIC -DPIC -o php5/.libs/krb5.o
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/negotiate_auth.c -o php5/negotiate_auth.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/negotiate_auth.c  -fPIC -DPIC -o php5/.libs/negotiate_auth.o
/bin/sh /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/libtool --mode=compile cc  -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -Wall -g -O2   -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/gssapi.c -o php5/gssapi.lo
libtool: compile:  cc -I. -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -DPHP_ATOM_INC -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/include -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/main -I/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -Wall -g -O2 -c /opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/php5/gssapi.c  -fPIC -DPIC -o php5/.libs/gssapi.o

make: *** No rule to make target `/opt/cpanel/ea-php71/root/usr/include/php/ext/krb5/kadm.c', needed by `kadm.lo'.  Stop.

Any idea? Thanks in advance, Bertrand