This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15960] Error during build gdb with MinGW on Windows -> util.c
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 17 Sep 2013 10:27:55 +0000
- Subject: [Bug gdb/15960] Error during build gdb with MinGW on Windows -> util.c
- Auto-submitted: auto-generated
- References: <bug-15960-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15960
--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to hager-markus from comment #2)
> gcc version: 4.8.1
>
> error message:
> util.c: In function '_rl_strnicmp':
> util.c:394:3: error: expected ';' before 'return'
> return (0);
> ^
>
> I guess this occurs only during the build on windows because otherwise I
> couldn't imagine why this error wasn't discovered earlier. By the way, if
> you look into the util.c I think this error is quite obvious, or is there
> any case where the ; could be missed?
>
I am using i686-pc-mingw32-gcc to cross compile GDB for windows. I didn't see
the error before. This piece of code is surrounded by #if !defined
(HAVE_STRCASECMP) and #endif, HAVE_STRCASECMP is defined in my config.h. This
piece of code is not compiled for me, and probably that is the reason why I
didn't see this error before.
GDB is using readline from
(http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html). Please report this
error to bug-readline@gnu.org, get it fixed, and then backport the fix to GDB.
--
You are receiving this mail because:
You are on the CC list for the bug.