CC -c -O2 -I../../.. -I/usr/lang/SC2.0.1/include/CC_413 -I../../../include
-DFRESCO_LIBALL='"/usr/X11R6/lib/X11"' -DX_LIBDIR='"/usr/X11R6/lib/X11"' -D
SUNSHLIB -DSHAREDCODE -pic Xdisplay.cxx
"Xdisplay.cxx", line 1426: error: bad argument 1 type for strcasecmp(): const
char * ( char * expected)
"Xdisplay.cxx", line 1426: error: bad argument 1 type for strcasecmp(): const
char * ( char * expected).
Is anyone can help?
Thanks in advance
--
Eric Doutreleau
Ingenieur systeme a l Ecole Centrale de Paris
--------------------------------------------------------------------------
BSD uber alles.
>Well I download X11R6 and try to compile it on a Sun 670 MP on
>SunOs 4.1.3 with gcc2.3.3 and sparcCompiler C++ 3.0.1.
>Everything seems to build OK except Fresco.
We didn't get a chance to build Fresco with C++ 3.0.1 under SunOS 4.1.3,
but it looks like Sun's string.h header file has a bogus prototype for
strcasecmp:
EXTERN_FUNCTION ( extern int strcasecmp, (char*, const char*));
This is simply wrong. Both arguments should both be const char *.
You can either fix the header file in /usr/lang/SC2.0.1/include/CC_413,
or you can change the preceding line in Xdisplay.cxx from
const char* p = buf.string();
to:
char* p = (char *)buf.string(); // for broken Sun strcasecmp prototype
Maybe we should add a kludge to work around this problem in the future,
though you'll still have to enable the kludge manually, since other C++
compilers under SunOS 4.1.3 get the declaration of strcasecmp right.
PS: Please file a bug on this by sending mail to xb...@x.org, using the
file in xc/bug-report as a template.
--
Matt Landau Technical Director, Application Toolkits
ma...@x.org X Consortium Inc.