Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <FF86FBA0-223D-469A-9B9B-71DAB1EB84B2@salk.edu>
Date: Thu, 23 Apr 2009 13:34:55 -0700
From: Chris Hiestand <chiestand@...k.edu>
To: john-users@...ts.openwall.com
Subject: OSX 10.5 compile problem with jumbo patched 1.7.3.1

There is a compile problem when generating genmkvpwd on OS X leopard  
(x86-64). The patched source compiles fine in debian's lenny 64. I  
apologize if the solution is obvious, but I have little experience  
compiling C.

Since the john binary itself still compiles this isn't a critical  
error, but I thought I would point this out in case it interested  
anyone.

Compiling the latest 1.7.3.1 works fine on it's own but when I apply  
the patch at http://www.openwall.com/john/contrib/john-1.7.3.1-all-5.diff.gz 
  I get this output in OS X:

> dimmer@...mat:~/Projects/john-1.7.3.1/src$ make clean macosx-x86-64
> rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/ 
> undrop ../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/ 
> john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com ../run/ 
> unique.com ../run/undrop.com ../run/john.exe ../run/unshadow.exe ../ 
> run/unafs.exe ../run/unique.exe ../run/undrop.exe ../run/ 
> genmkvpwd.exe ../run/mkvcalcproba.exe ../run/calc_stat.exe
> rm -f ../run/john.exe john-macosx-* *.o *.bak core
> rm -f detect bench generic.h arch.h sparc.h tmp.s
> rm -f DES_bs_s.c DES_bs_n.c DES_bs_a.c
> cp /dev/null Makefile.dep
> ln -sf x86-64.h arch.h
> make ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/ 
> undrop ../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat \
> 		JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o BSDI_fmt.o MD5_fmt.o  
> MD5_std.o MD5_apache_fmt.o BFEgg_fmt.o BF_fmt.o BF_std.o AFS_fmt.o  
> LM_fmt.o NT_fmt.o XSHA_fmt.o DOMINOSEC_fmt.o lotus5_fmt.o  
> oracle_fmt.o MYSQL_fmt.o mysqlSHA1_fmt.o KRB5_fmt.o KRB5_std.o  
> md5_go.o rawMD5go_fmt.o md5_eq.o PO_fmt.o md5.o hmacmd5.o  
> hmacMD5_fmt.o IPB2_fmt.o rawSHA1_fmt.o NSLDAP_fmt.o NSLDAPS_fmt.o  
> OPENLDAPS_fmt.o base64.o md4.o smbencrypt.o mscash_fmt.o NETLM_fmt.o  
> NETNTLM_fmt.o NETLMv2_fmt.o NETHALFLM_fmt.o mssql_fmt.o  
> mssql05_fmt.o EPI_fmt.o PHPS_fmt.o MYSQL_fast_fmt.o pixMD5_fmt.o  
> sapG_fmt.o sapB_fmt.o NS_fmt.o HDAA_fmt.o batch.o bench.o charset.o  
> common.o compiler.o config.o cracker.o crc32.o external.o formats.o  
> getopt.o idle.o inc.o john.o list.o loader.o logger.o math.o  
> memory.o misc.o options.o params.o path.o recovery.o rpp.o rules.o  
> signals.o single.o status.o tty.o wordlist.o mkv.o mkvlib.o  
> unshadow.o unafs.o undrop.o unique.o DES_bs_b.o x86-64.o" \
> 		ASFLAGS="-c -m64 -DUNDERSCORES -DBSD -DALIGN_LOG" \
> 		CFLAGS="-c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/ 
> usr/local/lib -m64" \
> 		LDFLAGS="-s -L/usr/local/lib -L/usr/local/ssl/lib -lcrypto -lm -m64"
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops DES_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops DES_std.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops DES_bs.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops BSDI_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops MD5_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops MD5_std.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops MD5_apache_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops BFEgg_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops BF_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops BF_std.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops AFS_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops LM_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NT_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops XSHA_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops DOMINOSEC_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops lotus5_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops oracle_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops MYSQL_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops mysqlSHA1_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops KRB5_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops KRB5_std.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops md5_go.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops rawMD5go_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops md5_eq.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops PO_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops md5.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops hmacmd5.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops hmacMD5_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops IPB2_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops rawSHA1_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NSLDAP_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NSLDAPS_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops OPENLDAPS_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops base64.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops md4.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops smbencrypt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops mscash_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NETLM_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NETNTLM_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NETLMv2_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NETHALFLM_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops mssql_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops mssql05_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops EPI_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops PHPS_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops MYSQL_fast_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops pixMD5_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops sapG_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops sapB_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops NS_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops HDAA_fmt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops batch.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops bench.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops charset.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops common.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops compiler.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops config.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops cracker.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops crc32.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops external.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops formats.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops getopt.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops idle.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops inc.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops john.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops list.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops loader.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops logger.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops math.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops memory.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops misc.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops options.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops params.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops path.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops recovery.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops rpp.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops rules.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops signals.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops single.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops status.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops tty.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops wordlist.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops mkv.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops mkvlib.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops unshadow.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops unafs.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops undrop.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops unique.c
> sed "s/unsigned long/ARCH_WORD/" sboxes.c > DES_bs_s.c
> sed "s/unsigned long/ARCH_WORD/" nonstd.c > DES_bs_n.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -finline-functions DES_bs_b.c
> gcc -c -m64 -DUNDERSCORES -DBSD -DALIGN_LOG x86-64.S
> gcc DES_fmt.o DES_std.o DES_bs.o BSDI_fmt.o MD5_fmt.o MD5_std.o  
> MD5_apache_fmt.o BFEgg_fmt.o BF_fmt.o BF_std.o AFS_fmt.o LM_fmt.o  
> NT_fmt.o XSHA_fmt.o DOMINOSEC_fmt.o lotus5_fmt.o oracle_fmt.o  
> MYSQL_fmt.o mysqlSHA1_fmt.o KRB5_fmt.o KRB5_std.o md5_go.o  
> rawMD5go_fmt.o md5_eq.o PO_fmt.o md5.o hmacmd5.o hmacMD5_fmt.o  
> IPB2_fmt.o rawSHA1_fmt.o NSLDAP_fmt.o NSLDAPS_fmt.o OPENLDAPS_fmt.o  
> base64.o md4.o smbencrypt.o mscash_fmt.o NETLM_fmt.o NETNTLM_fmt.o  
> NETLMv2_fmt.o NETHALFLM_fmt.o mssql_fmt.o mssql05_fmt.o EPI_fmt.o  
> PHPS_fmt.o MYSQL_fast_fmt.o pixMD5_fmt.o sapG_fmt.o sapB_fmt.o  
> NS_fmt.o HDAA_fmt.o batch.o bench.o charset.o common.o compiler.o  
> config.o cracker.o crc32.o external.o formats.o getopt.o idle.o  
> inc.o john.o list.o loader.o logger.o math.o memory.o misc.o  
> options.o params.o path.o recovery.o rpp.o rules.o signals.o  
> single.o status.o tty.o wordlist.o mkv.o mkvlib.o unshadow.o unafs.o  
> undrop.o unique.o DES_bs_b.o x86-64.o -s -L/usr/local/lib -L/usr/ 
> local/ssl/lib -lcrypto -lm -m64 -o ../run/john
> ld64: warning: option -s is obsolete and being ignored
> rm -f ../run/unshadow
> ln -s john ../run/unshadow
> rm -f ../run/unafs
> ln -s john ../run/unafs
> rm -f ../run/unique
> ln -s john ../run/unique
> rm -f ../run/undrop
> ln -s john ../run/undrop
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops genmkvpwd.c
> gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/ 
> local/lib -m64 -funroll-loops -D_JOHN_MISC_NO_LOG misc.c -o miscnl.o
> gcc genmkvpwd.o mkvlib.o memory.o miscnl.o -s -lm -o ../run/genmkvpwd
> ld64: warning: option -s is obsolete and being ignored
> ld: warning in genmkvpwd.o, file is not of required architecture
> ld: warning in mkvlib.o, file is not of required architecture
> ld: warning in memory.o, file is not of required architecture
> ld: warning in miscnl.o, file is not of required architecture
> Undefined symbols:
>   "_main", referenced from:
>       start in crt1.10.5.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [../run/genmkvpwd] Error 1
> make: *** [macosx-x86-64] Error 2


Download attachment "smime.p7s" of type "application/pkcs7-signature" (2419 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.