Treache / crunch

Automatically exported from code.google.com/p/crunch
Other
0 stars 0 forks source link

not possible to build source #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.using makefile downloaded from issues
2.alejandro@desktop:~/crunch-src/crnlib$ make

What is the expected output? What do you see instead?
expected output: linux binary
real output:
alejandro@desktop:~/crunch-src/crnlib$ make
g++ crn_decomp.cpp -o crn_decomp.o -c
In file included from crn_decomp.cpp:6:
../inc/crn_decomp.h: In function ‘void* crnd::crnd_realloc(void*, size_t, 
size_t*, bool)’:
../inc/crn_decomp.h:2535: error: cast from ‘void*’ to ‘crnd::ptr_bits’ 
loses precision
../inc/crn_decomp.h: In function ‘void crnd::crnd_free(void*)’:
../inc/crn_decomp.h:2563: error: cast from ‘void*’ to ‘crnd::ptr_bits’ 
loses precision
../inc/crn_decomp.h: In function ‘size_t crnd::crnd_msize(void*)’:
../inc/crn_decomp.h:2577: error: cast from ‘void*’ to ‘crnd::ptr_bits’ 
loses precision
make: *** [crn_decomp.o] Error 1

What version of the product are you using? On what operating system?
last crunch source. OS: linux debian squeeze amd64

Please provide any additional information below.

Original issue reported on code.google.com by xplane...@gmail.com on 15 Aug 2012 at 12:46

GoogleCodeExporter commented 8 years ago
I hit this and decided to poke it.  I'm not a guru or anything, so the attached 
svn diff patches may be an ugly hack, but it builds and runs well enough for me 
(for all I know I'm just begging for segfaults).  If by some miracle they're 
what's needed, ZLIB license like the rest of it.  Cheers.

Original comment by wyatt....@gmail.com on 16 Sep 2012 at 12:29

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks wyatt! I'm hoping to send either a night or two this week, or next 
weekend working on crunch.

Original comment by richge...@gmail.com on 17 Sep 2012 at 5:19

GoogleCodeExporter commented 8 years ago
Can you please provide instructions on how to apply these patches? regards.

Original comment by xplane...@gmail.com on 17 Sep 2012 at 1:53

GoogleCodeExporter commented 8 years ago
See also issue #10 – I have a combined patch for this issue and that one 
there.

Original comment by justanot...@googlemail.com on 25 Jan 2013 at 3:59