Failed to compile seti_boinc client on Alpha EV67 running linux


log in

Advanced search

Questions and Answers : Unix/Linux : Failed to compile seti_boinc client on Alpha EV67 running linux

Author Message
Profile Crunch3rProject donor
Volunteer tester
Avatar
Send message
Joined: 15 Apr 99
Posts: 1540
Credit: 3,314,460
RAC: 0
Germany
Message 6529 - Posted: 11 Jul 2004, 14:40:54 UTC
Last modified: 11 Jul 2004, 14:42:52 UTC

While compiling the seti_boinc client i get an error message like this:

make[1]: Entering directory `/make/seti_boinc/client'
g++ -g -O2 -DHAVE_CONFIG_H -DTEXT_UI -DNDEBUG -DCLIENT -I/make/boinc/api -I/make/boinc/lib -I/make/boinc/image_libs/ -I.. -I../db -c -o seti.o seti.cpp
../db/xml_util.h: In function `std::vector >
base85_decode(const char*, long unsigned int) [with T = unsigned char]':
../db/xml_util.h:787: instantiated from `std::vector > xml_decode_string(const char*, long unsigned int, const char*) [with T = unsigned char]'
../db/xml_util.h:823: instantiated from `std::vector > xml_decode_field(const std::string&, const char*) [with T = unsigned char]'
seti.cpp:730: instantiated from here
../db/xml_util.h:384: no matching function for call to `min(long int, int)'
make[1]: *** [seti.o] Error 1
make[1]: Leaving directory `/make/seti_boinc/client'
make: *** [all] Error 2

System Type is AlphaDS10 running SuSE Linux 8.1 for Alpha

Any solution for this ???

thistle
Send message
Joined: 10 Jan 00
Posts: 9
Credit: 319,895
RAC: 0
United States
Message 6551 - Posted: 11 Jul 2004, 16:15:31 UTC

On line 384 of db/xml_util.h change the second argument to min() from

5-npads

to

(long)5-npads

Profile Crunch3rProject donor
Volunteer tester
Avatar
Send message
Joined: 15 Apr 99
Posts: 1540
Credit: 3,314,460
RAC: 0
Germany
Message 6642 - Posted: 11 Jul 2004, 20:29:25 UTC

Could you please post the code for this ??? I´m not a programer and unsure about this.
Thanks.

thistle
Send message
Joined: 10 Jan 00
Posts: 9
Credit: 319,895
RAC: 0
United States
Message 6720 - Posted: 12 Jul 2004, 0:27:34 UTC - in response to Message 6642.

> Could you please post the code for this ??? I´m not a programer and unsure
> about this.
> Thanks.
>
That pretty much is the code. If you go to line 384 you'll see that there is no ambiguity. It's the beginning of a for loop and the call to min() should be:

std::min(eol-p,(long)5-npads)

Profile Crunch3rProject donor
Volunteer tester
Avatar
Send message
Joined: 15 Apr 99
Posts: 1540
Credit: 3,314,460
RAC: 0
Germany
Message 6943 - Posted: 12 Jul 2004, 12:43:13 UTC

Great! No errors with xml_util.h so far.
but now it comes up with this one:

67-unknown-linux-gnu -L/make/boinc/lib -lboinc
../db/schema_master_client.o:itimerspec/schema_master.cpp:93: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:93: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:itimerspec/schema_master.cpp:94: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/ios_base.h:88: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/ios_base.h:88: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/ios_base.h:88: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/ios_base.h:88: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:237: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:97: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:97: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:237: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:97: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:388: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:388: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:97: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_algobase.h:169: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_algobase.h:169: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_alloc.h:664: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_alloc.h:664: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_alloc.h:664: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_alloc.h:664: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_alloc.h:664: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/stl_alloc.h:664: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:792: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:229: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:792: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:229: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:301: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:792: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:792: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/bits/basic_string.h:792: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:289: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:292: relocation truncated to fit: GPREL32 *UND*
../db/schema_master_client.o:/usr/include/g++/sstream:292: relocation truncated to fit: GPREL32 *UND*
collect2: ld returned 1 exit status
make[1]: *** [setiathome-3.10.alphaev67-unknown-linux-gnu] Error 1
make[1]: Leaving directory `/make/seti_boinc/client'
make: *** [all] Error 2

Maybe you could help here too.

Questions and Answers : Unix/Linux : Failed to compile seti_boinc client on Alpha EV67 running linux

Copyright © 2014 University of California