Share

LZMA Utils

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

lzma-utils GCC 4.3 patch

  1. 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;
  2. 2008-01-26 13:36:31 UTC
    Thanks. It's fixed in the git repository now.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.