origamiofficial / docker-pihole-unbound

A supercharged Pi-Hole docker container with Unbound built-in. [Auto Updates 🚀]
https://hub.docker.com/r/rlabinc/pihole-unbound
MIT License
57 stars 5 forks source link

Unbound Compile Failed on "linux/386" Platform #1

Closed origamiofficial closed 1 year ago

origamiofficial commented 2 years ago

Describe the bug Whenever I try to compile unbound inside linux/386 platform Dockers container it fails. But it compiles fine on other platforms. I can't find any solution.

#0 285.2 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans7.ltrans.o: in function `tls_session_ticket_key_cb':
#0 285.2 /tmp/workdir/unbound/util/net_help.c:1550: undefined reference to `EVP_CIPHER_get_iv_length'
#0 285.3 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans17.ltrans.o: in function `secalgo_hash_final.constprop.0':
#0 285.3 /tmp/workdir/unbound/validator/val_secalgo.c:208: undefined reference to `EVP_MD_CTX_get0_md'
#0 285.3 /usr/bin/ld: /tmp/workdir/unbound/validator/val_secalgo.c:208: undefined reference to `EVP_MD_get_size'
#0 285.3 /usr/bin/ld: /tmp/workdir/unbound/validator/val_secalgo.c:213: undefined reference to `EVP_MD_CTX_get0_md'
#0 285.3 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans17.ltrans.o:/tmp/workdir/unbound/validator/val_secalgo.c:213: undefined reference to `EVP_MD_get_size'
#0 285.3 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans1.ltrans.o: in function `remote_control_callback':
#0 285.3 /tmp/workdir/unbound/daemon/remote.c:3345: undefined reference to `SSL_get1_peer_certificate'
#0 285.3 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans12.ltrans.o: in function `dtio_ssl_handshake':
#0 285.4 /tmp/workdir/unbound/dnstap/dtstream.c:1325: undefined reference to `SSL_get1_peer_certificate'
#0 285.4 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans12.ltrans.o:/tmp/workdir/unbound/dnstap/dtstream.c:1350: undefined reference to `SSL_get1_peer_certificate'
#0 285.4 /usr/bin/ld: /tmp/unbound.acbOZI.ltrans13.ltrans.o: in function `ssl_handshake.part.0':
#0 285.4 /tmp/workdir/unbound/util/netevent.c:1436: undefined reference to `SSL_get1_peer_certificate'
#0 285.4 /usr/bin/ld: /tmp/workdir/unbound/util/netevent.c:1466: undefined reference to `SSL_get1_peer_certificate'
#0 285.5 collect2: error: ld returned 1 exit status
#0 285.5 make: *** [Makefile:369: unbound] Error 1

To reproduce Steps to reproduce the behavior:

    git clone https://github.com/NLnetLabs/unbound.git && \
    cd unbound && \
    groupadd _unbound && \
    useradd -g _unbound -s /dev/null -d /etc _unbound && \
    ./configure \
        --disable-dependency-tracking \
        --prefix=/opt/unbound \
        --with-pthreads \
        --with-username=_unbound \
        --with-ssl=/opt/openssl \
        --with-libevent \
        --with-libnghttp2 \
        --enable-dnstap \
        --enable-tfo-server \
        --enable-tfo-client \
        --enable-event-api \
        --enable-subnet && \
    make install

Expected behavior It should compile just like other platforms.

System:

Additional information The Dockerfile I'm using to compile: https://github.com/origamiofficial/docker-pihole-unbound/blob/main/latest/Dockerfile

Full Output unbound log.txt

Hits

origamiofficial commented 1 year ago

Unbound do not support i386 platform that's why it's happening. If you have a i386 platform I would suggest you to use my Bind9 image.