[MacPorts] #55079: py27-cryptography @2.1.1 does not build on PPC Leopard, Mac OS X 10.5.8, because of invalid compiler switch: cc1: error: -Werror=sign-conversion: No option -Wsign-conversion

MacPorts noreply at macports.org
Fri Oct 13 10:52:42 UTC 2017


#55079: py27-cryptography @2.1.1 does not build on PPC Leopard, Mac OS X 10.5.8,
because of invalid compiler switch: cc1: error: -Werror=sign-conversion: No
option -Wsign-conversion
--------------------------------+---------------------
  Reporter:  ballapete          |      Owner:
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.4.2
Resolution:                     |   Keywords:  leopard
      Port:  py27-cryptography  |
--------------------------------+---------------------

Comment (by ballapete):

 With s lot of warnings macports-gcc6 builds the package:

 {{{
 building '_openssl' extension
 /opt/local/bin/gcc-mp-6 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
 -m32
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
 -c build/temp.macosx-10.5-ppc-2.7/_openssl.c -o
 build/temp.macosx-10.5-ppc-2.7/build/temp.macosx-10.5-ppc-2.7/_openssl.o
 -Wconversion -Wno-error=sign-conversion
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 'SSL_SESSION_get_master_key':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:2192:23: warning: conversion to
 'size_t {aka long unsigned int}' from 'int' may change the sign of the
 result [-Wsign-conversion]
          return session->master_key_length;
                 ~~~~~~~^~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:2194:18: warning: conversion to
 'size_t {aka long unsigned int}' from 'int' may change the sign of the
 result [-Wsign-conversion]
          outlen = session->master_key_length;
                   ^~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_setup_ssl_threads':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:2608:28: warning: conversion to
 'unsigned int' from 'int' may change the sign of the result [-Wsign-
 conversion]
          _ssl_locks_count = CRYPTO_num_locks();
                             ^~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 'Cryptography_pem_password_cb':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:2641:35: warning: conversion to
 'size_t {aka long unsigned int}' from 'int' may change the sign of the
 result [-Wsign-conversion]
          memcpy(buf, st->password, st->length);
                                    ^~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_add_extra_chain_cert':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:47696:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_add_extra_chain_cert(x0, x1);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_add_extra_chain_cert':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:47736:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_add_extra_chain_cert(x0, x1); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_clear_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:47785:10: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_clear_options(x0, x1);
           ^~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:47785:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_clear_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:47818:14: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_clear_options(x0, x1); }
               ^~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:47818:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_get_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:48070:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_get_mode(x0);
           ^~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_get_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:48093:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_get_mode(x0); }
               ^~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_get_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:48106:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_get_options(x0);
           ^~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_get_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:48129:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_get_options(x0); }
               ^~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_get_session_cache_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:48142:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_get_session_cache_mode(x0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_get_session_cache_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:48165:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_get_session_cache_mode(x0); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_set_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49626:10: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_set_mode(x0, x1);
           ^~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49626:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_set_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49659:14: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_set_mode(x0, x1); }
               ^~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49659:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_set_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49790:10: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_set_options(x0, x1);
           ^~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49790:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_set_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49823:14: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_set_options(x0, x1); }
               ^~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49823:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 In file included from build/temp.macosx-10.5-ppc-2.7/_openssl.c:707:0:
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_set_session_cache_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49836:45: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_set_session_cache_mode(x0, x1);
                                              ^
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49836:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_set_session_cache_mode(x0, x1);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 In file included from build/temp.macosx-10.5-ppc-2.7/_openssl.c:707:0:
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_set_session_cache_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49869:49: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_set_session_cache_mode(x0, x1); }
                                                  ^
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:49869:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_set_session_cache_mode(x0, x1); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_set_tmp_dh':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:50185:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_set_tmp_dh(x0, x1);
           ^~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_set_tmp_dh':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:50225:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_set_tmp_dh(x0, x1); }
               ^~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_CTX_set_tmp_ecdh':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:50238:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_CTX_set_tmp_ecdh(x0, x1);
           ^~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_CTX_set_tmp_ecdh':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:50278:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_CTX_set_tmp_ecdh(x0, x1); }
               ^~~~~~~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_get_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:52082:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_get_mode(x0);
           ^~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_get_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:52105:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_get_mode(x0); }
               ^~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_get_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:52118:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_get_options(x0);
           ^~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_get_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:52141:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_get_options(x0); }
               ^~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_set_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53806:10: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_set_mode(x0, x1);
           ^~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53806:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_set_mode':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53839:14: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_set_mode(x0, x1); }
               ^~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53839:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_d_SSL_set_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53852:10: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    return SSL_set_options(x0, x1);
           ^~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53852:10: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 build/temp.macosx-10.5-ppc-2.7/_openssl.c: In function
 '_cffi_f_SSL_set_options':
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53885:14: warning: conversion to
 'long int' from 'long unsigned int' may change the sign of the result
 [-Wsign-conversion]
    { result = SSL_set_options(x0, x1); }
               ^~~~~~~~~~~~~~~
 build/temp.macosx-10.5-ppc-2.7/_openssl.c:53885:14: warning: conversion to
 'long unsigned int' from 'long int' may change the sign of the result
 [-Wsign-conversion]
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55079#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list