Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BLU0-SMTP1892AFBDF265652E08DE8EAFDE00@phx.gbl>
Date: Tue, 26 Jun 2012 15:31:33 +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 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
>> 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: *** [linux-x86-native] Error 2
> 
> Can you show the linking line?  Does it include -lcrypt?

Yes.

linux-x86-clang:
        $(LN) x86-sse.h arch.h
        @echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h
        $(MAKE) $(PROJ) \
                JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86.o x86-sse.o
sha1-mmx.o md4-mmx.o md5-mmx.o sse-intrinsics.o" \
                CFLAGS="-c -O2 -I/usr/include -msse2 -DHAVE_CRYPT
-DHAVE_DL $(HAVE_NSS)" \
                LDFLAGS="-lm -lssl -lcrypto -lcrypt -ldl -lz" \
                CPP="clang" CC="clang" AS="clang" LD="clang"

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.