Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build in Alpine docker #32

Open
adhocore opened this issue Jan 27, 2021 · 0 comments
Open

Can't build in Alpine docker #32

adhocore opened this issue Jan 27, 2021 · 0 comments

Comments

@adhocore
Copy link

adhocore commented Jan 27, 2021

Using below dockerfile:

FROM php:7.4.14-fpm-alpine3.12

RUN apk add -U --no-cache autoconf g++ file re2c make libtool musl-dev \
	&& curl -sSLo libfastcommon.tar.gz 'https://github.com/happyfish100/libfastcommon/archive/V1.0.47.tar.gz' \
    && curl -sSLo libshmcache.tar.gz 'https://github.com/happyfish100/libshmcache/archive/V1.0.7.tar.gz' \
    && tar xzf libfastcommon.tar.gz && cd libfastcommon-* && ./make.sh && ./make.sh install && cd .. \
    && tar xzf libshmcache.tar.gz && cd libshmcache-*/src && make && make install \
      # issue in the next step
      && cd tools && make && make install && cd ../.. \
      && cd php-shmcache && phpize && ./configure && make && make install

Gives error:

cc -g -O1 -Wall -D_FILE_OFFSET_BITS=64 -g -DDEBUG_FLAG -o shmcache_set shmcache_set.c -lfastcommon -lshmcache -lpthread -ldl -I/usr/local/include
/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../lib/libshmcache.so: undefined reference to `fc_strdup'
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: shmcache_set] Error 1

Similar issues elsewhere:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant