Problem with compile latest xbt !

Help
2010-08-02
2013-05-13
  • Nightwisher
    Nightwisher
    2010-08-02

    Problem with compile latest xbt !

    ./make.sh

    ../misc/bvalue.cpp: In member function 'int Cbvalue::read(char*) const':
    ../misc/bvalue.cpp:326: error: 'sprintf' was not declared in this scope
    ../misc/socket.cpp: In static member function 'static std::string Csocket::error2a(int)':
    ../misc/socket.cpp:201: error: 'sprintf' was not declared in this scope
    

    i dont have idea what couse this i need help !

    Linux distro gentoo latest all dependencies are installed and all of tham are stable !
    Boost are 1.41 latest stable for gentoo !

    Thanks

     
  • Is that the latest svn revision?
    Try to add #include <cstdio> somewhere at the top of those two .cpp files.

     
  • Nightwisher
    Nightwisher
    2010-08-03

    yap its latest svn !

    Yesterday i recompile alll things for xbt and same !

    Follow guide from here

    http://xbtt.sourceforge.net/tracker/
    
    svn co https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk/xbt/misc xbt/misc
    svn co https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk/xbt/Tracker xbt/Tracker
    cd xbt/Tracker
    ./make.sh
    cp xbt_tracker.conf.default xbt_tracker.conf
    

    I dont found this #include <cstdio>  or something similiar i look into files and doesnt found that i add on my own this line and i also get error ! Cant compile xbt !

     
  • What does g++ -v say? 4.4 works fine for me.

     
  • Edtech
    Edtech
    2010-08-03

    Just for information, I compiled the last version this morning with Ubuntu Server 10.04 TLS x64, no problem.

     
  • Both files were fixedin July, so you do not have the latest SVN revision!

     
  • Nightwisher
    Nightwisher
    2010-08-04

    I get few sec ago and this my revision via svn ! And still have problem ! I try to remove whole xbt folder and files and i will try again !

    Checked out revision 2068.

     
  • Nightwisher
    Nightwisher
    2010-08-04

    Ok i solve this problem !

    Its been perrmission problem that file not upgraded becouse somehow permission was 0644 for xbt to all files !  I set chmod  0777 start again and  files was upgraded fine !
    Also i run ./make.sh and now is ok !

    Thanks olaf and & edtech !