[sword-devel] Problems building 1.5.9 due to osiscgi.cpp

Bill Burton bburton at mail.com
Thu Oct 26 05:32:21 MST 2006


I'm having a problem building 1.5.9 on RedHat ES 3 because of an issue
in osiscgi.cpp:

if g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include   -O2
-DCURLAVAILABLE  -MT osiscgi.o -MD -MP -MF ".deps/osiscgi.Tpo" -c -o
osiscgi.o osiscgi.cpp; \
then mv -f ".deps/osiscgi.Tpo" ".deps/osiscgi.Po"; else rm -f
".deps/osiscgi.Tpo"; exit 1; fi
osiscgi.cpp: In member function `virtual bool
   sword::OSISCGI::handleToken(sword::SWBuf&, const char*,
osiscgi.cpp:102: `isdigit' undeclared (first use this function)
osiscgi.cpp:102: (Each undeclared identifier is reported only once for each
   function it appears in.)
make[2]: *** [osiscgi.o] Error 1
make[2]: Leaving directory `/usr/local/src/sword-1.5.9/utilities/diatheke'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/sword-1.5.9/utilities'
make: *** [all-recursive] Error 1

The following patch allows osiscgi.cpp to compile although I doubt
it's appropriate in all circumstances:

bburton at s27800:/usr/local/src/sword-1.5.9/utilities/diatheke% diff -u
osiscgi.cpp.orig osiscgi.cpp
--- osiscgi.cpp.orig    2006-07-15 16:41:24.000000000 -0400
+++ osiscgi.cpp 2006-10-25 23:22:20.000000000 -0400
@@ -22,6 +22,9 @@
 #ifdef WIN32
 #include <ctype.h>
+#ifndef isdigit
+#include <ctype.h>


Bill Burton <bburton at mail.com>

More information about the sword-devel mailing list