Questions and Answers :
Unix/Linux :
Failed to compile seti_boinc client on Alpha EV67 running linux
Message board moderation
Author | Message |
---|---|
Crunch3r Send message Joined: 15 Apr 99 Posts: 1546 Credit: 3,438,823 RAC: 0 |
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 |
On line 384 of db/xml_util.h change the second argument to min() from 5-npads to (long)5-npads |
Crunch3r Send message Joined: 15 Apr 99 Posts: 1546 Credit: 3,438,823 RAC: 0 |
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 |
> 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) |
Crunch3r Send message Joined: 15 Apr 99 Posts: 1546 Credit: 3,438,823 RAC: 0 |
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. |
©2024 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.