Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BLU0-SMTP2517EEEC771CC0353F9B71BFDE00@phx.gbl>
Date: Tue, 26 Jun 2012 15:52:26 +0200
From: Frank Dittrich <frank_dittrich@...mail.com>
To: john-dev@...ts.openwall.com
Subject: Re: build error for linux-x86-native (c3:fmt.c): undefined
 reference to `crypt'

On 06/26/2012 03:42 PM, Frank Dittrich wrote:
> 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/libdl.so.2
> so try adding it to the linker command line
> /lib/libdl.so.2: 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.
> 
> Frank

I was worried why the errors changed, compared to the previous try.

But with the second consecutive

make clean linux-x86-native

in a row, I get the old error messages back:

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -DHAVE_NSS
-I/usr/include/nss3 -I/usr/include/nspr4      -msse2 -DHAVE_CRYPT
-DHAVE_DL -march=native -funroll-loops c3_fmt.c
gcc -c   -march=native x86.S
gcc -c   -march=native x86-sse.S
gcc -c   -march=native sha1-mmx.S
gcc -c   -march=native md4-mmx.S
gcc -c   -march=native md5-mmx.S
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -DHAVE_NSS
-I/usr/include/nss3 -I/usr/include/nspr4      -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 gost_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
NETNTLM_fmt_plug.o PHPS_fmt_plug.o rawMD5_fmt_plug.o pixMD5_fmt_plug.o
rawSHA1_linkedIn_fmt_plug.o MSCHAPv2_fmt_plug.o mscash1_fmt_plug.o
KRB4_fmt_plug.o IPB2_fmt_plug.o NS_fmt_plug.o odf_fmt_plug.o
NETLMv2_fmt_plug.o mssql05_fmt_plug.o XSHA_fmt_plug.o
salted_sha1_fmt_plug.o mysqlSHA1_fmt_plug.o NETLM_fmt_plug.o
rawMD4_fmt_plug.o EPI_fmt_plug.o DMD5_fmt_plug.o pwsafe_fmt_plug.o
NETSPLITLM_fmt_plug.o crc32_fmt_plug.o md4_gen_fmt_plug.o
KRB4_std_plug.o sapG_fmt_plug.o phpassMD5_fmt_plug.o
mediawiki_fmt_plug.o NETNTLMv2_fmt_plug.o DOMINOSEC_fmt_plug.o
keychain_fmt_plug.o sha1_gen_fmt_plug.o office_fmt_plug.o NT_fmt_plug.o
nt2_fmt_plug.o racf_fmt_plug.o KRB5_std_plug.o episerver_fmt_plug.o
rawSHA1_fmt_plug.o pkzip_fmt_plug.o mysql_fmt_plug.o oracle11_fmt_plug.o
KRB5_fmt_plug.o sip_fmt_plug.o HDAA_fmt_plug.o PO_fmt_plug.o
lotus5_fmt_plug.o vnc_fmt_plug.o mscash2_fmt_plug.o mssql-old_fmt_plug.o
nsldap_fmt_plug.o rawmd5u_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   `pkg-config --libs nss` -o
../run/john
c3_fmt.o: In function `crypt_all':
c3_fmt.c:(.text+0x8be): undefined reference to `crypt'
c3_fmt.c:(.text+0x919): undefined reference to `crypt'
c3_fmt.c:(.text+0x94b): undefined reference to `crypt'
c3_fmt.c:(.text+0x975): undefined reference to `crypt'
c3_fmt.c:(.text+0x9a7): undefined reference to `crypt'
c3_fmt.o:c3_fmt.c:(.text+0x9d4): more undefined references to `crypt' follow
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

BTW:

ASFLAGS="-c   -march=native"

Is -msse2 required here as well?

Frank

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.