On Fri, Jul 28, 2017 at 12:10 PM, Ryan Schmidt <ryandes...@macports.org> wrote:
> The usual way to get a compiler to find MacPorts software is to supply 
> -isystem/opt/local/include in CPPFLAGS and -L/opt/local/lib in LDFLAGS. 
> Different build systems may have different requirements. I'm not familiar 
> with how pip does it.

Thank you. This fixed the issue and both clang and gcc behave the same
way: Proton gets installed and finds the right SSL libraries.

[0] https://trac.macports.org/ticket/40656

(clang-may-work-virtualenv) ~/tmp $ env CC=clang
CPPFLAGS='-isystem/opt/local/include' LDFLAGS='-L/opt/local/lib' pip
install --no-cache python-qpid-proton
Collecting python-qpid-proton
  Downloading python-qpid-proton-0.17.0.tar.gz (389kB)
    100% || 399kB 3.6MB/s
Installing collected packages: python-qpid-proton
  Running setup.py install for python-qpid-proton ... done
Successfully installed python-qpid-proton-0.17.0
(clang-may-work-virtualenv) ~/tmp $ python
Python 3.6.2 (default, Jul 20 2017, 14:03:58)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import proton
>>> from proton.utils import BlockingConnection, SyncRequestResponse
>>> SyncRequestResponse(BlockingConnection('amqps://USERNAME_REDACTED:PASSWORD_REDACTED@IP_REDACTED:5672/qmf.default.direct',
>>>  timeout=5, target='qmf.default.direct', sasl_enabled=True, 
>>> allowed_mechs='PLAIN'), 'qmf.default.direct')
<proton.utils.SyncRequestResponse object at 0x10fde97f0>
>>>
Assertion failed: (r == 0), function k5_mutex_lock, file
../../include/k5-thread.h, line 366.
Abort trap: 6
(clang-may-work-virtualenv) ~/tmp $ otool -L
clang-may-work-virtualenv/lib/python3.6/site-packages/_cproton.cpython-36m-darwin.so
clang-may-work-virtualenv/lib/python3.6/site-packages/_cproton.cpython-36m-darwin.so:
/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
/opt/local/lib/libsasl2.dylib (compatibility version 3.0.0, current
version 3.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1238.60.2)



(gcc-may-work-virtualenv) ~/tmp $ env CC=gcc
CPPFLAGS='-isystem/opt/local/include' LDFLAGS='-L/opt/local/lib' pip
install --no-cache python-qpid-proton
Collecting python-qpid-proton
  Downloading python-qpid-proton-0.17.0.tar.gz (389kB)
    100% || 399kB 3.1MB/s
Installing collected packages: python-qpid-proton
  Running setup.py install for python-qpid-proton ... done
Successfully installed python-qpid-proton-0.17.0
(gcc-may-work-virtualenv) ~/tmp $ python
Python 3.6.2 (default, Jul 20 2017, 14:03:58)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import proton
>>> from proton.utils import BlockingConnection, SyncRequestResponse
>>> SyncRequestResponse(BlockingConnection('amqps://USERNAME_REDACTED:PASSWORD_REDACTED@IP_REDACTED:5672/qmf.default.direct',
>>>  timeout=5, target='qmf.default.direct', sasl_enabled=True, 
>>> allowed_mechs='PLAIN'), 'qmf.default.direct')
<proton.utils.SyncRequestResponse object at 0x10cbcd860>
>>>
Assertion failed: (r == 0), function k5_mutex_lock, file
../../include/k5-thread.h, line 366.
Abort trap: 6
(gcc-may-work-virtualenv) ~/tmp $ otool -L
gcc-may-work-virtualenv/lib/python3.6/site-packages/_cproton.cpython-36m-darwin.so
gcc-may-work-virtualenv/lib/python3.6/site-packages/_cproton.cpython-36m-darwin.so:
/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
/opt/local/lib/libsasl2.dylib (compatibility version 3.0.0, current
version 3.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1238.60.2)
/opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)

Reply via email to