1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't compile toastman

Discussion in 'Tomato Firmware' started by Pete Ashdown, Jun 5, 2013.

  1. Pete Ashdown

    Pete Ashdown Serious Server Member

    Mine crashes attempting to compile openssl:

    Code:
    make[3]: Entering directory `/home/pashdown/wireless/toastman/tomato/release/src/router/openssl/apps'
    rm -f openssl
    mipsel-uclibc-gcc -o openssl -DMONOLITH -I../include -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall openssl.o req.o rsa.o x509.o apps.o app_rand.o  -L.. -lcrypto
    openssl.o(.data+0x8): undefined reference to `verify_main'
    openssl.o(.data+0x14): undefined reference to `asn1parse_main'
    openssl.o(.data+0x2c): undefined reference to `dgst_main'
    openssl.o(.data+0x38): undefined reference to `dh_main'
    openssl.o(.data+0x44): undefined reference to `dhparam_main'
    openssl.o(.data+0x50): undefined reference to `enc_main'
    openssl.o(.data+0x5c): undefined reference to `passwd_main'
    openssl.o(.data+0x68): undefined reference to `gendh_main'
    openssl.o(.data+0x74): undefined reference to `errstr_main'
    openssl.o(.data+0x80): undefined reference to `ca_main'
    openssl.o(.data+0x8c): undefined reference to `crl_main'
    openssl.o(.data+0xa4): undefined reference to `rsautl_main'
    openssl.o(.data+0xb0): undefined reference to `dsa_main'
    openssl.o(.data+0xbc): undefined reference to `dsaparam_main'
    openssl.o(.data+0xd4): undefined reference to `genrsa_main'
    openssl.o(.data+0xe0): undefined reference to `gendsa_main'
    openssl.o(.data+0xec): undefined reference to `s_server_main'
    openssl.o(.data+0xf8): undefined reference to `s_client_main'
    openssl.o(.data+0x104): undefined reference to `speed_main'
    openssl.o(.data+0x110): undefined reference to `s_time_main'
    openssl.o(.data+0x11c): undefined reference to `version_main'
    openssl.o(.data+0x128): undefined reference to `pkcs7_main'
    openssl.o(.data+0x134): undefined reference to `crl2pkcs7_main'
    openssl.o(.data+0x140): undefined reference to `sess_id_main'
    openssl.o(.data+0x14c): undefined reference to `ciphers_main'
    openssl.o(.data+0x158): undefined reference to `nseq_main'
    openssl.o(.data+0x164): undefined reference to `pkcs12_main'
    openssl.o(.data+0x170): undefined reference to `pkcs8_main'
    openssl.o(.data+0x17c): undefined reference to `spkac_main'
    openssl.o(.data+0x188): undefined reference to `smime_main'
    openssl.o(.data+0x194): undefined reference to `rand_main'
    openssl.o(.data+0x1a0): undefined reference to `dgst_main'
    openssl.o(.data+0x1ac): undefined reference to `dgst_main'
    openssl.o(.data+0x1b8): undefined reference to `dgst_main'
    openssl.o(.data+0x1c4): undefined reference to `dgst_main'
    openssl.o(.data+0x1d0): undefined reference to `dgst_main'
    openssl.o(.data+0x1dc): more undefined references to `dgst_main' follow
    openssl.o(.data+0x1f4): undefined reference to `enc_main'
    openssl.o(.data+0x200): undefined reference to `enc_main'
    openssl.o(.data+0x20c): undefined reference to `enc_main'
    openssl.o(.data+0x218): undefined reference to `enc_main'
    openssl.o(.data+0x224): undefined reference to `enc_main'
    openssl.o(.data+0x230): more undefined references to `enc_main' follow
    collect2: ld returned 1 exit status
    
     
  2. Monk E. Boy

    Monk E. Boy Network Guru Member

    Have you compiled a Tomato build before, or is this your first attempt?

    I ask because the Tomato build environment is rather involved to get working.
     
  3. leshan

    leshan Network Guru Member

    Copy folder /tomato/tools/brcm to /opt/brcm
     
  4. Pete Ashdown

    Pete Ashdown Serious Server Member

    Yes, I copied the tools the correct location and and put them in my path. The compiler wouldn't be barfing errors about undefined references if they weren't.
     
  5. RMerlin

    RMerlin Network Guru Member

    Make sure you installed all required packages in your host OS. The following list is for Asuswrt, but it should be pretty similar to what Tomato uses:

    Code:
    a. Ubuntu
    Install these packages (I used synaptic: "sudo synaptic")
    bison
    flex
    g++
    g++-4.4
    g++-multilib
    gawk
    gcc-multilib
    gconf (or gconf-editor)
    gitk
    lib32z1-dev
    libncurses5
    libncurses5-dev
    libstdc++6-4.4-dev
    libtool
    m4
    pkg-config
    zlib1g-dev
    autoconf
    autopoint
    libtool
    shtool
    autogen
    gperf
    lib32z1-dev
    libssl-dev
    libxml2-dev
    
     
  6. koitsu

    koitsu Network Guru Member

    Do not do this, this will cause you major pain (guaranteed, hands down, absolutely -- DO NOT DO IT).

    Use a symbolic link please: ln -s /tomato/tools/brcm /opt/brcm
     
  7. koitsu

    koitsu Network Guru Member

    Please make sure you're using a Linux release that's i386 (x86) not x64, and that you have a whole series of packages installed on the system. I cover what OS releases/distros work -- and many (MANY!!!!) do not, so I really must stress you follow the instructions I wrote to a "tee":

    http://koitsu.wordpress.com/2012/12/21/instructions-for-building-tomatousb-toastman-rt-n-firmwares/

    Also, Toastman uses Mint (not sure what version/etc.), so that might also work as well, but wait until he chimes in with exact version/architecture details first.
     
  8. Victek

    Victek Network Guru Member

  9. Toastman

    Toastman Super Moderator Staff Member Member

    Yes. I've used Mint for about 4 years now, through several different versions, all work fine, more importantly it's the only distro I found to pretty much correctly recognize all of my (new) hardware and almost set up correctly. (I still never found a distro that can use 4 monitors with 2 ATI graphics cards).
     
  10. tomatosoup

    tomatosoup Serious Server Member

    Just for the records - I'm using Ubuntu 12.04 LTS Server x64 without any problems (compiles Toastman's and shibby's branch like a charm) since a while:
    Code:
    Linux tomato 3.2.0-48-generic #74-Ubuntu SMP Thu Jun 6 19:43:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
     

Share This Page