Hello, A couple of months ago, I bought a wireless box (Asus WL-HDD2.5) with a linux firmware, a description is available at [1].
The first thing that I did, was to flash the firmware with openwrt, see [2]. Then, I wanted to install a gentoo on it so I started with a mips stage 3, and it worked fine. Since the box has a few bogomips (less than 100), I tried to crosscompile using portage, but I often have problems with the ./configure scripts (it cannot execute test programs while crosscompiling. Sometimes the script makes a bad guess and it doesn't compile). I successfully compiled hdparm, but it segfault when launched on the target. So I decided to compile gdb, but the compilation ends with : checking for main in -lm... yes checking for wctype... yes checking for library containing gethostbyname... none required checking for library containing socketpair... none required checking for library containing waddstr... no checking for library containing tgetent... no configure: error: no termcap library found make[1]: *** [configure-gdb] Error 1 make[1]: Leaving directory `/tmp/portage/gdb-6.4-r2/work/gdb-6.4' make: *** [all] Error 2 !!! ERROR: sys-devel/gdb-6.4-r2 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile The last configure script (gdb has several ./configure) was : configure: running /bin/sh '../.././sim/igen/configure' --prefix=/usr '--cache-file=./config.cache' '--build=i686-pc-linux-gnu' '--host=mipsel-default-linux-uclibc' '--target=mipsel-default-linux-uclibc' '--with-stabs' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-werror' '--disable-nls' '--program-transform-name=s,y,y,' '--srcdir=.././sim' 'CC=mipsel-default-linux-uclibc-gcc' 'CFLAGS=-O2 -fomit-frame-pointer -pipe ' 'CPPFLAGS=-I/target/usr/include' 'LDFLAGS=' 'build_alias=i686-pc-linux-gnu' 'host_alias=mipsel-default-linux-uclibc' 'target_alias=mipsel-default-linux-uclibc' --cache-file=.././config.cache --srcdir=../.././sim/igen But on other ./configure from gdb I can see : checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for tgetent in -lcurses... no checking for tgetent in -lncurses... no checking which library has the termcap functions... using gnutermcap I attached the interresting lines of the config.log. I am a bit lost, does anyone have an idea ? Best regards, Nicolas MASSE [1] http://www.asus.com/products4.aspx?l1=12&l2=44&l3=0&model=460&modelmenu=1 [2] http://openwrt.org/
configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -ltermcap -lm >&5 /usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -ltinfo -lm >&5 /usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -ltinfo collect2: ld returned 1 exit status configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -lcurses -lm >&5 /usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -lcurses collect2: ld returned 1 exit status configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -lncurses -lm >&5 /usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status configure:8323: result: no configure:8332: error: no termcap library found
