hashcat/hashcat-utils

undefined reference to `__builtin_bswap16'

strasharo opened this issue · 1 comments

Currently the compilation fails in CentOS 6.9 64bit with the following error:

[user@CUDA src]$ make
rm -f ../bin/*
rm -f *.bin *.exe
cc -Wall -W -pipe -O2 -std=c99  -o cap2hccapx.bin cap2hccapx.c
cap2hccapx.c: In function ‘handle_auth’:
cap2hccapx.c:430: warning: implicit declaration of function ‘__builtin_bswap16’
/tmp/ccmTwrAB.o: In function `main':
cap2hccapx.c:(.text+0x325): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x33c): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x89c): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x8b4): undefined reference to `__builtin_bswap16'
cap2hccapx.c:(.text+0x8cb): undefined reference to `__builtin_bswap16'
collect2: ld returned 1 exit status
make: *** [native] Error 1
[user@CUDA src]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[user@CUDA src]$