This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32495] New: static declaration of 'strcasestr' follows non-static declaration
- From: "rask at sygehus dot dk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2007 13:25:20 -0000
- Subject: [Bug libfortran/32495] New: static declaration of 'strcasestr' follows non-static declaration
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Configure command:
/n/12/rask/src/all/configure --target mipsisa64-unknown-elf
--with-newlib--enable-sim --disable-gdb --disable-nls
Build fails with this:
libtool: compile: /home/rask/build/gcc-mipsisa64-unknown-elf/./gcc/xgcc
-B/home/rask/build/gcc-mipsisa64-unknown-elf/./gcc/ -nostdinc
-B/home/rask/build/gcc-mipsisa64-unknown-elf/mipsisa64-unknown-elf/newlib/
-isystem
/home/rask/build/gcc-mipsisa64-unknown-elf/mipsisa64-unknown-elf/newlib/targ-include
-isystem /n/12/rask/src/all/newlib/libc/include
-B/home/rask/build/gcc-mipsisa64-unknown-elf/mipsisa64-unknown-elf/libgloss/mips
-L/home/rask/build/gcc-mipsisa64-unknown-elf/mipsisa64-unknown-elf/libgloss/libnosys
-L/n/12/rask/src/all/libgloss/mips -B/usr/local/mipsisa64-unknown-elf/bin/
-B/usr/local/mipsisa64-unknown-elf/lib/ -isystem
/usr/local/mipsisa64-unknown-elf/include -isystem
/usr/local/mipsisa64-unknown-elf/sys-include
-L/home/rask/build/gcc-mipsisa64-unknown-elf/./ld -DHAVE_CONFIG_H -I.
-I/n/12/rask/src/all/libgfortran -I. -iquote/n/12/rask/src/all/libgfortran/io
-I/n/12/rask/src/all/libgfortran/../gcc
-I/n/12/rask/src/all/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE
-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -MT
backtrace.lo -MD -MP -MF .deps/backtrace.Tpo -c
/n/12/rask/src/all/libgfortran/runtime/backtrace.c -o backtrace.o
/n/12/rask/src/all/libgfortran/runtime/backtrace.c:75: error: static
declaration of 'strcasestr' follows non-static declaration
/n/12/rask/src/all/newlib/libc/include/string.h:64: error: previous declaration
of 'strcasestr' was here
make[3]: *** [backtrace.lo] Error 1
make[3]: Leaving directory
`/home/rask/build/gcc-mipsisa64-unknown-elf/mipsisa64-unknown-elf/libgfortran'
Autoconf can check if strcasestr is already declared.
--
Summary: static declaration of 'strcasestr' follows non-static
declaration
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rask at sygehus dot dk
GCC target triplet: mipsisa64-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32495