2008-01-25 03:47:26 UTC
This may be fixed already in your repo (i don't have git installed), but here's a patch to get lzma-utils to build with GCC 4.3. The problem is a missing a cstdlib include in lzmp.cpp that causes this error:
lzmp.cpp: In function 'short int lzma::str2int(const char*, const int&, const
int&)':
lzmp.cpp:248: warning: deprecated conversion from string constant to 'char*'
lzmp.cpp:249: error: 'strtol' was not declared in this scope
lzmp.cpp:251: warning: deprecated conversion from string constant to 'char*'
lzmp.cpp: In function 'void lzma::parse_options(int, char**, stringVector&)':
lzmp.cpp:309: error: 'free' was not declared in this scope
lzmp.cpp:371: error: 'exit' was not declared in this scope
diff -Naur lzma-4.32.4-orig/src/lzma/lzmp.cpp lzma-4.32.4/src/lzma/lzmp.cpp
--- lzma-4.32.4-orig/src/lzma/lzmp.cpp 2007-12-07 09:29:34.000000000 -0600
+++ lzma-4.32.4/src/lzma/lzmp.cpp 2008-01-24 21:23:14.000000000 -0600
@@ -30,6 +30,7 @@
#include <cstdio>
#include <cstring>
#include <climits>
+#include <cstdlib>
#include <string>
using std::string;