Не собирается порт

Простые/общие вопросы по UNIX системам. Спросите здесь, если вы новичок

Модераторы: vadim64, terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
wien
сержант
Сообщения: 151
Зарегистрирован: 2014-06-26 18:38:44
Откуда: DafaultCity
Контактная информация:

Не собирается порт

Непрочитанное сообщение wien » 2017-10-05 23:38:18

Господа, всем крепкого здравия!

Столкнулся с проблемой следующего плана. Хочу поставить 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
В файле /etc/make.conf присутствует строка:

Код: Выделить всё

DEFAULT_VERSIONS+=  perl5=5.22
Без нее не хотел ставиться gcc49.

Пакеты

Код: Выделить всё

# 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
Чего он злой то такой? Выручайте, весь день занимался, несколько зависимостей разрешил за день, головка уже не как в юности.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
f_andrey
майор
Сообщения: 2651
Зарегистрирован: 2007-12-26 1:22:58
Откуда: СПб
Контактная информация:

Не собирается порт

Непрочитанное сообщение f_andrey » 2017-10-06 1:53:38

Ну... надо бы уже и систему обносить, так как на 9-ке, нефига не взлетит с вероятностью.
Попробуйте поставить через pip там поди оно и посвежее и вероятно может заработать если питон и вот там что то сишное для шифрования же нужно.
Ну или какую альтернативу, благо их там вагон и тележка, даже на баше.
Если ваша тема перенесена, то смотри http://forum.lissyara.su/viewtopic.php?f=1&t=32308

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Не собирается порт

Непрочитанное сообщение snorlov » 2017-10-06 9:10:45

Он наверное не хавает расположение исходников системной openssl, у меня подобное было с чем-то, но правда еще в версии 7.2, тогда я просто поставил из портов, потом пришел к выводу что надо было подредактировать make-файл. А пакаджа на сайтах freebsd нет?

ыть
проходил мимо

Не собирается порт

Непрочитанное сообщение ыть » 2017-10-06 12:00:39

всё собирается

Код: Выделить всё

The simplest form of usage to obtain certificates is:

 # sudo certbot certonly --standalone -d <domain>, [domain2, ... domainN]>

NOTE:

The client requires the ability to bind on TCP port 80 or 443 (depending
on the --preferred-challenges option used). If a server is running on that
port, it will need to be temporarily stopped so that the standalone server
can listen on that port to complete the challenge authentication process.

For more information on the 'standalone' mode, see:

  https://certbot.eff.org/docs/using.html#standalone

The certbot plugins to support apache and nginx certificate installation
will be made available in the following ports:

 * Apache plugin: security/py-certbot-apache
 * Nginx plugin: security/py-certbot-nginx

===========================================================================

===>  Cleaning for py27-setuptools-36.2.2
===>  Cleaning for py27-acme-0.18.2,1
===>  Cleaning for py27-cryptography-2.0.3
===>  Cleaning for py27-cffi-1.7.0
===>  Cleaning for py27-pycparser-2.10
===>  Cleaning for py27-six-1.11.0
===>  Cleaning for py27-asn1crypto-0.22.0
===>  Cleaning for py27-idna-2.5
===>  Cleaning for py27-ipaddress-1.0.18
===>  Cleaning for py27-enum34-1.1.6
===>  Cleaning for py27-openssl-17.3.0
===>  Cleaning for py27-pyrfc3339-1.0
===>  Cleaning for py27-pytz-2017.2,1
===>  Cleaning for py27-requests-2.18.1_1
===>  Cleaning for py27-chardet-3.0.4
===>  Cleaning for py27-pytest-runner-2.11.1
===>  Cleaning for py27-setuptools_scm-1.15.5
===>  Cleaning for py27-urllib3-1.22
===>  Cleaning for py27-pysocks-1.6.7
===>  Cleaning for py27-certifi-2017.7.27.1
===>  Cleaning for py27-configargparse-0.12.0
===>  Cleaning for py27-configobj-5.0.6_1
===>  Cleaning for py27-parsedatetime-2.1
===>  Cleaning for py27-zope.component-4.2.2
===>  Cleaning for py27-zope.event-4.1.0
===>  Cleaning for py27-zope.interface-4.1.3
===>  Cleaning for py27-certbot-0.18.2,1

Аватара пользователя
wien
сержант
Сообщения: 151
Зарегистрирован: 2014-06-26 18:38:44
Откуда: DafaultCity
Контактная информация:

Не собирается порт

Непрочитанное сообщение wien » 2017-10-08 22:16:22

Печально, конечно, но через pip тоже не ставится:

Код: Выделить всё

pip install cryptography
Collecting cryptography
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached cryptography-2.0.3.tar.gz
Requirement already satisfied: idna>=2.1 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: enum34 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: ipaddress in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: cffi>=1.7 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/site-packages (from cffi>=1.7->cryptography)
Installing collected packages: cryptography
  Running setup.py install for cryptography ... error
    Complete output from command /usr/local/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-L_I6zp/cryptography/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-7c7opA-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography
    copying src/cryptography/__about__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography
    copying src/cryptography/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography
    copying src/cryptography/exceptions.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography
    copying src/cryptography/fernet.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography
    copying src/cryptography/utils.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat
    copying src/cryptography/hazmat/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/base.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/certificate_transparency.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/extensions.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/general_name.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/name.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    copying src/cryptography/x509/oid.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/x509
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/bindings
    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/bindings
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/interfaces.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/mac.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/backends/openssl
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/bindings/openssl
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/asymmetric
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/ciphers
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/kdf
    creating build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.freebsd-9.3-RELEASE-p53-i386-2.7/cryptography/hazmat/primitives/twofactor
    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
    warning: manifest_maker: standard file '-c' not found

    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'
    creating build/temp.freebsd-9.3-RELEASE-p53-i386-2.7
    generating cffi module 'build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_constant_time.c'
    generating cffi module 'build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/_openssl.c'
    building '_openssl' extension
    creating build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/build
    creating build/temp.freebsd-9.3-RELEASE-p53-i386-2.7/build/temp.freebsd-9.3-RELEASE-p53-i386-2.7
    cc -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DNDEBUG -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
    cc1: error: -Werror=sign-conversion: No option -Wsign-conversion
    error: command 'cc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-L_I6zp/cryptography/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-7c7opA-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-L_I6zp/cryptography/
Менял версии GCC в /etc.make.conf:

Код: Выделить всё

cat /etc/make.conf
WITH_PKGNG="YES"
PORTSDIR?= /usr/ports
DEFAULT_VERSIONS+=  perl5=5.22
CC=gcc5
CXX=g++5