sidaf / homebrew-pentest

Homebrew Tap - Pen Test Tools
708 stars 177 forks source link

impacket fails to install #13

Closed harry-m closed 6 years ago

harry-m commented 6 years ago

brew install impacket gives the following:

==> Installing impacket from sidaf/pentest
==> Installing dependencies for sidaf/pentest/impacket: libffi
==> Installing sidaf/pentest/impacket dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.2.1.high_sierra.bottle.tar.gz
==> Pouring libffi-3.2.1.high_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of libffi.

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/libffi/lib

==> Summary
🍺  /usr/local/Cellar/libffi/3.2.1: 16 files, 297.0KB
==> Installing sidaf/pentest/impacket
==> Cloning https://github.com/coresecurity/impacket
Cloning into '/Users/administrator/Library/Caches/Homebrew/impacket--git'...
==> Checking out revision 7b0bfb7
==> Downloading https://pypi.python.org/packages/f7/83/377e3dd2e95f9020dbd0dfd3c47aaa7deebe3c68d3857a4e51917146ae8b/pyasn1-0.1.9.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/impacket/0.9.15_2/libexec/vendor --single-version-externally-managed --record=installed.txt
==> Downloading https://pypi.python.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/impacket/0.9.15_2/libexec/vendor --single-version-externally-managed --record=installed.txt
==> Downloading https://pypi.python.org/packages/77/f2/bccec75ca4280a9fa762a90a1b8b152a22eac5d9c726d7da1fcbfe0a20e6/pyOpenSSL-16.0.0.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/impacket/0.9.15_2/libexec/vendor --single-version-externally-managed --record=installed.txt
==> Downloading https://pypi.python.org/packages/92/ea/e7d512719dcc672ce7ed5d70f188e45e329c4bcf7c94528fbc7efa138d8a/cryptography-1.3.1.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/impacket/0.9.15_2/libexec/vendor --single-version-externally-managed --record=installed.txt
Last 15 lines from /Users/administrator/Library/Logs/Homebrew/impacket/04.python:
generating cffi module 'build/temp.macosx-10.13-intel-2.7/_padding.c'
generating cffi module 'build/temp.macosx-10.13-intel-2.7/_constant_time.c'
generating cffi module 'build/temp.macosx-10.13-intel-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.macosx-10.13-intel-2.7/build
creating build/temp.macosx-10.13-intel-2.7/build/temp.macosx-10.13-intel-2.7
clang -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.13-intel-2.7/_openssl.c -o build/temp.macosx-10.13-intel-2.7/build/temp.macosx-10.13-intel-2.7/_openssl.o
build/temp.macosx-10.13-intel-2.7/_openssl.c:2508:14: error: typedef redefinition with different types ('void' vs 'struct comp_method_st')
typedef void COMP_METHOD;
             ^
/usr/local/opt/openssl/include/openssl/ossl_typ.h:181:31: note: previous definition is here
typedef struct comp_method_st COMP_METHOD;
                              ^
1 error generated.
error: command 'clang' failed with exit status 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/sidaf/homebrew-pentest/issues

/usr/local/Homebrew/Library/Homebrew/exceptions.rb:426:in `block in dump': undefined method `check_for_bad_install_name_tool' for #<Homebrew::Diagnostic::Checks:0x007fd686260d18> (NoMethodError)
Did you mean?  check_for_tap_ruby_files_locations
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:425:in `each'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:425:in `dump'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:138:in `rescue in <main>'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:30:in `<main>'
Installing impacket has failed!

Verified on two machines, one running Sierra, the other High Sierra. Happy to dig out any other useful info.

sidaf commented 6 years ago

Should be fixed now.