1 (edytowany przez sehack 2016-01-26 12:41:43)

Temat: Nieudana kompilacja

Pobrałem Ubuntu 14.04, postawiłem na wirtualnej maszynie, po instalowałem paczki, próbuję skompilować obraz OpenWRT od producenta routera Asus RT-AC51U

make[5]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl/ssl'
if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
        (cd ..; make libssl.so.1.0.0); \
    fi
make[6]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
[ -z "" ] || mipsel-uclibc-gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 -DLINUX30 -DLINUX_KERNEL_VERSION=132644 --sysroot=/opt/openwrt-gcc463.mips -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall -Iinclude \
        -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso  \
        fips_premain.c fipscanister.o \
        libcrypto.a -Wl,--gc-sections -ldl
make[7]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[7]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[7]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl'
make[8]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[7]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[6]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[5]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl/ssl'
making all in apps...
make[5]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl/apps'
rm -f openssl
shlib_target=; if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
        shlib_target="linux-shared"; \
    elif [ -n "" ]; then \
      FIPSLD_CC="mipsel-uclibc-gcc"; CC=/usr/local/ssl/fips-2.0/bin/fipsld; export CC FIPSLD_CC; \
    fi; \
    LIBRARIES="-L.. -lssl  -L.. -lcrypto" ; \
    make -f ../Makefile.shared -e \
        APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o" \
        LIBDEPS=" $LIBRARIES -Wl,--gc-sections -ldl" \
        link_app.${shlib_target}
make[6]: Entering directory `/home/sehack/asuswrt/release/src/router/openssl/apps'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/bin/ld: warning: ld-uClibc.so.0, needed by /opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so, not found (try using -rpath or -rpath-link)
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libc.so: undefined reference to `_dl_app_init_array'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_load_shared_library'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_map_cache'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_malloc_function'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_perform_mips_global_got_relocations'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_protect_relro'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libc.so: undefined reference to `_dl_app_fini_array'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_run_init_array'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_errno'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_free_function'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_loaded_modules'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_lookup_hash'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_debug_addr'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_handles'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_symbol_tables'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_fixup'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_unmap_cache'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_run_fini_array'
/opt/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/../../../../mipsel-linux-uclibc/lib/libdl.so: undefined reference to `_dl_error_number'
collect2: ld returned 1 exit status
make[6]: *** [link_app.gnu] Error 1
make[6]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl/apps'
make[5]: *** [openssl] Error 2
make[5]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl/apps'
make[4]: *** [build_apps] Error 1
make[4]: Leaving directory `/home/sehack/asuswrt/release/src/router/openssl'
make[3]: *** [openssl] Error 2
make[3]: Leaving directory `/home/sehack/asuswrt/release/src/router'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sehack/asuswrt/release/src-ra-mt7620'
make[1]: *** [bin] Error 2
make[1]: Leaving directory `/home/sehack/asuswrt/release/src-ra-mt7620'
make: *** [rt-ac51u] Error 2
sehack@ubuntu:~/asuswrt/release/src-ra-mt7620$

I bieda.

2

Odp: Nieudana kompilacja

To nie jest czyste openwrt tylko ich przeróbka. Zgłoś do producenta że ich sdk nie działa.

Zwykle w archiwum jest także plik readme w którym jest napisane na czym to kompilowali i na jakiej wersji. Na innych dystrybucjach niekoniecznie musi działać z powodu różnych wersji pakietów.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Nieudana kompilacja

Dzięki Cezary że tutaj czuwasz, no nic, będę walczył.