Package: k3d Severity: important Version: 0.6.7.0-2.3 Tags: patch User: [EMAIL PROTECTED] Usertags: kfreebsd
Hi, the current version fails to build on GNU/kFreeBSD with g++-4.3. It tries to call "C" function exit() from main(), but there is no corresponding header included. Please either add "#include <cstdlib>" to the top of the file or use patch bellow to simply replace exit() with return, as it is in the main() function anyway. It would also be nice if you can ask upstream to include this change. Thanks in advance Petr --- sl2xml/main.cpp~ +++ sl2xml/main.cpp @@ -54,7 +54,7 @@ std::cout << std::endl; std::cout << " gcc -E -P -x c <file> | sl2xml" << std::endl; std::cout << std::endl; - exit(0); + return(0); } else if(argument == "--version") { @@ -62,7 +62,7 @@ std::cout << K3D_COPYRIGHT << " See the AUTHORS file for contributors." << std::endl; std::cout << "Licensed under the GNU General Public License. See the COPYING file for details." << std::endl; std::cout << "K-3D Home Page: http://www.k-3d.com" << std::endl; - exit(0); + return(0); } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]