mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
Post new Thread
Author
Previous Thread This topic has been viewed 4635 times and has 1 reply Next Thread
Male mezzenger
Stranger
Member's Avatar


Joined: Apr 7, 2004
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
make errors

With Fedora Core 2, sword 1.5.7.

./autogen.sh
./usrinst.sh
make

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
function)
../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
[Jun 16, 2004 5:23:10 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male puddleDuck
Newbie




Joined: Jun 15, 2004
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: make errors

With Fedora Core 2, sword 1.5.7.

./autogen.sh
./usrinst.sh
make

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
function)
../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
#endif

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

If you value symmetry, you might also add:

#ifndef FALSE
#define FALSE 0
#endif

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

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

Best Regards,
Steve
[Jun 17, 2004 4:06:14 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread