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 16:19:38 +0200
From: Frank Dittrich <>
Subject: Patch fixes the problem (was: build error for linux-x86-native (c3:fmt.c):
 undefined reference to `crypt')

On 06/26/2012 07:42 AM, 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

Mystery solved:

diff --git a/src/Makefile b/src/Makefile
index 317f32c..84635b1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -529,7 +529,7 @@ linux-x86-native:
        $(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="$(CFLAGS) -msse2 -DHAVE_CRYPT -DHAVE_DL
-march=native" \
-               ASFLAGS="$(ASFLAGS) -march=native"
+               ASFLAGS="$(ASFLAGS) -march=native" \
                LDFLAGS="$(LDFLAGS) -lcrypt -ldl -march=native"


Patch attached.


View attachment "0001-Fix-linux-x86-native-build.patch" of type "text/x-patch" (784 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.