#7 64bit *nix compilation

closed-out-of-date
None
5
2009-10-03
2009-10-02
James Nobis
No

On 64bit linux and OpenBSD if you try to run make you get this:
ChainWalkContext.cpp: In member function ‘void CChainWalkContext::IndexToPlain()’:
ChainWalkContext.cpp:462: error: ‘m_nPlainCharsetLen’ was not declared in this scope

This is caused by the || defined(_LP64) include beyond this block. I have a fix that fixes the compilation but I do not know if this is correct:

--- ChainWalkContext.cpp.orig 2009-10-01 20:16:19.000000000 -0500
+++ ChainWalkContext.cpp 2009-10-01 20:13:59.000000000 -0500
@@ -459,7 +459,7 @@
nCharsetLen += m_vCharset[j].m_nPlainLenMax;
if(i < nCharsetLen) // We found the correct charset
{
- m_Plain[i] = m_vCharset[j].m_PlainCharset[nIndexOfX % m_nPlainCharsetLen];
+ m_Plain[i] = m_vCharset[j].m_PlainCharset[nIndexOfX % m_vCharset[j].m_nPlainCharsetLen];
nIndexOfX /= m_vCharset[j].m_nPlainCharsetLen;
}
}

Discussion

  • James Nobis

    James Nobis - 2009-10-02

    patch

     
  • James Nobis

    James Nobis - 2009-10-02

    added the patch attachment since the inline version got a bit borked

     
  • James Nobis

    James Nobis - 2009-10-02
    • assigned_to: nobody --> neinbrucke
     
  • James Nobis

    James Nobis - 2009-10-02

    that patch is wrong

    [quel@paranoia ~/download/rcracki_mt_0.6.2_src] ./rcracki_mt -h 091C50FD38294EC8 /mnt/rainbow_tables/freerainbowtables/lm/lm_alpha-numeric#1-7_?
    Using 1 threads for pre-calculation and false alarm checking...
    Found 4 rainbowtable files...

    lm_alpha-numeric#1-7_0_2400x61029963_distrrtgen[p][i]_0.rti:
    reading index... 13528977 bytes read, disk access time: 0.00 s
    reading table... 83567880 bytes read, disk access time: 0.10 s
    verifying the file...
    Segmentation fault (core dumped)

     
  • James Nobis

    James Nobis - 2009-10-02

    This bug may just be a duplicate of part of #2796571.

     
  • James Nobis

    James Nobis - 2009-10-03

    looks like my recommended patch that segfaults is something already put in SVN and while it means 64bit compilation does indeed work without failure, has the same segfault

     
  • James Nobis

    James Nobis - 2009-10-03

    The compilation issue was already fixed in svn.

     
  • James Nobis

    James Nobis - 2009-10-03
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks