Questions and Answers :
Unix/Linux :
Errors building seti_boinc-client-cvs-2004-09-18 on Solaris 2.8 using gcc version 3.4.1
Message board moderation
Author | Message |
---|---|
KWSN - Milt Q. Llama III Send message Joined: 21 Sep 03 Posts: 2 Credit: 318,561 RAC: 0 |
Hi, I successfully built boinc-cvs-2004-09-18 on my Solaris 2.8 machine using gcc version 3.4.1. I used the following commands: cd boinc export MYSQL_CONFIG=true ./configure CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS='-Wl,-R,/usr/local/lib/sparcv9' --disable-server make The boinc core client was built and the resulting 64 bit executable is running fine. After that I tried to build the seti_boinc client. After running the same commands in the seti_boinc subdirectory the make terminated with the following errors: cd seti_boinc export MYSQL_CONFIG=true ./configure CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS='-Wl,-R,/usr/local/lib/sparcv9' --disable-server make (cd client; make all) make[1]: Entering directory `/usr/local/src/boinc/seti_boinc/client' g++ -m64 -DHAVE_CONFIG_H -DTEXT_UI -DNDEBUG -DCLIENT -I/usr/local/src/boinc/boinc/api -I/usr/local/src/boinc/boinc/lib -I/usr/local/src/boinc/boinc/image_libs/ -I.. -I../db -c -o main.o main.cpp In file included from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../../include/c++/3.4.1/bits/stl_algobase.h:67, from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../../include/c++/3.4.1/bits/char_traits.h:46, from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../../include/c++/3.4.1/string:47, from /usr/local/src/boinc/boinc/lib/diagnostics.h:20, from main.cpp:43: /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../../include/c++/3.4.1/cstdlib:103: error: `::malloc' has not been declared /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.1/../../../../include/c++/3.4.1/cstdlib:111: error: `::realloc' has not been declared In file included from ../db/sqlrow.h:26, from ../db/db_table.h:25, from seti_header.h:33, from s_util.h:103, from main.cpp:45: ../db/xml_util.h: In function `std::vector > base85_decode(const char*, size_t)': ../db/xml_util.h:384: error: no matching function for call to `min(long int&, int&)' In file included from seti_header.h:34, from s_util.h:103, from main.cpp:45: ../db/sqlblob.h: At global scope: ../db/sqlblob.h: In instantiation of `sqlblob': ../db/schema_master.h:106: instantiated from here ../db/sqlblob.h:107: error: template-id `xml_encode_string' for `std::basic_string, std::allocator > xml_encode_string(const sqlblob&, tag_xml_encoding)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:124: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/sqlblob.h: In instantiation of `sqlblob': ../db/schema_master.h:136: instantiated from here ../db/sqlblob.h:107: error: template-id `xml_encode_string' for `std::basic_string, std::allocator > xml_encode_string(const sqlblob&, tag_xml_encoding)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:155: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:180: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:206: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/sqlblob.h: In instantiation of `sqlblob': ../db/schema_master.h:234: instantiated from here ../db/sqlblob.h:107: error: template-id `xml_encode_string' for `std::basic_string, std::allocator > xml_encode_string(const sqlblob&, tag_xml_encoding)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:254: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:280: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:304: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:331: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:355: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:383: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:419: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/sqlblob.h: In instantiation of `sqlblob': ../db/schema_master.h:442: instantiated from here ../db/sqlblob.h:107: error: template-id `xml_encode_string' for `std::basic_string, std::allocator > xml_encode_string(const sqlblob&, tag_xml_encoding)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:460: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:501: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration ../db/db_table.h: In instantiation of `db_table': ../db/schema_master.h:527: instantiated from here ../db/db_table.h:77: error: template-id `operator' for `std::basic_ostream >& operator >&, const db_table&)' does not match any template declaration ../db/db_table.h:78: error: template-id `operator>>' for `std::basic_istream >& operator>>(std::basic_istream >&, db_table&)' does not match any template declaration make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/usr/local/src/boinc/seti_boinc/client' make: *** [all] Error 2 Any ideas what is missing on my system ??? Guenther. |
KWSN - Migratory Coconuts Send message Joined: 26 Dec 99 Posts: 16 Credit: 17,647,128 RAC: 0 |
FWIW, I have the same problem building seti_boinc on a FreeBSD 5.3-BETA (gcc3.4.2). |
TonyM Send message Joined: 13 Dec 99 Posts: 6 Credit: 485,503 RAC: 0 |
It is a build problem with gcc-3.4... Use a version of boinc or seti_boinc of 2004-10-30 or newer, it should get you past that error at least, and hopefully it will build correctly. Tony |
©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.