zhlynn / zsign

Maybe it is the most quickly codesign alternative for iOS12+, cross-platform ( macOS, Linux , Windows ), more features.
BSD 3-Clause "New" or "Revised" License
1.25k stars 379 forks source link

error in install with docker #302

Open codar-ioo opened 1 year ago

codar-ioo commented 1 year ago
docker build -t zsign https://github.com/zhlynn/zsign.git
Sending build context to Docker daemon  417.3kB
Step 1/6 : FROM alpine
latest: Pulling from library/alpine
7264a8db6415: Pull complete
Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
Status: Downloaded newer image for alpine:latest
 ---> 7e01a0d0a1dc
Step 2/6 : WORKDIR /zsign
 ---> Running in 86feadf5f773
Removing intermediate container 86feadf5f773
 ---> 3e68496434f6
Step 3/6 : COPY . src/
 ---> 034621139414
Step 4/6 : RUN apk add --no-cache --virtual .build-deps g++ clang clang-static openssl-dev openssl-libs-static &&     apk add --no-cache zip unzip &&     clang++ src/*.cpp src/common/*.cpp /usr/lib/libcrypto.a -O3 -o zsign -static &&       apk del .build-deps &&     rm -rf src
 ---> Running in 5cd416d9d51e
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/28) Installing libgcc (12.2.1_git20220924-r10)
(2/28) Installing libstdc++ (12.2.1_git20220924-r10)
(3/28) Installing libstdc++-dev (12.2.1_git20220924-r10)
(4/28) Installing zstd-libs (1.5.5-r4)
(5/28) Installing binutils (2.40-r7)
(6/28) Installing libgomp (12.2.1_git20220924-r10)
(7/28) Installing libatomic (12.2.1_git20220924-r10)
(8/28) Installing gmp (6.2.1-r3)
(9/28) Installing isl26 (0.26-r1)
(10/28) Installing mpfr4 (4.2.0_p12-r0)
(11/28) Installing mpc1 (1.3.1-r1)
(12/28) Installing gcc (12.2.1_git20220924-r10)
(13/28) Installing musl-dev (1.2.4-r1)
(14/28) Installing libc-dev (0.7.2-r5)
(15/28) Installing g++ (12.2.1_git20220924-r10)
(16/28) Installing libffi (3.4.4-r2)
(17/28) Installing xz-libs (5.4.3-r0)
(18/28) Installing libxml2 (2.11.4-r0)
(19/28) Installing llvm16-libs (16.0.6-r1)
(20/28) Installing clang16-libs (16.0.6-r1)
(21/28) Installing fortify-headers (1.1-r3)
(22/28) Installing clang16-libclang (16.0.6-r1)
(23/28) Installing clang16 (16.0.6-r1)
(24/28) Installing clang16-static (16.0.6-r1)
(25/28) Installing pkgconf (1.9.5-r0)
(26/28) Installing openssl-dev (3.1.2-r0)
(27/28) Installing openssl-libs-static (3.1.2-r0)
(28/28) Installing .build-deps (20230831.194242)
Executing busybox-1.36.1-r2.trigger
OK: 1114 MiB in 43 packages
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/2) Installing unzip (6.0-r14)
(2/2) Installing zip (3.0-r12)
Executing busybox-1.36.1-r2.trigger
OK: 1115 MiB in 45 packages
In file included from src/common/json.cpp:1:
src/common/json.h:70:2: error: unknown type name 'time_t'; did you mean 'size_t'?
        time_t asDate() const;
        ^~~~~~
        size_t
/usr/include/bits/alltypes.h:50:24: note: 'size_t' declared here
typedef unsigned _Addr size_t;
                       ^
In file included from src/common/json.cpp:1:
src/common/json.h:74:18: error: unknown type name 'time_t'; did you mean 'size_t'?
        void assignDate(time_t val);
                        ^~~~~~
                        size_t
/usr/include/bits/alltypes.h:50:24: note: 'size_t' declared here
typedef unsigned _Addr size_t;
                       ^
In file included from src/common/json.cpp:1:
src/common/json.h:75:24: error: unknown type name 'time_t'; did you mean 'size_t'?
        void assignDateString(time_t val);
                              ^~~~~~
                              size_t
/usr/include/bits/alltypes.h:50:24: note: 'size_t' declared here
typedef unsigned _Addr size_t;
                       ^
In file included from src/common/json.cpp:1:
src/common/json.h:183:3: error: unknown type name 'time_t'; did you mean 'size_t'?
                time_t vDate;
                ^~~~~~
                size_t
/usr/include/bits/alltypes.h:50:24: note: 'size_t' declared here
typedef unsigned _Addr size_t;
                       ^
In file included from src/common/json.cpp:1:
src/common/json.h:299:20: error: unknown type name 'time_t'; did you mean 'size_t'?
        static string d2s(time_t t);
                          ^~~~~~
                          size_t
/usr/include/bits/alltypes.h:50:24: note: 'size_t' declared here
typedef unsigned _Addr size_t;
                       ^
src/common/json.cpp:810:14: error: out-of-line definition of 'assignDate' does not match any declaration in 'JValue'
void JValue::assignDate(time_t val)
             ^~~~~~~~~~
src/common/json.cpp:825:14: error: out-of-line definition of 'assignDateString' does not match any declaration in 'JValue'
void JValue::assignDateString(time_t val)
             ^~~~~~~~~~~~~~~~
src/common/json.cpp:832:16: error: return type of out-of-line definition of 'JValue::asDate' differs from that in the declaration
time_t JValue::asDate() const
~~~~~~         ^
src/common/json.h:70:9: note: previous declaration is here
        time_t asDate() const;
        ~~~~~~ ^
src/common/json.cpp:1904:17: error: out-of-line definition of 'd2s' does not match any declaration in 'JWriter'
string JWriter::d2s(time_t t)
                ^~~
9 errors generated.
The command '/bin/sh -c apk add --no-cache --virtual .build-deps g++ clang clang-static openssl-dev openssl-libs-static &&     apk add --no-cache zip unzip &&     clang++ src/*.cpp src/common/*.cpp /usr/lib/libcrypto.a -O3 -o zsign -static &&      apk del .build-deps &&     rm -rf src' returned a non-zero code: 1
corysus commented 11 months ago

Just change alpine image version to 3.14 inside Dockerfile FROM alpine:3.14