Open bollwarm opened 6 years ago
i am also having the same issue trying to compile it on a Redhat Linux Server
confirmed having the same issue.
roll back to version 1.0.3 for now https://github.com/robertdavidgraham/masscan/archive/1.0.3.tar.gz
Ths,It's OK , use the verision 1.0.3
CentOS Linux release 7.4.1708 (Core) clang version 3.4.2 (tags/RELEASE_34/dot2-final) working 1.0.4 https://github.com/robertdavidgraham/masscan/releases/tag/1.0.4
make -v | head -n1;uname -a GNU Make 4.1 Linux james 4.4.0-103-generic #126-Ubuntu SMP Mon Dec 4 16:23:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
git clone https://github.com/robertdavidgraham/masscan
WORKING.
make -v | head -n1;uname -a GNU Make 3.82 Linux fritadeira 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
git clone https://github.com/robertdavidgraham/masscan
NOT WORKING
nice
I was able to overcome this problem on CentOS 7 by changing the compiler from clang
to gcc
in the Makefile.
From:
#use llvm by default, GNU C otherwise
CC=clang
To:
#use llvm by default, GNU C otherwise
CC=gcc
Hope this helps anyone with this issue!
End
El mar., 18 sept. 2018 18:15, Spencer Heywood notifications@github.com escribió:
I was able to overcome this problem on CentOS 7 by changing the compiler from clang to gcc in the Makefile.
From:
use llvm by default, GNU C otherwise
CC=clang
To:
use llvm by default, GNU C otherwise
CC=gcc
Hope this helps anyone with this issue!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robertdavidgraham/masscan/issues/301#issuecomment-422454774, or mute the thread https://github.com/notifications/unsubscribe-auth/AI8gy4aOdC3Czc48c-Co7epLIodbJz0xks5ucRw_gaJpZM4QEMdq .
I installed in centos 6.5 clang-3.4.2-4.el6.x86_64, there is wrong:
src/smack1.c:1497:14: warning: implicit declaration of function 'rdtsc' is invalid in C99 [-Wimplicit-function-declaration] cycle1 = rdtsc(); ^ 1 warning generated. clang -g -ggdb -Wall -O3 -c src/smackqueue.c -o tmp/smackqueue.o clang -g -ggdb -Wall -O3 -c src/string_s.c -o tmp/string_s.o clang -g -ggdb -Wall -O3 -c src/syn-cookie.c -o tmp/syn-cookie.o clang -g -ggdb -Wall -O3 -c src/templ-payloads.c -o tmp/templ-payloads.o clang -g -ggdb -Wall -O3 -c src/templ-pkt.c -o tmp/templ-pkt.o clang -g -ggdb -Wall -O3 -c src/xring.c -o tmp/xring.o clang -g -ggdb -Wall -O3 -o bin/masscan tmp/crypto-base64.o tmp/crypto-blackrock2.o tmp/event-timeout.o tmp/in-binary.o tmp/in-filter.o tmp/in-report.o tmp/logger.o tmp/main-conf.o tmp/main-dedup.o tmp/main-initadapter.o tmp/main-listscan.o tmp/main-ptrace.o tmp/main-readrange.o tmp/main-src.o tmp/main-status.o tmp/main-throttle.o tmp/main.o tmp/masscan-app.o tmp/out-binary.o tmp/out-certs.o tmp/out-grepable.o tmp/out-json.o tmp/out-ndjson.o tmp/out-null.o tmp/out-redis.o tmp/out-text.o tmp/out-unicornscan.o tmp/out-xml.o tmp/output.o tmp/pixie-backtrace.o tmp/pixie-file.o tmp/pixie-threads.o tmp/pixie-timer.o tmp/proto-arp.o tmp/proto-banner1.o tmp/proto-banout.o tmp/proto-dns.o tmp/proto-ftp.o tmp/proto-http.o tmp/proto-icmp.o tmp/proto-imap4.o tmp/proto-interactive.o tmp/proto-netbios.o tmp/proto-ntp.o tmp/proto-pop3.o tmp/proto-preprocess.o tmp/proto-sctp.o tmp/proto-smtp.o tmp/proto-snmp.o tmp/proto-ssh.o tmp/proto-ssl-test.o tmp/proto-ssl.o tmp/proto-tcp-telnet.o tmp/proto-tcp.o tmp/proto-udp.o tmp/proto-vnc.o tmp/proto-x509.o tmp/proto-zeroaccess.o tmp/rand-blackrock.o tmp/rand-lcg.o tmp/rand-primegen.o tmp/ranges.o tmp/rawsock-arp.o tmp/rawsock-getif.o tmp/rawsock-getip.o tmp/rawsock-getmac.o tmp/rawsock-getroute.o tmp/rawsock-pcap.o tmp/rawsock-pcapfile.o tmp/rawsock-pfring.o tmp/rawsock.o tmp/rte-ring.o tmp/script-heartbleed.o tmp/script-ntp-monlist.o tmp/script-sslv3.o tmp/script.o tmp/siphash24.o tmp/smack1.o tmp/smackqueue.o tmp/string_s.o tmp/syn-cookie.o tmp/templ-payloads.o tmp/templ-pkt.o tmp/xring.o -lm -lrt -ldl -lpthread tmp/smack1.o: In function
smack_benchmark': /tmp/masscan/src/smack1.c:1497: undefined reference to
rdtsc' /tmp/masscan/src/smack1.c:1505: undefined reference to `rdtsc' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [bin/masscan]