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

Fail to do install.sh on reproducible Docker build #712

Closed
josvazg opened this issue Jul 19, 2022 · 3 comments
Closed

Fail to do install.sh on reproducible Docker build #712

josvazg opened this issue Jul 19, 2022 · 3 comments

Comments

@josvazg
Copy link

josvazg commented Jul 19, 2022

This is the Dockerfile:

FROM debian:stable-slim

RUN apt update -y && apt install -y curl git autoconf automake libtool make \
                                    g++ pkg-config libboost-all-dev \
                                    libzmq3-dev libnorm-dev

RUN curl -LO https://raw.githubusercontent.com/libbitcoin/libbitcoin-explorer/version3/install.sh && \
    chmod +x install.sh && ./install.sh

CMD bash

This is the error:

*** Warning: Linking the shared library src/libbitcoin-protocol.la against the
*** static library libprotokit.a is not portable!
g++: error: libprotokit.a: No such file or directory
make: *** [Makefile:872: src/libbitcoin-protocol.la] Error 1

Note that libprotokit.a is provided by libnorm-dev.

root@289452cd0f7b:/# dpkg -L libnorm-dev |grep libprotokit.a
/usr/lib/x86_64-linux-gnu/libprotokit.a

What am I missing?

@evoskuil
Copy link
Member

Sorry, no idea.

@pmienk
Copy link
Member

pmienk commented Nov 19, 2022

Might want to try --disable-shared given that it's finding libprotokit.a and will favor the static library. Though your error appears to be telling you that the location of libprotokit.a isn't being provided.

I don't recognize libprotokit.a or libnorm-dev as required by either libbitcoin-protocol or libbitcoin-explorer. More detail as to what you were trying to accomplish and where it failed would be useful.

@pmienk pmienk closed this as completed Nov 24, 2022
@mehdi-sadighian
Copy link

juts edit the Makefile and remove libprotokit.a from linker

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

4 participants