Open lejeczek opened 2 years ago
Dockerfile fails to build.
My first time trying Bolt thus I'm not 100% sure it's a bug.
Just today I did:
-> $ composer create-project bolt/project bolt.test.websites -> $ podman build --tag my-bolt.cms --file bolt.test.websites/Dockerfile
which build filed with:
cc -I/usr/include -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/usr/src/php/ext/iconv -DPHP_ATOM_INC -I/usr/src/php/ext/iconv/include -I/usr/src/php/ext/iconv/main -I/usr/src/php/ext/iconv -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 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -I/usr/include -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c /usr/src/php/ext/iconv/iconv.c -fPIC -DPIC -o .libs/iconv.o In file included from /usr/local/include/php/Zend/zend_config.h:1, from /usr/local/include/php/Zend/zend_portability.h:43, from /usr/local/include/php/Zend/zend_types.h:25, from /usr/local/include/php/Zend/zend.h:27, from /usr/local/include/php/main/php.h:33, from /usr/src/php/ext/iconv/iconv.c:25: /usr/local/include/php/main/../main/php_config.h:1976: warning: "ICONV_BROKEN_IGNORE" redefined 1976 | #define ICONV_BROKEN_IGNORE 0 | In file included from /usr/src/php/ext/iconv/iconv.c:22: /usr/src/php/ext/iconv/config.h:59: note: this is the location of the previous definition 59 | #define ICONV_BROKEN_IGNORE 1 | /usr/src/php/ext/iconv/iconv.c: In function 'zm_startup_miconv': /usr/src/php/ext/iconv/iconv.c:284:25: error: '_libiconv_version' undeclared (first use in this function) 284 | _libiconv_version >> 8, _libiconv_version & 0xff); | ^~~~~~~~~~~~~~~~~ /usr/src/php/ext/iconv/iconv.c:284:25: note: each undeclared identifier is reported only once for each function it appears in /usr/src/php/ext/iconv/iconv.c: In function '_php_iconv_appendl': /usr/src/php/ext/iconv/iconv.c:181:15: warning: implicit declaration of function 'libiconv'; did you mean 'iconv'? [-Wimplicit-function-declaration] 181 | #define iconv libiconv | ^~~~~~~~ /usr/src/php/ext/iconv/iconv.c:453:29: note: in expansion of macro 'iconv' 453 | if (iconv(cd, (char **)&in_p, &in_left, (char **) &out_p, &out_left) == (size_t)-1) { | ^~~~~ make: *** [Makefile:192: iconv.lo] Error 1 Error: error building at STEP "RUN set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS icu-dev libzip-dev zlib-dev oniguruma-dev ; docker-php-ext-configure zip; docker-php-ext-configure gd --with-freetype --with-jpeg ; docker-php-ext-install -j$(nproc) intl pdo_mysql zip gd exif pdo iconv pcntl mbstring fileinfo posix ; pecl install apcu-${APCU_VERSION} ; pecl clear-cache; docker-php-ext-enable apcu opcache ; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; apk del .build-deps": error while running runtime: exit status 2
regards, L.
I've found this bug report on official PHP docker image, but I don't have the expertise to implement the fix.
I'm trying to test Bolt without lucky because of this bug.
Dockerfile fails to build.
Details
My first time trying Bolt thus I'm not 100% sure it's a bug.
Reproduction
Just today I did:
-> $ composer create-project bolt/project bolt.test.websites -> $ podman build --tag my-bolt.cms --file bolt.test.websites/Dockerfile
which build filed with:
Bug summary
regards, L.