First, thank you for your fix above - it worked perfect... then came the next container update.... same error but your fix returns an error where there was none last time. Any idea how to fix this error? Here is the entire interaction with your fix:
root@3e69a0cc162f:/# PHP_VER="7.3.25" && \
> BUILD_PACKAGES="wget build-base php7-dev" && \
>
> apk add --no-cache --virtual .php-build-dependencies $BUILD_PACKAGES && \
> apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ gnu-libiconv-dev && \
> (mv /usr/bin/gnu-iconv /usr/bin/iconv; mv /usr/include/gnu-libiconv/*.h /usr/include; rm -rf /usr/include/gnu-libiconv) && \
> mkdir -p /opt && \
> cd /opt && \
> wget https://secure.php.net/distributions/php-$PHP_VER.tar.gz && \
> tar xzf php-$PHP_VER.tar.gz && \
> cd php-$PHP_VER/ext/iconv && \
> phpize && \
> ./configure --with-iconv=/usr && \
> make && \
> make install && \
> mkdir -p /etc/php7/conf.d && \
> #next command not needed in LSIO Docker
> #echo "extension=iconv.so" >> /etc/php7/conf.d/iconv.ini && \
>
> apk del .php-build-dependencies && \
> rm -rf /opt/*
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/1) Upgrading .php-build-dependencies (20201205.073029 -> 20201205.074158)
OK: 558 MiB in 240 packages
fetch https://dl-3.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
OK: 558 MiB in 240 packages
mv: cannot stat '/usr/bin/gnu-iconv': No such file or directory
mv: cannot stat '/usr/include/gnu-libiconv/*.h': No such file or directory
--2020-12-05 01:41:59-- https://secure.php.net/distributions/php-7.3.25.tar.gz
Resolving secure.php.net (secure.php.net)... 185.85.0.29
Connecting to secure.php.net (secure.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.php.net/distributions/php-7.3.25.tar.gz [following]
--2020-12-05 01:42:00-- https://www.php.net/distributions/php-7.3.25.tar.gz
Resolving www.php.net (www.php.net)... 185.85.0.29
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19675266 (19M) [application/octet-stream]
Saving to: 'php-7.3.25.tar.gz.1'
php-7.3.25.tar.gz.1 100%[=============================================================>] 18.76M 9.79MB/s in 1.9s
2020-12-05 01:42:03 (9.79 MB/s) - 'php-7.3.25.tar.gz.1' saved [19675266/19675266]
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
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 whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether 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-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking target system type... x86_64-pc-linux-musl
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib
checking for PHP extension directory... /usr/lib/php7/modules
checking for PHP installed headers prefix... /usr/include/php7
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... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for iconv support... yes, shared
checking for libiconv in -liconv... yes
checking if iconv is glibc's... no
checking if using GNU libiconv... no
checking if iconv is Konstantin Chuguev's... no
checking if using IBM iconv... no
checking if iconv supports errno... yes
checking if iconv supports //IGNORE... no
checking if your cpp allows macro usage in include lines... yes
checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-alpine-linux-musl/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
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
/bin/sh /opt/php-7.3.25/ext/iconv/libtool --mode=compile cc -I"/usr/include" -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/php-7.3.25/ext/iconv -DPHP_ATOM_INC -I/opt/php-7.3.25/ext/iconv/include -I/opt/php-7.3.25/ext/iconv/main -I/opt/php-7.3.25/ext/iconv -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -DHAVE_CONFIG_H -I/usr/include -g -O2 -c /opt/php-7.3.25/ext/iconv/iconv.c -o iconv.lo
mkdir .libs
cc -I/usr/include -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/php-7.3.25/ext/iconv -DPHP_ATOM_INC -I/opt/php-7.3.25/ext/iconv/include -I/opt/php-7.3.25/ext/iconv/main -I/opt/php-7.3.25/ext/iconv -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -DHAVE_CONFIG_H -I/usr/include -g -O2 -c /opt/php-7.3.25/ext/iconv/iconv.c -fPIC -DPIC -o .libs/iconv.o
/opt/php-7.3.25/ext/iconv/iconv.c: In function 'zm_startup_miconv':
/opt/php-7.3.25/ext/iconv/iconv.c:287:4: error: '_libiconv_version' undeclared (first use in this function)
287 | _libiconv_version >> 8, _libiconv_version & 0xff);
| ^~~~~~~~~~~~~~~~~
/opt/php-7.3.25/ext/iconv/iconv.c:287:4: note: each undeclared identifier is reported only once for each function it appears in
/opt/php-7.3.25/ext/iconv/iconv.c: In function '_php_iconv_appendl':
/opt/php-7.3.25/ext/iconv/iconv.c:184:15: warning: implicit declaration of function 'libiconv'; did you mean 'iconv'? [-Wimplicit-function-declaration]
184 | #define iconv libiconv
| ^~~~~~~~
/opt/php-7.3.25/ext/iconv/iconv.c:468:8: note: in expansion of macro 'iconv'
468 | if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) {
| ^~~~~
make: *** [Makefile:194: iconv.lo] Error 1
root@3e69a0cc162f:/opt/php-7.3.25/ext/iconv#
any feedback/help is greatly appreciated.