[4339] in SIPB bug reports
Bug in g++
daemon@ATHENA.MIT.EDU (neslihan@MIT.EDU)
Fri Jan 21 14:38:28 1994
From: neslihan@MIT.EDU
Date: Fri, 21 Jan 94 14:38:07 -0500
To: bug-sipb@MIT.EDU
Dear Sir,
In using your compiler g++, I believe that I have come accross
the following bug:
strlen is mistyped accross the headers and what's built into the
compiler.
I am including the following output from my compilation
process to point out that this bug comes accross all the time. As you
can see, everywhere I use strlen, I am getting warnings for files I have
not written. I would appreciate it if you would email me back if you
believe that I am the one at error.
--- output from compiler ---
g++ -DXTFUNCPROTO -g -Wall -c -I- -I. -I/usr/athena/include -o BrowseDisplay.oBrowseDisplay.c
In file included from /usr/athena/include/X11/Xos.h:69,
from /usr/athena/include/X11/Intrinsic.h:36,
from /usr/athena/include/Xm/Xm.h:77,
from ./BasicDisplayComponent.h:34,
from ./PopupWindow.h:28,
from ./BrowseDisplay.h:30,
from BrowseDisplay.c:17:
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: declaration of `int strlen(const char *)'
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: conflicts with built-in declaration `long unsigned int strlen(const char *)'
/bin/rm -f Cards.o
g++ -DXTFUNCPROTO -g -Wall -c -I- -I. -I/usr/athena/include -o Cards.o Cards.cIn file included from /afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/string.h:19,
from ./Conit.h:34,
from ./Cards.h:51,
from Cards.c:15:
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: declaration of `int strlen(const char *)'
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: conflicts with built-in declaration `long unsigned int strlen(const char *)'
/bin/rm -f ConstructDialog.o
g++ -DXTFUNCPROTO -g -Wall -c -I- -I. -I/usr/athena/include -o ConstructDialog.o ConstructDialog.c
In file included from /usr/athena/include/X11/Xos.h:69,
from /usr/athena/include/X11/Intrinsic.h:36,
from /usr/athena/include/Xm/Xm.h:77,
from ./BasicDisplayComponent.h:34,
from ./ConstructDialog.h:45,
from ConstructDialog.c:15:
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: declaration of `int strlen(const char *)'
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: conflicts with built-in declaration `long unsigned int strlen(const char *)'
/bin/rm -f DisplayBase.o
g++ -DXTFUNCPROTO -g -Wall -c -I- -I. -I/usr/athena/include -o DisplayBase.o DisplayBase.c
In file included from /afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/string.h:19,
from ./Conit.h:34,
from ./DisplayBase.h:37,
from DisplayBase.c:16:
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: declaration of `int strlen(const char *)'
/afs/sipb.mit.edu/project/gnu/lib/gcc-lib/vax-dec-bsd4.3/2.5.7/include/strings.h:29: warning: conflicts with built-in declaration `long unsigned int strlen(const char *)'
/bin/rm -f DocumentWindow.o
Cheers,
Tolga