[Elphel-support] dropbear-0.46

Luc Deschenaux l.deschenaux at foxel.ch
Tue Sep 30 16:47:40 PDT 2014


On 01. 10. 14 00:58, Oleg wrote:
> Hi Luc,
>
> Trying to add dropbear-2014.65 to the software. Patch applied.
>
> Then I get missing libtomcrypt.a and libtommath.a:
>
>> crisv32-axis-linux-gnu-gcc: libtomcrypt/libtomcrypt.a: No such file or
>> directory
>> crisv32-axis-linux-gnu-gcc: libtommath/libtommath.a: No such file or
>> directory
>
> Did you build those?
>
> After building them manually I get:
>
>> libtomcrypt/libtomcrypt.a: could not read symbols: File format not
>> recognized
>> collect2: ld returned 1 exit status
>> make: *** [dropbear] Error 1
> Did something wrong probably - looking at it.
>
> Best regards,
> Oleg Dzhimiev
> Electronics Engineer
> phone: +1 801 783 5555 x124
> Elphel, Inc.
>

Hello Oleg,

I set some environment variables, maybe you need to set some of them:

# toolchain
TOOLCHAIN=/usr/local/cris
export PATH=/usr/local/crisv32/bin:$PATH
export PATH=${TOOLCHAIN}/crisv32-axis-linux-gnu/bin:$PATH
export PATH=${TOOLCHAIN}/bin:$PATH

# binaries
export CC=${TOOLCHAIN}/bin/crisv32-axis-linux-gnu-gcc
export CXX=${TOOLCHAIN}/bin/crisv32-axis-linux-gnu-g++
export CPP=${TOOLCHAIN}/bin/crisv32-axis-linux-gnu-cpp
export AR=${TOOLCHAIN}/bin/crisv32-axis-linux-gnu-ar
export RANLIB=${TOOLCHAIN}/bin/crisv32-axis-linux-gnu-ranlib

# options
export CFLAGS=-I${TOOLCHAIN}/include
export CFLAGS="${CFLAGS} -I${TOOLCHAIN}/crisv32-axis-linux-gnu/sys-include"
export CXXFLAGS=${CFLAGS}
export CPPFLAGS=${CFLAGS}
export LDFLAGS=-L${TOOLCHAIN}/lib
export LDFLAGS="${LDFLAGS} -L${TOOLCHAIN}/crisv32-axis-linux-gnu/lib/"

# user includes and libraries
export LDFLAGS="${LDFLAGS} -L/usr/local/crisv32/lib"
export CFLAGS="${CFLAGS} -I/usr/local/crisv32/include"
export CXXFLAGS=${CFLAGS}


Then I run configure with

./configure --host=crisv32-axis-linux-gnu --prefix=/usr --with-zlib=$(pwd)/../elphel353-8.2.15/elphel353/libs/zlib-1.2.3/


If nothing works, you can give a try with the attached archive (run make
clean before)

Best regards,

Luc

-- 
Luc Deschenaux

t: +41 788 266 366
v: +41 225 085 085 @ netvoip.ch

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dropbear-2014.65.crisv32-bin.tar.gz
Type: application/gzip
Size: 2545447 bytes
Desc: not available
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20141001/178fa385/attachment.gz>


More information about the Support-list mailing list