Bug 8858

Summary: broken readline configure in gdb cross build
Product: gdb Reporter: ddaney
Component: buildAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: critical CC: gdb-prs
Priority: P2    
Version: unknown   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description ddaney 2004-08-20 09:08:00 UTC
[Converted from Gnats 1753]

http://sources.redhat.com/ml/gdb/2004-08/msg00238.html

I just did:

../gdbcvs/src/configure --build=i686-pc-linux --host=mipsel-linux
--target=mipsel-linux

from gdb_6_2-branch of today.

I get this when doing make :
.
.
.
checking for mbsrtowcs... yes
checking for wcwidth... yes
checking for mbstate_t... configure: error: cannot run test program
while cross compiling
See `config.log' for more details.
make: *** [configure-readline] Error 1

I know that placing this line:

bash_cv_have_mbstate_t=${bash_cv_have_mbstate_t=yes}

in readline's config.cache will work around, but isn't it about time
that someone fixed readline's configure?

David Daney

Release:
gdb gdb_6_2-branch 2004-08-19

Environment:
build=i686-pc-linux-gnu
host=mipsel-linux
target=mipsel-linux
Comment 1 ddaney 2004-08-20 09:08:00 UTC
Fix:
http://sources.redhat.com/ml/gdb/2004-08/msg00240.html

readline's configure no longer calls AC_TRY_RUN in readline 5.0.
So when gdb imports that, the problem should be fixed.

Michael Chastain
Comment 2 Pedro Alves 2009-01-17 23:36:16 UTC
We're on readline 5.1 for a couple of years now.