1 |
Hello, |
2 |
|
3 |
A couple of months ago, I bought a wireless box (Asus WL-HDD2.5) with a linux |
4 |
firmware, a description is available at [1]. |
5 |
|
6 |
The first thing that I did, was to flash the firmware with openwrt, see [2]. |
7 |
Then, I wanted to install a gentoo on it so I started with a mips stage 3, |
8 |
and it worked fine. |
9 |
|
10 |
Since the box has a few bogomips (less than 100), I tried to crosscompile |
11 |
using portage, but I often have problems with the ./configure scripts (it |
12 |
cannot execute test programs while crosscompiling. Sometimes the script makes |
13 |
a bad guess and it doesn't compile). |
14 |
|
15 |
I successfully compiled hdparm, but it segfault when launched on the target. |
16 |
So I decided to compile gdb, but the compilation ends with : |
17 |
|
18 |
checking for main in -lm... yes |
19 |
checking for wctype... yes |
20 |
checking for library containing gethostbyname... none required |
21 |
checking for library containing socketpair... none required |
22 |
checking for library containing waddstr... no |
23 |
checking for library containing tgetent... no |
24 |
configure: error: no termcap library found |
25 |
make[1]: *** [configure-gdb] Error 1 |
26 |
make[1]: Leaving directory `/tmp/portage/gdb-6.4-r2/work/gdb-6.4' |
27 |
make: *** [all] Error 2 |
28 |
|
29 |
!!! ERROR: sys-devel/gdb-6.4-r2 failed. |
30 |
Call stack: |
31 |
ebuild.sh, line 1894: Called dyn_compile |
32 |
ebuild.sh, line 941: Called src_compile |
33 |
|
34 |
|
35 |
|
36 |
The last configure script (gdb has several ./configure) was : |
37 |
|
38 |
configure: running /bin/sh '../.././sim/igen/configure' --prefix=/usr |
39 |
'--cache-file=./config.cache' '--build=i686-pc-linux-gnu' |
40 |
'--host=mipsel-default-linux-uclibc' '--target=mipsel-default-linux-uclibc' |
41 |
'--with-stabs' '--prefix=/usr' '--mandir=/usr/share/man' |
42 |
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' |
43 |
'--localstatedir=/var/lib' '--disable-werror' '--disable-nls' |
44 |
'--program-transform-name=s,y,y,' '--srcdir=.././sim' |
45 |
'CC=mipsel-default-linux-uclibc-gcc' 'CFLAGS=-O2 -fomit-frame-pointer -pipe ' |
46 |
'CPPFLAGS=-I/target/usr/include' 'LDFLAGS=' 'build_alias=i686-pc-linux-gnu' |
47 |
'host_alias=mipsel-default-linux-uclibc' |
48 |
'target_alias=mipsel-default-linux-uclibc' --cache-file=.././config.cache |
49 |
--srcdir=../.././sim/igen |
50 |
|
51 |
|
52 |
But on other ./configure from gdb I can see : |
53 |
|
54 |
checking for tgetent in -ltermcap... no |
55 |
checking for tgetent in -ltinfo... no |
56 |
checking for tgetent in -lcurses... no |
57 |
checking for tgetent in -lncurses... no |
58 |
checking which library has the termcap functions... using gnutermcap |
59 |
|
60 |
|
61 |
|
62 |
I attached the interresting lines of the config.log. |
63 |
I am a bit lost, does anyone have an idea ? |
64 |
|
65 |
|
66 |
Best regards, |
67 |
|
68 |
Nicolas MASSE |
69 |
|
70 |
[1] http://www.asus.com/products4.aspx?l1=12&l2=44&l3=0&model=460&modelmenu=1 |
71 |
[2] http://openwrt.org/ |