hashcat / hashcat-utils

Small utilities that are useful in advanced password cracking
MIT License
1.33k stars 353 forks source link

undefined reference to `__builtin_bswap16' #22

Closed strasharo closed 7 years ago

strasharo commented 7 years ago

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]$ 
jsteube commented 7 years ago

Looks like this is because the GCC is too old. Is that the latest version of CentOS?

On 06.04.2017 01:10, strasharo wrote:

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]$ |

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hashcat/hashcat-utils/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ83OQhXLyX28jaX_xwrlB9K8wR17NQQks5rtB97gaJpZM4M07Ot.