Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 20 Sep 2011 14:26:02 -0500
From: "jfoug" <jfoug@....net>
To: <john-dev@...ts.openwall.com>
Subject: RE: "make generic" broken in 1.7.8-jumbo-6-RC2

I think I have this fixed.  I had to build special rules to build config.c
and DES_bs.c, so that I could pass a '-DBENCH_BUILD', and remove some of the
newer code (when building the bench).  Magnum added CP_up[] in DES, and I
put log_event's into congig.   Neither of those are 'valid' with the thin
number of files that make up the BENCH testing suite.

So, it was pretty easy to fix.

Now, things are benching right for me in cygwin.  However, I do have a
problem, and it is due to the new 'loadable' formats.  I imagine (but have
not tested yet), that this would happen, even if not building generic.


gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -funroll-loops
idle.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -funroll-loops
inc.c
sed -n 's/^\(struct fmt_main [^ ]*\) =.*/extern \1;/p' *_fmt_plug.c >
fmt_externs.h
sed -n 's/^struct fmt_main \([^ ]*\) =.*/john_register_one(\&\1);/p'
*_fmt_plug.c > fmt_registers.h
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -funroll-loops
john.c
john.c: In function `john_register_all':
john.c:162:13: error: `struct options_main' has no member named `fmt_dlls'
make[1]: *** [john.o] Error 1
make[1]: Leaving directory
`/cygdrive/c/phpbb/johnripper/john-1.7.8/john-1.7.8-jumbo-6-rc3/src'
make: *** [generic] Error 2


Btw, I have uploaded 0001-generic-fix.diff to the wiki.

Jim.



>From: Solar Designer [mailto:solar@...nwall.com]
>
>magnum, Jim -
>
>"make generic" on my current -RC3 tree fails with:
>
>DES_bs.o: In function `DES_bs_init':
>DES_bs.c:(.text+0x499): undefined reference to `CP_up'
>DES_bs.c:(.text+0x4ed): undefined reference to `CP_up'
>config.o: In function `cfg_init':
>config.c:(.text+0x8e1): undefined reference to `log_event'
>config.c:(.text+0x94d): undefined reference to `log_event'
>config.c:(.text+0x975): undefined reference to `log_event'
>config.c:(.text+0x9f9): undefined reference to `log_event'
>config.c:(.text+0xa21): undefined reference to `log_event'
>config.o:config.c:(.text+0xa78): more undefined references to
>`log_event' follow



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.