Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 26 Aug 2012 20:22:37 +0530
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: "linux-x86-64-clang-debug" fails to build on latest magnum-jumbo (ade99e4db)

On Sun, Aug 26, 2012 at 8:09 PM, Dhiru Kholia <dhiru.kholia@...il.com> wrote:
> "linux-x86-64-clang-debug" fails to build on latest magnum-jumbo (ade99e4db).
>
> unrarcmd.c:48: error: undefined reference to 'rar_realloc2'
> unrarfilter.c:52: error: undefined reference to 'rar_realloc2'
> unrarfilter.c:66: error: undefined reference to 'rar_malloc'
> unrar.c:873: error: undefined reference to 'rar_malloc'
> unrar.c:824: error: undefined reference to 'rar_malloc'
> unrar.c:644: error: undefined reference to 'rar_realloc2'
> unrar.c:726: error: undefined reference to 'rar_malloc'
> unrar.c:787: error: undefined reference to 'rar_realloc2'
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
> Can these be fixed?
>
> "linux-x86-64-clang-debug" will be very useful for debugging the stack
> corruption in DMG format Jim just reported.

Attached patch fixes the build problem on my system. I am not sure if
it is the correct fix for the problem.
When inline keyword was used, clang built object files that did not
contain any exportable symbols which led to link failures.

✗ clang --version
clang version 3.1 (branches/release_31)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
Cheers,
Dhiru

Download attachment "clang-debug-fix.diff" of type "application/octet-stream" (561 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.