Столкнулся с проблемой следующего плана. Хочу поставить cd /usr/ports/security/py-certbot для получения бесплатных ssl сертификатов с автоматизацией этого процесса. Но камнем преткновения стал зависимый порт /usr/ports/security/py-cryptography, который ни в какую не удается поставить. Порты обновил, дообновлялся, сломал make, пользуюсь bmake'ом, но думаю это не принципиально. Обо всем по порядку.
Система
Код: Выделить всё
# uname -a
FreeBSD hata.gateway 9.3-RELEASE-p53 FreeBSD 9.3-RELEASE-p53 #0: Fri May 19 00:22:10 MSK 2017 root@hata.gateway:/usr/obj/usr/src/sys/ROUTER7.0 i386
Код: Выделить всё
DEFAULT_VERSIONS+= perl5=5.22
Пакеты
Код: Выделить всё
# pkg info | grep "gcc"
gcc-ecj-4.5 Eclipse Java Compiler used to build GCC Java
gcc46-4.6.4_9,1 GNU Compiler Collection 4.6
gcc49-4.9.1.s20140611 GNU Compiler Collection 4.9
gccmakedep-1.0.3 Create dependencies in makefiles using 'gcc -M'
Код: Выделить всё
# pkg info | grep "perl"
p5-MIME-Tools-5.505,2 Set of perl5 modules for MIME
perl5-5.22.4 Practical Extraction and Report Language
Код: Выделить всё
# pkg info | grep "py"
py27-cffi-1.7.0 Foreign Function Interface for Python calling C code
py27-fail2ban-0.9.1 Scans log files and bans IP that makes too many password failures
py27-libxml2-2.8.0 Python interface for XML parser library for GNOME
py27-pycparser-2.10 C parser in Python
py27-setuptools-32.1.0_1 Python packages installer
py27-setuptools27-5.1 Python packages installer
py27-sqlite3-2.7.6_4 Standard Python binding to the SQLite3 library
python2-2_2 The "meta-port" for version 2 of the Python interpreter
python27-2.7.6_2 Interpreted object-oriented programming language
snappy-1.1.3 Fast compressor/decompressor library
Код: Выделить всё
cd /usr/ports/security/py-cryptography
bmake ALLOW_UNSUPPORTED_SYSTEM=yes CC=/usr/local/bin/gcc49 install clean
Код: Выделить всё
===> Building for py27-cryptography-2.0.3
running build
running build_py
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_padding.c'
already up-to-date
generating cffi module 'build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_constant_time.c'
already up-to-date
generating cffi module 'build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_openssl.c'
already up-to-date
building '_openssl' extension
/usr/local/bin/gcc49 -DNDEBUG -O2 -pipe -I/usr/include -fstack-protector -fno-strict-aliasing -fPIC -I/usr/local/include/python2.7 -c build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_openssl.c -o build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_openssl.c:476:26: fatal error: openssl/cmac.h: No such file or directory
#include <openssl/cmac.h>
^
compilation terminated.
error: command '/usr/local/bin/gcc49' failed with exit status 1
*** Error code 1
Stop.
bmake: stopped in /usr/ports/security/py-cryptography