AW: [Boinc_opt] seti_boinc not compiling under gcc 4.0.2

Setiathome@Alpha setiathome at gmx.net
Thu Dec 22 12:00:16 PST 2005


Hello Mike,

In sqlblob.h replace:

b.mem=new
std::vector<T>(xml_decode_string(buf.c_str()+start,end-start,enc_string));

With:
 
b.mem=new
std::vector<T>(xml_decode_string<T>(buf.c_str()+start,end-start,enc_string))
;
 
That should be enough to get it working.


Regards

-----Ursprüngliche Nachricht-----
Von: boinc_opt-bounces at ssl.berkeley.edu
[mailto:boinc_opt-bounces at ssl.berkeley.edu] Im Auftrag von Mike Hammill
Gesendet: Donnerstag, 22. Dezember 2005 17:58
An: boinc_opt at ssl.berkeley.edu
Betreff: [Boinc_opt] seti_boinc not compiling under gcc 4.0.2

Dear Seti at home developers,

I get the following error.  Anyone know why?  I noticed Frank Thomas
mentioned some patches for GCC4 in his note on Dec 16, but I'm note clear
this is the same problem.  I looked at the diff he provided, but some of the
lines don't exist in the source files I looked at.

Error:
$ make
make  all-recursive
make[1]: Entering directory
`/home/mike/Apps/Boinc/Linux/src/5.2.13/seti_boinc'
Making all in client
make[2]: Entering directory
`/home/mike/Apps/Boinc/Linux/src/5.2.13/seti_boinc/client'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -O3 -fomit-frame-pointer
-funroll-loops -DHAVE_CONFIG_H -DTEXT_UI -DNDEBUG -DCLIENT -include
../config.h -I../db -I/home/mike/Apps/Boinc/Linux/src/5.2.13/boinc/api
-I/home/mike/Apps/Boinc/Linux/src/5.2.13/boinc/lib  -pthread   -O3
-fomit-frame-pointer -funroll-loops -MT seti_boinc-main.o -MD -MP -MF
".deps/seti_boinc-main.Tpo" -c -o seti_boinc-main.o `test -f 'main.cpp'
|| echo './'`main.cpp; \
then mv -f ".deps/seti_boinc-main.Tpo" ".deps/seti_boinc-main.Po"; else rm
-f ".deps/seti_boinc-main.Tpo"; exit 1; fi../db/sqlblob.h: In function
‘std::istream& operator>>(std::istream&, sqlblob<T>&)’:
../db/sqlblob.h:71: error: no matching function for call to
‘xml_decode_string(const char*&, unsigned int&, const char*&)’
make[2]: *** [seti_boinc-main.o] Error 1
make[2]: Leaving directory
`/home/mike/Apps/Boinc/Linux/src/5.2.13/seti_boinc/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/mike/Apps/Boinc/Linux/src/5.2.13/seti_boinc'
make: *** [all] Error 2

Environment:
I'm running FC4 on a G3 PowerPC.  GCC is from the FC4 project:

# gcc -v
Using built-in specs.
Target: ppc64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/u sr/share/info --enable-shared --enable-threads=posix
--enable-checking=release - -with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable- libgcj-multifile
--enable-languages=c,c++,objc,java,f95 --enable-java-awt=gtk --
with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--host=ppc64-redhat-linux  --build=ppc64-redhat-linux
--target=ppc64-redhat-linux --with-cpu=default32 Thread model: posix gcc
version 4.0.2 20051125 (Red Hat 4.0.2-8)

I compiled Boinc without problem (once I compiled libcurl that was newer
than the one FC4 provides).   I have tried a number of Seti sources, but
get the error in all of them.  The latest version I tried was the nightly
tarball from 2005-12-18.

Any extra details needed, I can provide.  Help!

Best regards,
/Mike

_______________________________________________
boinc_opt mailing list
boinc_opt at ssl.berkeley.edu
http://www.ssl.berkeley.edu/mailman/listinfo/boinc_opt




More information about the boinc_opt mailing list