Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 26 Jun 2012 15:42:40 +0200
From: Frank Dittrich <>
Subject: Re: build error for linux-x86-native (c3:fmt.c): undefined
 reference to `crypt'

On 06/26/2012 03:35 PM, Solar Designer wrote:
> On Tue, Jun 26, 2012 at 03:31:33PM +0200, Frank Dittrich wrote:
>> On 06/26/2012 02:54 PM, Solar Designer wrote:
>>> On Tue, Jun 26, 2012 at 07:42:23AM +0200, Frank Dittrich wrote:
>>>> $ make linux-x86-native > /dev/null
> [...]
>>> Can you show the linking line?  Does it include -lcrypt?
>> Yes.
>> linux-x86-clang:
> No, I meant the "gcc ..." line output by your make invocation above, if
> you remove the "> /dev/null".

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -msse2
-DHAVE_CRYPT -DHAVE_DL -march=native -funroll-loops sse-intrinsics.c
gcc DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o BSDI_fmt.o MD5_fmt.o
MD5_std.o BF_fmt.o BF_std.o AFS_fmt.o LM_fmt.o trip_fmt.o timer.o
md5_go.o md5_eq.o md5.o rc4.o hmacmd5.o base64.o md4.o dynamic_fmt.o
dynamic_parser.o dynamic_preloads.o dynamic_utils.o rawSHA224_fmt.o
rawSHA256_fmt.o rawSHA384_fmt.o rawSHA512_fmt.o hmacMD5_fmt.o
hmacSHA1_fmt.o hmacSHA224_fmt.o hmacSHA256_fmt.o hmacSHA384_fmt.o
hmacSHA512_fmt.o XSHA512_fmt.o hmailserver_fmt.o dragonfly3_fmt.o
dragonfly4_fmt.o drupal7_fmt.o django_fmt.o cryptsha256_fmt.o
cryptsha512_fmt.o SybaseASE_fmt.o SKEY_fmt.o ssh_fmt.o ssh2john.o
pdf_fmt.o pdf2john.o pdfcrack_common.o pdfcrack_md5.o pdfparser.o
pdfcrack.o pdfcrack_rc4.o unrarcmd.o unrarfilter.o unrarhlp.o unrar.o
unrarppm.o unrarvm.o rar_fmt.o rar2john.o rawSHA0_fmt.o zip_fmt.o
zip2john.o gladman_hmac.o gladman_pwd2key.o racf2john.o pwsafe2john.o
wpapsk_fmt.o hccap2john.o mozilla_fmt.o KeyDBCracker.o mozilla_des.o
lowpbe.o mozilla2john.o phpassMD5_fmt_plug.o gost_plug.o
rawSHA1_fmt_plug.o oracle_fmt_plug.o mskrb5_fmt_plug.o wbb3_fmt_plug.o
gost_fmt_plug.o osc_fmt_plug.o sapB_fmt_plug.o DOMINOSEC_fmt_plug.o
keychain_fmt_plug.o NETNTLM_fmt_plug.o office_fmt_plug.o NT_fmt_plug.o
salted_sha1_fmt_plug.o PHPS_fmt_plug.o rawMD5_fmt_plug.o nt2_fmt_plug.o
mysql_fmt_plug.o racf_fmt_plug.o pixMD5_fmt_plug.o MSCHAPv2_fmt_plug.o
KRB4_fmt_plug.o IPB2_fmt_plug.o mssql-old_fmt_plug.o
episerver_fmt_plug.o rawMD4_fmt_plug.o NS_fmt_plug.o pkzip_fmt_plug.o
oracle11_fmt_plug.o NETLMv2_fmt_plug.o mssql05_fmt_plug.o
XSHA_fmt_plug.o rawmd5u_fmt_plug.o EPI_fmt_plug.o DMD5_fmt_plug.o
KRB5_fmt_plug.o vnc_fmt_plug.o mysqlSHA1_fmt_plug.o NETLM_fmt_plug.o
NETNTLMv2_fmt_plug.o sip_fmt_plug.o HDAA_fmt_plug.o PO_fmt_plug.o
sha1_gen_fmt_plug.o pwsafe_fmt_plug.o NETSPLITLM_fmt_plug.o
rawSHA1_linkedIn_fmt_plug.o KRB5_std_plug.o odf_fmt_plug.o
crc32_fmt_plug.o lotus5_fmt_plug.o mscash1_fmt_plug.o md4_gen_fmt_plug.o
mscash2_fmt_plug.o KRB4_std_plug.o nsldap_fmt_plug.o sapG_fmt_plug.o
mediawiki_fmt_plug.o BFEgg_fmt_plug.o rawSHA1_ng_fmt.o plugin.o dummy.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 fake_salts.o win32_memmap.o unicode.o unshadow.o unafs.o
undrop.o unique.o c3_fmt.o x86.o x86-sse.o sha1-mmx.o md4-mmx.o
md5-mmx.o sse-intrinsics.o -s -L/usr/local/lib -L/usr/local/ssl/lib
-lssl -lcrypto -lm -lz    -o ../run/john
/usr/bin/ld: plugin.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/
so try adding it to the linker command line
/lib/ could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [../run/john] Error 1
make[1]: Leaving directory `/home/fd/git/magnum-jumbo/src'
make: *** [linux-x86-native] Error 2

So, there is just -lcrypto, but -lcrypt somehow got lost.


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.