Skip to content

Instantly share code, notes, and snippets.

@jphellemons
Created February 14, 2020 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jphellemons/0b5e1112c370a47b9b1f88d5e5576be9 to your computer and use it in GitHub Desktop.
Save jphellemons/0b5e1112c370a47b9b1f88d5e5576be9 to your computer and use it in GitHub Desktop.
When I use this dockerfile:
```
FROM arm64v8/alpine:3.8
RUN apk update
RUN apk upgrade
RUN apk add git unzip zip wget g++ make boost-dev \
libssl1.0 \
db-c++ build-base cmake miniupnpc-dev libc-dev \
gnutls curl-dev \
minizip-dev
RUN git clone -v https://github.com/vericoin/vericoin.git ~/git/vericoin/
RUN cd ~/git/vericoin/src/ && make -f makefile.unix
RUN cp ~/git/vericoin/src/vericoind /usr/bin/
```
I used alpine 3.8 and not something newer because newer versions have ssl1.1 instead of 1.0
I get the following error:
```
Sending build context to Docker daemon 3.072kB
Step 1/7 : FROM arm64v8/alpine:3.8
---> b22edbe95d11
Step 2/7 : RUN apk update
---> Using cache
---> b0836f5e46c0
Step 3/7 : RUN apk upgrade
---> Using cache
---> 09cc64f75974
Step 4/7 : RUN apk add git unzip zip wget g++ make boost-dev libssl1.0 db-c++ build-base cmake miniupnpc-dev libc-dev gnutls curl-dev minizip-dev ---> Using cache
---> 652e5bd1ac77
Step 5/7 : RUN git clone -v https://github.com/vericoin/vericoin.git ~/git/vericoin/
---> Using cache
---> 1f42193744e4
Step 6/7 : RUN cd ~/git/vericoin/src/ && make -f makefile.unix
---> Running in 39b0bb12fb04
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/root/git/vericoin/src -I/root/git/vericoin/src/obj -DUSE_UPNP=1 -DUSE_IPV6=1 -DUSE_AVX -I/root/git/vericoin/src/leveldb/include -I/root/git/vericoin/src/leveldb/helpers -DUSE_ASM -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
In file included from compat.h:20:0,
from netbase.h:11,
from util.h:30,
from alert.h:13,
from alert.cpp:8:
/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
^~~~~~~
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/root/git/vericoin/src -I/root/git/vericoin/src/obj -DUSE_UPNP=1 -DUSE_IPV6=1 -DUSE_AVX -I/root/git/vericoin/src/leveldb/include -I/root/git/vericoin/src/leveldb/helpers -DUSE_ASM -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/version.d -o obj/version.o version.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/root/git/vericoin/src -I/root/git/vericoin/src/obj -DUSE_UPNP=1 -DUSE_IPV6=1 -DUSE_AVX -I/root/git/vericoin/src/leveldb/include -I/root/git/vericoin/src/leveldb/helpers -DUSE_ASM -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
In file included from compat.h:20:0,
from netbase.h:11,
from net.h:18,
from checkpoints.h:8,
from checkpoints.cpp:8:
/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
^~~~~~~
g++ -c -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/root/git/vericoin/src -I/root/git/vericoin/src/obj -DUSE_UPNP=1 -DUSE_IPV6=1 -DUSE_AVX -I/root/git/vericoin/src/leveldb/include -I/root/git/vericoin/src/leveldb/helpers -DUSE_ASM -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/netbase.d -o obj/netbase.o netbase.cpp
In file included from compat.h:20:0,
from netbase.h:11,
from netbase.cpp:6:
/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
^~~~~~~
In file included from netbase.cpp:11:0:
/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
^~~~~~~
In file included from netbase.cpp:14:0:
strlcpy.h: In function 'size_t strlcpy(char*, const char*, size_t)':
strlcpy.h:27:15: error: 'size_t strlcpy(char*, const char*, size_t)' redeclared inline without 'gnu_inline' attribute
inline size_t strlcpy(char *dst, const char *src, size_t siz)
^~~~~~~
In file included from /usr/include/c++/6.4.0/cstring:42:0,
from serialize.h:16,
from netbase.h:10,
from netbase.cpp:6:
/usr/include/fortify/string.h:165:29: note: 'size_t strlcpy(char*, const char*, size_t)' previously defined here
_FORTIFY_FN(strlcpy) size_t strlcpy(char *__d, const char *__s, size_t __n)
^~~~~~~
In file included from netbase.cpp:14:0:
strlcpy.h: In function 'size_t strlcat(char*, const char*, size_t)':
strlcpy.h:62:15: error: 'size_t strlcat(char*, const char*, size_t)' redeclared inline without 'gnu_inline' attribute
inline size_t strlcat(char *dst, const char *src, size_t siz)
^~~~~~~
In file included from /usr/include/c++/6.4.0/cstring:42:0,
from serialize.h:16,
from netbase.h:10,
from netbase.cpp:6:
/usr/include/fortify/string.h:156:29: note: 'size_t strlcat(char*, const char*, size_t)' previously defined here
_FORTIFY_FN(strlcat) size_t strlcat(char *__d, const char *__s, size_t __n)
^~~~~~~
make: *** [makefile.unix:205: obj/netbase.o] Error 1
The command '/bin/sh -c cd ~/git/vericoin/src/ && make -f makefile.unix' returned a non-zero code: 2
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment