Bug #12822

AtoM docker container triggers errors when building using Alpine Linux 7.3.x

Added by Steve Breker about 1 month ago. Updated about 1 month ago.

Status:DuplicateStart date:02/16/2019
Priority:MediumDue date:
Assignee:Steve Breker% Done:

0%

Category:Docker
Target version:-
Google Code Legacy ID: Tested version:2.5
Sponsored:No Requires documentation:

Description

Building the AtoM Docker container using Alpine Linux fpm > 7.2 (tested with 7.3.2-fpm-alpine3.9) will generate errors when building memcache preventing the container from being built:

....
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
+ make
/bin/sh /pecl-memcache-NON_BLOCKING_IO_php7/libtool --mode=compile cc -I/usr/local/include/php -I. -I/pecl-memcache-NON_BLOCKING_IO_php7 -DPHP_ATOM_INC -I/pecl-memcache-NON_BLOCKING_IO_php7/include -I/pecl-memcache-NON_BLOCKING_IO_php7/main -I/pecl-memcache-NON_BLOCKING_IO_php7 -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  -g -O2   -c /pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c -o php7/memcache.lo 
mkdir php7/.libs
 cc -I/usr/local/include/php -I. -I/pecl-memcache-NON_BLOCKING_IO_php7 -DPHP_ATOM_INC -I/pecl-memcache-NON_BLOCKING_IO_php7/include -I/pecl-memcache-NON_BLOCKING_IO_php7/main -I/pecl-memcache-NON_BLOCKING_IO_php7 -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 -g -O2 -c /pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c  -fPIC -DPIC -o php7/.libs/memcache.o
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c: In function 'mmc_find_persistent':
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c:731:19: error: lvalue required as left operand of assignment
   GC_REFCOUNT(le) = 1;
                   ^
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c: In function 'php_mmc_pool_addserver':
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c:789:24: error: lvalue required as increment operand
   GC_REFCOUNT(list_res)++;
                        ^~
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c: In function 'php_mmc_connect':
/pecl-memcache-NON_BLOCKING_IO_php7/php7/memcache.c:873:24: error: lvalue required as increment operand
   GC_REFCOUNT(list_res)++;
                        ^~
make: *** [Makefile:194: php7/memcache.lo] Error 1
ERROR: Service 'atom' failed to build: The command '/bin/sh -c set -xe         && apk add --no-cache --virtual .phpext-builddeps             gettext-dev             libxslt-dev             libzip-dev             zlib-dev             libmemcached-dev             autoconf             build-base         && docker-php-ext-install             calendar             gettext             mbstring         mysqli             opcache             pdo_mysql             sockets             xsl zip         && docker-php-ext-configure zip --with-libzip         && docker-php-ext-install zip         && curl -Ls https://github.com/websupport-sk/pecl-memcache/archive/NON_BLOCKING_IO_php7.tar.gz | tar xz -C /         && cd /pecl-memcache-NON_BLOCKING_IO_php7         && phpize && ./configure && make && make install         && docker-php-ext-enable memcache         && rm -rf /pecl-memcache-NON_BLOCKING_IO_php7         && apk add --virtual .phpext-rundeps         gettext             libxslt             libmemcached-libs         && apk del .phpext-builddeps' returned a non-zero code: 2
halibut:atom steve$ 

The Dockerfile currently specifies using Alpine fpm 7.2.x to prevent this from occurring. This needs to be fixed in order to run the AtoM Docker container with PHP 7.3.x.


Related issues

Copied from Access to Memory (AtoM) - Bug #12821: AtoM docker container triggers errors when building on no... Verified 02/16/2019

History

#1 Updated by Steve Breker about 1 month ago

  • Copied from Bug #12821: AtoM docker container triggers errors when building on non Linux hosts added

#2 Updated by Steve Breker about 1 month ago

Related info about available packages for alpine 7.3 here:
https://github.com/codecasts/php-alpine/issues/53

Alpine release tags here:
https://hub.docker.com/_/php/

#3 Updated by José Raddaoui Marín about 1 month ago

  • Status changed from New to Duplicate

This is a duplicate of #12821.

Also available in: Atom PDF