본문 바로가기

Ubuntu

yara-python 설치 안되는 문제 해결하기

책을 사서 실습을 위해 Ubuntu16.04.7에 yara-python을 설치해야 했다. 그런데 자꾸 뭔지 모를 에러가 났다.

에러 메세지가 굉장히 길었고, 구글링으로 해결하기는 어려웠다.

더보기

  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-06s91t4s
       cwd: /tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/
  Complete output (108 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'yara' extension
  creating build
  creating build/temp.linux-x86_64-3.5
  creating build/temp.linux-x86_64-3.5/yara
  creating build/temp.linux-x86_64-3.5/yara/libyara
  creating build/temp.linux-x86_64-3.5/yara/libyara/tlshc
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/math
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/console
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/dotnet
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/time
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/demo
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/string
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/tests
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/elf
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/pe
  creating build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/authenticode-parser
  creating build/temp.linux-x86_64-3.5/yara/libyara/proc
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara-python.c -o build/temp.linux-x86_64-3.5/yara-python.o -std=c99
  yara-python.c: In function ‘Rules_match’:
  yara-python.c:2187:48: warning: comparison between pointer and integer
       if (callback_data.allow_duplicate_metadata == NULL)
                                                  ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/threading.c -o build/temp.linux-x86_64-3.5/yara/libyara/threading.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/notebook.c -o build/temp.linux-x86_64-3.5/yara/libyara/notebook.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/ahocorasick.c -o build/temp.linux-x86_64-3.5/yara/libyara/ahocorasick.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/stopwatch.c -o build/temp.linux-x86_64-3.5/yara/libyara/stopwatch.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/hex_grammar.c -o build/temp.linux-x86_64-3.5/yara/libyara/hex_grammar.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/proc.c -o build/temp.linux-x86_64-3.5/yara/libyara/proc.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/exefiles.c -o build/temp.linux-x86_64-3.5/yara/libyara/exefiles.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/re_grammar.c -o build/temp.linux-x86_64-3.5/yara/libyara/re_grammar.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/lexer.c -o build/temp.linux-x86_64-3.5/yara/libyara/lexer.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/libyara.c -o build/temp.linux-x86_64-3.5/yara/libyara/libyara.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/scan.c -o build/temp.linux-x86_64-3.5/yara/libyara/scan.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/simple_str.c -o build/temp.linux-x86_64-3.5/yara/libyara/simple_str.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/mem.c -o build/temp.linux-x86_64-3.5/yara/libyara/mem.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/scanner.c -o build/temp.linux-x86_64-3.5/yara/libyara/scanner.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/rules.c -o build/temp.linux-x86_64-3.5/yara/libyara/rules.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/compiler.c -o build/temp.linux-x86_64-3.5/yara/libyara/compiler.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/endian.c -o build/temp.linux-x86_64-3.5/yara/libyara/endian.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/re.c -o build/temp.linux-x86_64-3.5/yara/libyara/re.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/sizedstr.c -o build/temp.linux-x86_64-3.5/yara/libyara/sizedstr.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/stack.c -o build/temp.linux-x86_64-3.5/yara/libyara/stack.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/hash.c -o build/temp.linux-x86_64-3.5/yara/libyara/hash.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/object.c -o build/temp.linux-x86_64-3.5/yara/libyara/object.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/grammar.c -o build/temp.linux-x86_64-3.5/yara/libyara/grammar.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/arena.c -o build/temp.linux-x86_64-3.5/yara/libyara/arena.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/bitmask.c -o build/temp.linux-x86_64-3.5/yara/libyara/bitmask.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/filemap.c -o build/temp.linux-x86_64-3.5/yara/libyara/filemap.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/atoms.c -o build/temp.linux-x86_64-3.5/yara/libyara/atoms.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/hex_lexer.c -o build/temp.linux-x86_64-3.5/yara/libyara/hex_lexer.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/parser.c -o build/temp.linux-x86_64-3.5/yara/libyara/parser.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/base64.c -o build/temp.linux-x86_64-3.5/yara/libyara/base64.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/exec.c -o build/temp.linux-x86_64-3.5/yara/libyara/exec.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/stream.c -o build/temp.linux-x86_64-3.5/yara/libyara/stream.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/strutils.c -o build/temp.linux-x86_64-3.5/yara/libyara/strutils.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/re_lexer.c -o build/temp.linux-x86_64-3.5/yara/libyara/re_lexer.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/tlshc/tlsh_util.c -o build/temp.linux-x86_64-3.5/yara/libyara/tlshc/tlsh_util.o -std=c99
  In file included from yara/libyara/tlshc/tlsh_util.c:3503:0:
  yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   Tlsh* tlsh_new();
   ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/tlshc/tlsh.c -o build/temp.linux-x86_64-3.5/yara/libyara/tlshc/tlsh.o -std=c99
  In file included from yara/libyara/tlshc/tlsh.c:2:0:
  yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   Tlsh* tlsh_new();
   ^
  In file included from yara/libyara/tlshc/tlsh.c:3:0:
  yara/libyara/tlshc/tlsh_impl.h:95:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     TlshImpl *tlsh_impl_new();
     ^
  yara/libyara/tlshc/tlsh.c:5:7: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   Tlsh* tlsh_new()
         ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/tlshc/tlsh_impl.c -o build/temp.linux-x86_64-3.5/yara/libyara/tlshc/tlsh_impl.o -std=c99
  In file included from yara/libyara/tlshc/tlsh_impl.c:1:0:
  yara/libyara/tlshc/tlsh_impl.h:95:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     TlshImpl *tlsh_impl_new();
     ^
  In file included from yara/libyara/tlshc/tlsh_impl.c:2:0:
  yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   Tlsh* tlsh_new();
   ^
  yara/libyara/tlshc/tlsh_impl.c:107:11: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   TlshImpl *tlsh_impl_new()
             ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/math/math.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/math/math.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/console/console.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/console/console.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/dotnet/dotnet.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/dotnet/dotnet.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/time/time.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/time/time.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/demo/demo.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/demo/demo.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/string/string.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/string/string.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/tests/tests.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/tests/tests.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/elf/elf.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/elf/elf.o -std=c99
  In file included from yara/libyara/modules/elf/elf.c:33:0:
  yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   Tlsh* tlsh_new();
   ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/pe/pe_utils.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/pe_utils.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/pe/pe.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/pe.o -std=c99
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/pe/authenticode-parser/authenticode.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/authenticode-parser/authenticode.o -std=c99
  yara/libyara/modules/pe/authenticode-parser/authenticode.c:22:26: fatal error: openssl/asn1.h: 그런 파일이나 디렉터리가 없습니다
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for yara-python
  Running setup.py clean for yara-python
Failed to build yara-python
Installing collected packages: yara-python
    Running setup.py install for yara-python ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kp53edup/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python3.5m/yara-python
         cwd: /tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/
    Complete output (108 lines):
    running install
    running build
    running build_ext
    building 'yara' extension
    creating build
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/yara
    creating build/temp.linux-x86_64-3.5/yara/libyara
    creating build/temp.linux-x86_64-3.5/yara/libyara/tlshc
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/math
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/console
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/dotnet
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/time
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/demo
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/string
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/tests
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/elf
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/pe
    creating build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/authenticode-parser
    creating build/temp.linux-x86_64-3.5/yara/libyara/proc
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara-python.c -o build/temp.linux-x86_64-3.5/yara-python.o -std=c99
    yara-python.c: In function ‘Rules_match’:
    yara-python.c:2187:48: warning: comparison between pointer and integer
         if (callback_data.allow_duplicate_metadata == NULL)
                                                    ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/threading.c -o build/temp.linux-x86_64-3.5/yara/libyara/threading.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/notebook.c -o build/temp.linux-x86_64-3.5/yara/libyara/notebook.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/ahocorasick.c -o build/temp.linux-x86_64-3.5/yara/libyara/ahocorasick.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/stopwatch.c -o build/temp.linux-x86_64-3.5/yara/libyara/stopwatch.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/hex_grammar.c -o build/temp.linux-x86_64-3.5/yara/libyara/hex_grammar.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/proc.c -o build/temp.linux-x86_64-3.5/yara/libyara/proc.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/exefiles.c -o build/temp.linux-x86_64-3.5/yara/libyara/exefiles.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/re_grammar.c -o build/temp.linux-x86_64-3.5/yara/libyara/re_grammar.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/lexer.c -o build/temp.linux-x86_64-3.5/yara/libyara/lexer.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/libyara.c -o build/temp.linux-x86_64-3.5/yara/libyara/libyara.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/scan.c -o build/temp.linux-x86_64-3.5/yara/libyara/scan.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/simple_str.c -o build/temp.linux-x86_64-3.5/yara/libyara/simple_str.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/mem.c -o build/temp.linux-x86_64-3.5/yara/libyara/mem.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/scanner.c -o build/temp.linux-x86_64-3.5/yara/libyara/scanner.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/rules.c -o build/temp.linux-x86_64-3.5/yara/libyara/rules.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/compiler.c -o build/temp.linux-x86_64-3.5/yara/libyara/compiler.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/endian.c -o build/temp.linux-x86_64-3.5/yara/libyara/endian.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/re.c -o build/temp.linux-x86_64-3.5/yara/libyara/re.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/sizedstr.c -o build/temp.linux-x86_64-3.5/yara/libyara/sizedstr.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/stack.c -o build/temp.linux-x86_64-3.5/yara/libyara/stack.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/hash.c -o build/temp.linux-x86_64-3.5/yara/libyara/hash.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/object.c -o build/temp.linux-x86_64-3.5/yara/libyara/object.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/grammar.c -o build/temp.linux-x86_64-3.5/yara/libyara/grammar.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/arena.c -o build/temp.linux-x86_64-3.5/yara/libyara/arena.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/bitmask.c -o build/temp.linux-x86_64-3.5/yara/libyara/bitmask.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/filemap.c -o build/temp.linux-x86_64-3.5/yara/libyara/filemap.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/atoms.c -o build/temp.linux-x86_64-3.5/yara/libyara/atoms.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/hex_lexer.c -o build/temp.linux-x86_64-3.5/yara/libyara/hex_lexer.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/parser.c -o build/temp.linux-x86_64-3.5/yara/libyara/parser.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/base64.c -o build/temp.linux-x86_64-3.5/yara/libyara/base64.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/exec.c -o build/temp.linux-x86_64-3.5/yara/libyara/exec.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/stream.c -o build/temp.linux-x86_64-3.5/yara/libyara/stream.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/strutils.c -o build/temp.linux-x86_64-3.5/yara/libyara/strutils.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/re_lexer.c -o build/temp.linux-x86_64-3.5/yara/libyara/re_lexer.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/tlshc/tlsh_util.c -o build/temp.linux-x86_64-3.5/yara/libyara/tlshc/tlsh_util.o -std=c99
    In file included from yara/libyara/tlshc/tlsh_util.c:3503:0:
    yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     Tlsh* tlsh_new();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/tlshc/tlsh.c -o build/temp.linux-x86_64-3.5/yara/libyara/tlshc/tlsh.o -std=c99
    In file included from yara/libyara/tlshc/tlsh.c:2:0:
    yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     Tlsh* tlsh_new();
     ^
    In file included from yara/libyara/tlshc/tlsh.c:3:0:
    yara/libyara/tlshc/tlsh_impl.h:95:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
       TlshImpl *tlsh_impl_new();
       ^
    yara/libyara/tlshc/tlsh.c:5:7: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     Tlsh* tlsh_new()
           ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/tlshc/tlsh_impl.c -o build/temp.linux-x86_64-3.5/yara/libyara/tlshc/tlsh_impl.o -std=c99
    In file included from yara/libyara/tlshc/tlsh_impl.c:1:0:
    yara/libyara/tlshc/tlsh_impl.h:95:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
       TlshImpl *tlsh_impl_new();
       ^
    In file included from yara/libyara/tlshc/tlsh_impl.c:2:0:
    yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     Tlsh* tlsh_new();
     ^
    yara/libyara/tlshc/tlsh_impl.c:107:11: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     TlshImpl *tlsh_impl_new()
               ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/math/math.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/math/math.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/console/console.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/console/console.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/dotnet/dotnet.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/dotnet/dotnet.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/time/time.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/time/time.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/demo/demo.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/demo/demo.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/string/string.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/string/string.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/tests/tests.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/tests/tests.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/elf/elf.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/elf/elf.o -std=c99
    In file included from yara/libyara/modules/elf/elf.c:33:0:
    yara/libyara/include/tlshc/tlsh.h:53:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     Tlsh* tlsh_new();
     ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/pe/pe_utils.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/pe_utils.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/pe/pe.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/pe.o -std=c99
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBUCKETS_128=1 -DCHECKSUM_1B=1 -D_GNU_SOURCE=1 -DUSE_LINUX_PROC=1 -DHAVE_STDBOOL_H=1 -DHAVE_MEMMEM=1 -DDOTNET_MODULE=1 -Iyara/libyara/include -Iyara/libyara/ -I. -I/usr/include/python3.5m -c yara/libyara/modules/pe/authenticode-parser/authenticode.c -o build/temp.linux-x86_64-3.5/yara/libyara/modules/pe/authenticode-parser/authenticode.o -std=c99
    yara/libyara/modules/pe/authenticode-parser/authenticode.c:22:26: fatal error: openssl/asn1.h: 그런 파일이나 디렉터리가 없습니다
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rghs4owh/yara-python_b2ee521c7d904b1496c8037381885e30/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-kp53edup/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python3.5m/yara-python Check the logs for full command output.

chatGPT와 대화하면서 다양하게 시도해 보고, 결국 설치를 완료했다.

물론 에러메세지가 너무 길어 chatGPT에도 에러메시지를 바로 물어볼 수 없었고, 이 글에도 올리면 절반 넘게 에러메시지가 있을 것이다. (위에 접은 글로 넣어뒀다 ㅎ.ㅎ)

그래서 같은 에러를 가진 사람들이 에러 메세지로 이 글을 찾을 수 있을지 모르겠지만, 도움이 되기 위해 시도했던 내용을 글로 정리해서 남긴다.


구글링을 하다가 python3.5에서 yara-python을 설치할 때 에러가 발생한다는 글을 봤다.

사실인지는 모르겠다. 방대한 데이터를 학습한 chatGPT도 python3.5에서 yara-python 설치에 관한 issue는 없다고 했다.

 

그래도 다른 방법이 없으니 python3.9 버전을 설치하고 이를 통해 yara-python을 설치해 보고자했다.

 

Python3.9 설치

python3.9를 설치하는 명령은 다음과 같다.

sudo apt install python3.9

 

하지만 다음과 같이 뜨면서 python3.9는 설치되지 않았다.

패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
주의, 정규식 'python3.9'에 대해 'postgresql-plpython3-9.5'을(를) 선택합니다
postgresql-plpython3-9.5 is already the newest version (9.5.25-0ubuntu0.16.04.1).
0개 업그레이드, 0개 새로 설치, 0개 제거 및 10개 업그레이드 안 함.

에러를 해결하고자 여러 python package들을 설치하면서 저런 파일도 설치가 되었나 보다.

그런데 postgresql-plpython3-9.5에 `python3.9`가 들어간다고, 자꾸 저것만 뜨는 것이다.

 

그래서 python3.9의 소스코드를 직접 다운로드하고 컴파일하여 설치했다.

아래의 명령어 순서이다. chatGPT가 알려줬다.

sudo apt update
sudo apt install build-essential libssl-dev libffi-dev python3-dev
wget https://www.python.org/ftp/python/3.9.8/Python-3.9.8.tgz
tar -xf Python-3.9.8.tgz
cd Python-3.9.8
./configure --enable-optimizations
make -j 4
sudo make altinstall

위 명령을 순차 실행 후 python3.9라고 치면 아래 사진과 같이 나오면 잘 설치된 것을 볼 수 있다.

파이썬3.9 설치 완료


python3.9를 python 명령어의 기본 버전으로 설정하기

그다음으로 할 일은 설치된 python3.9를 python 명령의 기본 버전으로 설정하는 것이다.

다음 명령을 사용한다.

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2

Ubuntu에 기본으로 설치되어 있던 3.5를 1의 우선순위로 두고, 새로 설치한 3.9를 2의 우선순위로 둔다.

참고로 숫자가 클수록 우선순위가 높다.

 

그런데, python3.9를 직접 컴파일했기 때문에 저 경로에 있지 않다.

which python3.9

위 명령을 사용하면 python3.9 실행파일의 경로를 알 수 있다.

나 같은 경우에는 /usr/local/bin/python3.9 경로에 있다.

아래의 명령어를 통해 심볼릭 링크를 만들어준다.

sudo ln -s /usr/local/bin/python3.9 /usr/bin/python3.9

그 뒤, 다시 아래의 명령어를 해주면 문제없이 실행이 된다.

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2

 

그런데, 나는 하도 많은 것을 해보다 보니, 저기 update-alternatives 목록도 우선순위들이 아주 엉망진창이 되어 있어, 위 명령들을 실행했는데도 여전히 python3.5 버전이 실행됐다.

그럴 땐 update-alternatives 목록을 확인해야 한다.

sudo update-alternatives --list python

위 명령의 실행 결과

아래의 명령어를 사용하면 우선순위까지 포함해서 보여준다.

sudo update-alternatives --query python
Name: python
Link: /usr/bin/python
Status: manual
Best: /usr/bin/python3.9
Value: /usr/bin/python3.5

Alternative: /usr/bin/python2.7
Priority: 1

Alternative: /usr/bin/python3.5
Priority: 1

Alternative: /usr/bin/python3.9
Priority: 2

현재 python 명령에 대한 대체 실행 파일이 /usr/bin/python3.5로 설정되어 있다.

그래서 python 대체 실행 파일에 대한 우선순위를 변경해야 한다.

아래의 명령어를 사용한다.

sudo update-alternatives --config python

위 명령 실행 결과

위 명령을 실행하면 위의 사진과 같이 나온다.

별표(*)가 쳐져있는 부분이 현재 설정된 버전이다. 나는 현재 설정을 완료하고 캡처해서 3.9로 버전이 잘 선택되어 있다.

나는 우선순위도 지금 2.7이랑 3.5 모두 1로 설정해 두고, 조금 엉망인데

중요한 부분은 왼쪽의 0, 1, 2, 3 중에서 여러분이 설정하고자 하는 버전의 번호를 입력해 주고 엔터를 누르면 된다.

 

그다음 python --version라고 치면 버전이 python3.9로 잘 나오는 걸 확인할 수 있다.

파이썬 버전 바꾸기 성공


pip3.9 설치

python3.9 버전을 설치해줬으므로, pip도 3.9버전으로 재설치해주자.

chatGPT가 아래 명령어를 사용하라고 알려줬다.

sudo apt-get install python3.9-pip

그런데, python3.9-pip 정규식에 해당하는 패키지가 없다는 에러가 떴다.

 

그 다음 알려준 명령어는 다음과 같다.

sudo apt update
sudo apt install python3.9-distutils
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3.9 get-pip.py

마지막 네번째 명령만으로 실행됐는데, 설치가 되었다. 마지막 명령만 실행하면 될 것 같다.


pip3.9 기본 버전으로 설정

이번에 pip3.9를 기본버전으로 설정해보자.

sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3.5 1
sudo update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.9 2

이렇게 하고서 pip --version을 했을 때, 3.9버전으로 떴어야 하지만 되지 않았다.

 

그래서 여차저차 여러가지를 시도했지만 뭐가 많이 꼬인 듯 했다.

다음과 같이 나왔다.

꼬인 pip

pip 명령에 대한 대체 명령어는 pip3.9로 되어있는데, pip --version을 했을 때, 3.5로 나왔다.

그런데 뭐 pip --version을 했을 때와 pip3.9 --version을 했을 때 pip 버전은 같으니 된건가? 싶었다.

 

그때 cmd 창에 노란 WARNING 메세지가 눈에 들어왔다.

WARNING 메세지에 주목

아래 WARNING 메세지를 보면 현재 20.3.4 버전을 사용하고 있지만 23.1 버전이 사용가능하다.

업그레이드를 하려면 `/usr/local/bin/python3.9 -m pip install --upgrade pip` 명령을 사용하라고 되어있다.

이 명령을 실행했더니 pip가 python3.9 버전으로 짜라란 변했다.

pip 버전 바꾸기 성공


pip를 이용해서 yara-python 설치

위의 모든 과정을 거치고 pip를 이용해 yara-python을 설치했을 때, 에러없이 성공했다.

pip install yara-python

yara-python 설치 성공

 



정말 python3.5 버전이었기 때문에 에러가 생긴건가 싶다.

설치는 완료했지만 아직 사용해보진 않았기 때문에 혹여나 후에 문제가 생길 수도 있다.

하지만 pip list 명령어를 실행했을 때 다음과 같이 잘 설치되었다고 나온다.

pip list 실행 화면

잘 못 된 부분, 수정할 부분, 혹은 추가적으로 알면 좋은 내용들이 있다면 댓글로 공유해주면 감사할 것 같다.

 

'Ubuntu' 카테고리의 다른 글

Ubuntu 고정 IP 주소 설정하기  (0) 2023.04.20