mvnForum Homepage

Posted by puddleDuck at Jun 17, 2004 4:06:14 AM
Re: make errors
With Fedora Core 2, sword 1.5.7.


What have I missed?
Thank you.

Tpo -c ../src/mgr/installmgr.cpp -o installmgr.o
../src/mgr/installmgr.cpp: In member function `char
sword::InstallMgr::FTPURLGetFile(void*, const char*, const char*)':
../src/mgr/installmgr.cpp:153: error: `TRUE' undeclared (first use this
../src/mgr/installmgr.cpp:153: error: (Each undeclared identifier is reported
only once for each function it appears in.)
make[2]: *** [installmgr.lo] Error 1
make[2]: Leaving directory `/home/alvin/DOWNLOAD/sword/sword-1.5.7/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alvin/DOWNLOAD/sword/sword-1.5.7'
make: *** [all] Error 2

When I grep the src directory for TRUE I get:
steve@faraday:/usr/local/sword-1.5.7/src> grep -r TRUE *
mgr/installmgr.cpp: curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
modules/filters/utf8transliterator.cpp: //registry->put(id, resString, TRUE);

I had the same problem and simply added:

#ifndef TRUE
#define TRUE 1

to the top of source file: mgr/installmgr.cpp

If you value symmetry, you might also add:

#ifndef FALSE
#define FALSE 0

...but Idon't think it is practically useful in this case.

According to Joachim Ansorg, this fix is already in the CVS.

Best Regards,