Subject: | Compilation failed on Mac OS X 10.3.8 |
The module fails to compile when being installed via Cpan.pm.
Compilation error message:
colorer/unicode/Encodings.cpp: In static member function `static int
Encodings::getEncodingIndex(const char*)':
colorer/unicode/Encodings.cpp:48: error: `stricmp' undeclared (first use this
function)
colorer/unicode/Encodings.cpp:48: error: (Each undeclared identifier is
reported only once for each function it appears in.)
make: *** [colorer/unicode/Encodings.o] Error 1
After adding "-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp" to CCFLAGS the module compiles and passes tests.
System info:
Perl, v5.8.1-RC3 built for darwin-thread-multi-2level
Darwin kalarepa.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC Power Macintosh powerp