Closed examedia-video-engineering closed 1 month ago
I added libzmq to the build it seem to have collision?
libssh.a:sha1_init libzmq.a:sha1_init
Hmm strange, is this with a modified Dockerfile? current master build seems to not fail on it.
If you comment out the chekdupsym script does ffmpeg fail to link instead? if really both libssh.a and libzmq.a has a public sha1_init symbol it will probably fail. If this is the case a fix is to somehow rename one of them, maybe convince any of the upstreams to namespace it with som prefix.
Aha you added libzmq. Try skip chekdupsym and see if it still fails. If so maybe do ugly patch for now that renames one of the symbols or make it private (static in c). But best would probably be to get one or both of the projects to fix it.
Aha you added libzmq. Try skip chekdupsym and see if it still fails. If so maybe do ugly patch for now that renames one of the symbols or make it private (static in c). But best would probably be to get one or both of the projects to fix it.
FFmpeg executes ok, but I'm not sure if it'll fail in a specific ZMQ use case... will do an "ugly patch" for zmq I guess. Thank you!
ARG LIBZMQ_VERSION=4.3.5
ARG LIBZMQ_URL="https://github.com/zeromq/libzmq/releases/download/v${LIBZMQ_VERSION}/zeromq-${LIBZMQ_VERSION}.tar.gz"
ARG LIBZMQ_SHA256=6653ef5910f17954861fe72332e68b03ca6e4d9c7160eb3a8de5a5a913bfab43
RUN \
wget $WGET_OPTS -O zmq.tar.gz "$LIBZMQ_URL" && \
echo "$LIBZMQ_SHA256 zmq.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS zmq.tar.gz && cd zeromq-* && \
grep -r -l sha1_init external/sha1* | xargs sed -i 's/sha1_init/zeromq_sha1_init/g' && \
./configure --disable-shared --enable-static && \
make -j$(nproc) install
seems to work for ZeroMQ :) checkdupsym is now a PASS
chekdupsym has found a symbol duplicate, any way to avoid that please? Prefereably without rewriting all rust libs )