unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.45k stars 689 forks source link

OS X 10.8.x, uWSGI 2.0.3 linking error #600

Closed mikec closed 10 years ago

mikec commented 10 years ago

Trying to install uwsgi with pip on OSX 10.8:

Downloading/unpacking uwsgi
  Downloading uwsgi-2.0.4.tar.gz (765kB): 765kB downloaded
  Running setup.py egg_info for package uwsgi

Installing collected packages: uwsgi
  Running setup.py install for uwsgi
    Undefined symbols for architecture x86_64:
      "_SSL_CTX_set_next_protos_advertised_cb", referenced from:
          _uwsgi_opt_https2 in https.o
      "_SSL_get0_next_proto_negotiated", referenced from:
          _uwsgi_spdy_info_cb in spdy3.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    using profile: buildconf/default.ini
    detected include path: ['/usr/local/include', '/usr/bin/../lib/clang/5.1/include', '/usr/include', '/System/Library/Frameworks', '/Library/Frameworks']
    Patching "bin_name" to properly install_scripts dir
    detected CPU cores: 8
    configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -mmacosx-version-min=10.5 -DUWSGI_LOCK_USE_OSX_SPINLOCK -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -I/usr/local/Cellar/pcre/8.34/include -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_UUID -DUWSGI_VERSION="\"2.0.4\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="4" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
    *** uWSGI compiling server core ***
    [thread 0][clang] core/utils.o
    [thread 2][clang] core/protocol.o
    [thread 4][clang] core/socket.o
    [thread 5][clang] core/logging.o
    [thread 3][clang] core/master.o
    [thread 6][clang] core/master_utils.o
    [thread 7][clang] core/emperor.o
    [thread 1][clang] core/notify.o
    [thread 0][clang] core/mule.o
    [thread 2][clang] core/subscription.o
    [thread 4][clang] core/stats.o
    [thread 5][clang] core/sendfile.o
    [thread 3][clang] core/async.o
    [thread 6][clang] core/master_checks.o
    [thread 7][clang] core/fifo.o
    [thread 1][clang] core/offload.o
    [thread 0][clang] core/io.o
    [thread 2][clang] core/static.o
    [thread 4][clang] core/websockets.o
    [thread 5][clang] core/spooler.o
    [thread 3][clang] core/snmp.o
    [thread 6][clang] core/exceptions.o
    [thread 7][clang] core/config.o
    [thread 1][clang] core/setup_utils.o
    [thread 0][clang] core/clock.o
    [thread 2][clang] core/init.o
    [thread 4][clang] core/buffer.o
    [thread 5][clang] core/reader.o
    [thread 3][clang] core/writer.o
    [thread 6][clang] core/alarm.o
    [thread 7][clang] core/cron.o
    [thread 1][clang] core/hooks.o
    [thread 0][clang] core/plugins.o
    [thread 2][clang] core/lock.o
    [thread 4][clang] core/cache.o
    [thread 5][clang] core/daemons.o
    [thread 3][clang] core/errors.o
    [thread 6][clang] core/hash.o
    [thread 7][clang] core/master_events.o
    [thread 1][clang] core/chunked.o
    [thread 0][clang] core/queue.o
    [thread 2][clang] core/event.o
    [thread 4][clang] core/signal.o
    [thread 5][clang] core/strings.o
    [thread 3][clang] core/progress.o
    [thread 6][clang] core/timebomb.o
    [thread 7][clang] core/ini.o
    [thread 1][clang] core/fsmon.o
    [thread 0][clang] core/mount.o
    [thread 2][clang] core/metrics.o
    [thread 4][clang] core/plugins_builder.o
    [thread 5][clang] core/sharedarea.o
    [thread 3][clang] core/rpc.o
    [thread 6][clang] core/gateway.o
    [thread 7][clang] core/loop.o
    [thread 1][clang] core/cookie.o
    [thread 0][clang] core/querystring.o
    [thread 2][clang] core/rb_timers.o
    [thread 4][clang] core/transformations.o
    [thread 5][clang] core/uwsgi.o
    [thread 3][clang] proto/base.o
    [thread 6][clang] proto/uwsgi.o
    [thread 7][clang] proto/http.o
    [thread 1][clang] proto/fastcgi.o
    [thread 0][clang] proto/scgi.o
    [thread 2][clang] proto/puwsgi.o
    [thread 4][clang] core/zlib.o
    [thread 5][clang] core/regexp.o
    [thread 3][clang] core/routing.o
    [thread 6][clang] core/yaml.o
    [thread 7][clang] core/ssl.o
    [thread 1][clang] core/legion.o
    [thread 0][clang] core/xmlconf.o
    [thread 2][clang] core/dot_h.o
    [thread 4][clang] core/config_py.o
    *** uWSGI compiling embedded plugins ***
    [thread 5][clang] plugins/python/python_plugin.o
    [thread 3][clang] plugins/python/pyutils.o
    [thread 6][clang] plugins/python/pyloader.o
    [thread 7][clang] plugins/python/wsgi_handlers.o
    [thread 1][clang] plugins/python/wsgi_headers.o
    [thread 0][clang] plugins/python/wsgi_subhandler.o
    [thread 2][clang] plugins/python/web3_subhandler.o
    [thread 4][clang] plugins/python/pump_subhandler.o
    [thread 5][clang] plugins/python/gil.o
    [thread 3][clang] plugins/python/uwsgi_pymodule.o
    [thread 6][clang] plugins/python/profiler.o
    [thread 7][clang] plugins/python/symimporter.o
    [thread 1][clang] plugins/python/tracebacker.o
    [thread 0][clang] plugins/python/raw.o
    [thread 2][clang] plugins/gevent/gevent.o
    [thread 4][clang] plugins/gevent/hooks.o
    [thread 5][clang] plugins/ping/ping_plugin.o
    [thread 3][clang] plugins/cache/cache.o
    [thread 6][clang] plugins/nagios/nagios.o
    [thread 7][clang] plugins/rrdtool/rrdtool.o
    [thread 1][clang] plugins/carbon/carbon.o
    [thread 0][clang] plugins/rpc/rpc_plugin.o
    [thread 2][clang] plugins/corerouter/cr_common.o
    [thread 4][clang] plugins/corerouter/cr_map.o
    [thread 5][clang] plugins/corerouter/corerouter.o
    [thread 3][clang] plugins/fastrouter/fastrouter.o
    [thread 6][clang] plugins/http/http.o
    [thread 7][clang] plugins/http/keepalive.o
    [thread 1][clang] plugins/http/https.o
    [thread 0][clang] plugins/http/spdy3.o
    [thread 2][clang] plugins/ugreen/ugreen.o
    [thread 4][clang] plugins/signal/signal_plugin.o
    [thread 5][clang] plugins/syslog/syslog_plugin.o
    [thread 3][clang] plugins/rsyslog/rsyslog_plugin.o
    [thread 6][clang] plugins/logsocket/logsocket_plugin.o
    [thread 7][clang] plugins/router_uwsgi/router_uwsgi.o
    [thread 1][clang] plugins/router_redirect/router_redirect.o
    [thread 0][clang] plugins/router_basicauth/router_basicauth.o
    [thread 2][clang] plugins/zergpool/zergpool.o
    [thread 4][clang] plugins/redislog/redislog_plugin.o
    [thread 5][clang] plugins/mongodblog/mongodblog_plugin.o
    [thread 3][clang] plugins/router_rewrite/router_rewrite.o
    [thread 6][clang] plugins/router_http/router_http.o
    [thread 7][clang] plugins/logfile/logfile.o
    [thread 1][clang] plugins/router_cache/router_cache.o
    [thread 0][clang] plugins/rawrouter/rawrouter.o
    [thread 2][clang] plugins/router_static/router_static.o
    [thread 4][clang] plugins/sslrouter/sslrouter.o
    [thread 5][clang] plugins/spooler/spooler_plugin.o
    [thread 3][clang] plugins/cheaper_busyness/cheaper_busyness.o
    [thread 6][clang] plugins/symcall/symcall_plugin.o
    [thread 7][clang] plugins/transformation_tofile/tofile.o
    [thread 1][clang] plugins/transformation_gzip/gzip.o
    [thread 0][clang] plugins/transformation_chunked/chunked.o
    [thread 2][clang] plugins/transformation_offload/offload.o
    [thread 4][clang] plugins/router_memcached/router_memcached.o
    [thread 5][clang] plugins/router_redis/router_redis.o
    [thread 3][clang] plugins/router_hash/router_hash.o
    [thread 6][clang] plugins/router_expires/expires.o
    [thread 7][clang] plugins/router_metrics/plugin.o
    [thread 1][clang] plugins/transformation_template/tt.o
    [thread 0][clang] plugins/stats_pusher_socket/plugin.o
    *** uWSGI linking ***
    clang -o /Users/mfcalvanese/dev/honeycomb/virtualenv/bin/uwsgi  core/utils.o core/protocol.o core/socket.o core/logging.o core/master.o core/master_utils.o core/emperor.o core/notify.o core/mule.o core/subscription.o core/stats.o core/sendfile.o core/async.o core/master_checks.o core/fifo.o core/offload.o core/io.o core/static.o core/websockets.o core/spooler.o core/snmp.o core/exceptions.o core/config.o core/setup_utils.o core/clock.o core/init.o core/buffer.o core/reader.o core/writer.o core/alarm.o core/cron.o core/hooks.o core/plugins.o core/lock.o core/cache.o core/daemons.o core/errors.o core/hash.o core/master_events.o core/chunked.o core/queue.o core/event.o core/signal.o core/strings.o core/progress.o core/timebomb.o core/ini.o core/fsmon.o core/mount.o core/metrics.o core/plugins_builder.o core/sharedarea.o core/rpc.o core/gateway.o core/loop.o core/cookie.o core/querystring.o core/rb_timers.o core/transformations.o core/uwsgi.o proto/base.o proto/uwsgi.o proto/http.o proto/fastcgi.o proto/scgi.o proto/puwsgi.o core/zlib.o core/regexp.o core/routing.o core/yaml.o core/ssl.o core/legion.o core/xmlconf.o core/dot_h.o core/config_py.o plugins/python/python_plugin.o plugins/python/pyutils.o plugins/python/pyloader.o plugins/python/wsgi_handlers.o plugins/python/wsgi_headers.o plugins/python/wsgi_subhandler.o plugins/python/web3_subhandler.o plugins/python/pump_subhandler.o plugins/python/gil.o plugins/python/uwsgi_pymodule.o plugins/python/profiler.o plugins/python/symimporter.o plugins/python/tracebacker.o plugins/python/raw.o plugins/gevent/gevent.o plugins/gevent/hooks.o plugins/ping/ping_plugin.o plugins/cache/cache.o plugins/nagios/nagios.o plugins/rrdtool/rrdtool.o plugins/carbon/carbon.o plugins/rpc/rpc_plugin.o plugins/corerouter/cr_common.o plugins/corerouter/cr_map.o plugins/corerouter/corerouter.o plugins/fastrouter/fastrouter.o plugins/http/http.o plugins/http/keepalive.o plugins/http/https.o plugins/http/spdy3.o plugins/ugreen/ugreen.o plugins/signal/signal_plugin.o plugins/syslog/syslog_plugin.o plugins/rsyslog/rsyslog_plugin.o plugins/logsocket/logsocket_plugin.o plugins/router_uwsgi/router_uwsgi.o plugins/router_redirect/router_redirect.o plugins/router_basicauth/router_basicauth.o plugins/zergpool/zergpool.o plugins/redislog/redislog_plugin.o plugins/mongodblog/mongodblog_plugin.o plugins/router_rewrite/router_rewrite.o plugins/router_http/router_http.o plugins/logfile/logfile.o plugins/router_cache/router_cache.o plugins/rawrouter/rawrouter.o plugins/router_static/router_static.o plugins/sslrouter/sslrouter.o plugins/spooler/spooler_plugin.o plugins/cheaper_busyness/cheaper_busyness.o plugins/symcall/symcall_plugin.o plugins/transformation_tofile/tofile.o plugins/transformation_gzip/gzip.o plugins/transformation_chunked/chunked.o plugins/transformation_offload/offload.o plugins/router_memcached/router_memcached.o plugins/router_redis/router_redis.o plugins/router_hash/router_hash.o plugins/router_expires/expires.o plugins/router_metrics/plugin.o plugins/transformation_template/tt.o plugins/stats_pusher_socket/plugin.o -lpthread -lm -lz -L/usr/local/Cellar/pcre/8.34/lib -lpcre -lssl -lcrypto -lxml2 -ldl -framework CoreFoundation /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a
    *** error linking uWSGI ***
    Complete output from command /Users/mfcalvanese/dev/honeycomb/virtualenv/bin/python -c "import setuptools;__file__='/Users/mfcalvanese/dev/honeycomb/virtualenv/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/23/zdlx8fw12g97c49yy7b9422h0000gn/T/pip-dufNpN-record/install-record.txt --single-version-externally-managed --install-headers /Users/mfcalvanese/dev/honeycomb/virtualenv/include/site/python2.7:
    running install

Undefined symbols for architecture x86_64:

  "_SSL_CTX_set_next_protos_advertised_cb", referenced from:

      _uwsgi_opt_https2 in https.o

  "_SSL_get0_next_proto_negotiated", referenced from:

      _uwsgi_spdy_info_cb in spdy3.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

using profile: buildconf/default.ini

detected include path: ['/usr/local/include', '/usr/bin/../lib/clang/5.1/include', '/usr/include', '/System/Library/Frameworks', '/Library/Frameworks']

Patching "bin_name" to properly install_scripts dir

detected CPU cores: 8

configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -mmacosx-version-min=10.5 -DUWSGI_LOCK_USE_OSX_SPINLOCK -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -I/usr/local/Cellar/pcre/8.34/include -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_UUID -DUWSGI_VERSION="\"2.0.4\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="4" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"

*** uWSGI compiling server core ***

[thread 0][clang] core/utils.o

[thread 2][clang] core/protocol.o

[thread 4][clang] core/socket.o

[thread 5][clang] core/logging.o

[thread 3][clang] core/master.o

[thread 6][clang] core/master_utils.o

[thread 7][clang] core/emperor.o

[thread 1][clang] core/notify.o

[thread 0][clang] core/mule.o

[thread 2][clang] core/subscription.o

[thread 4][clang] core/stats.o

[thread 5][clang] core/sendfile.o

[thread 3][clang] core/async.o

[thread 6][clang] core/master_checks.o

[thread 7][clang] core/fifo.o

[thread 1][clang] core/offload.o

[thread 0][clang] core/io.o

[thread 2][clang] core/static.o

[thread 4][clang] core/websockets.o

[thread 5][clang] core/spooler.o

[thread 3][clang] core/snmp.o

[thread 6][clang] core/exceptions.o

[thread 7][clang] core/config.o

[thread 1][clang] core/setup_utils.o

[thread 0][clang] core/clock.o

[thread 2][clang] core/init.o

[thread 4][clang] core/buffer.o

[thread 5][clang] core/reader.o

[thread 3][clang] core/writer.o

[thread 6][clang] core/alarm.o

[thread 7][clang] core/cron.o

[thread 1][clang] core/hooks.o

[thread 0][clang] core/plugins.o

[thread 2][clang] core/lock.o

[thread 4][clang] core/cache.o

[thread 5][clang] core/daemons.o

[thread 3][clang] core/errors.o

[thread 6][clang] core/hash.o

[thread 7][clang] core/master_events.o

[thread 1][clang] core/chunked.o

[thread 0][clang] core/queue.o

[thread 2][clang] core/event.o

[thread 4][clang] core/signal.o

[thread 5][clang] core/strings.o

[thread 3][clang] core/progress.o

[thread 6][clang] core/timebomb.o

[thread 7][clang] core/ini.o

[thread 1][clang] core/fsmon.o

[thread 0][clang] core/mount.o

[thread 2][clang] core/metrics.o

[thread 4][clang] core/plugins_builder.o

[thread 5][clang] core/sharedarea.o

[thread 3][clang] core/rpc.o

[thread 6][clang] core/gateway.o

[thread 7][clang] core/loop.o

[thread 1][clang] core/cookie.o

[thread 0][clang] core/querystring.o

[thread 2][clang] core/rb_timers.o

[thread 4][clang] core/transformations.o

[thread 5][clang] core/uwsgi.o

[thread 3][clang] proto/base.o

[thread 6][clang] proto/uwsgi.o

[thread 7][clang] proto/http.o

[thread 1][clang] proto/fastcgi.o

[thread 0][clang] proto/scgi.o

[thread 2][clang] proto/puwsgi.o

[thread 4][clang] core/zlib.o

[thread 5][clang] core/regexp.o

[thread 3][clang] core/routing.o

[thread 6][clang] core/yaml.o

[thread 7][clang] core/ssl.o

[thread 1][clang] core/legion.o

[thread 0][clang] core/xmlconf.o

[thread 2][clang] core/dot_h.o

[thread 4][clang] core/config_py.o

*** uWSGI compiling embedded plugins ***

[thread 5][clang] plugins/python/python_plugin.o

[thread 3][clang] plugins/python/pyutils.o

[thread 6][clang] plugins/python/pyloader.o

[thread 7][clang] plugins/python/wsgi_handlers.o

[thread 1][clang] plugins/python/wsgi_headers.o

[thread 0][clang] plugins/python/wsgi_subhandler.o

[thread 2][clang] plugins/python/web3_subhandler.o

[thread 4][clang] plugins/python/pump_subhandler.o

[thread 5][clang] plugins/python/gil.o

[thread 3][clang] plugins/python/uwsgi_pymodule.o

[thread 6][clang] plugins/python/profiler.o

[thread 7][clang] plugins/python/symimporter.o

[thread 1][clang] plugins/python/tracebacker.o

[thread 0][clang] plugins/python/raw.o

[thread 2][clang] plugins/gevent/gevent.o

[thread 4][clang] plugins/gevent/hooks.o

[thread 5][clang] plugins/ping/ping_plugin.o

[thread 3][clang] plugins/cache/cache.o

[thread 6][clang] plugins/nagios/nagios.o

[thread 7][clang] plugins/rrdtool/rrdtool.o

[thread 1][clang] plugins/carbon/carbon.o

[thread 0][clang] plugins/rpc/rpc_plugin.o

[thread 2][clang] plugins/corerouter/cr_common.o

[thread 4][clang] plugins/corerouter/cr_map.o

[thread 5][clang] plugins/corerouter/corerouter.o

[thread 3][clang] plugins/fastrouter/fastrouter.o

[thread 6][clang] plugins/http/http.o

[thread 7][clang] plugins/http/keepalive.o

[thread 1][clang] plugins/http/https.o

[thread 0][clang] plugins/http/spdy3.o

[thread 2][clang] plugins/ugreen/ugreen.o

[thread 4][clang] plugins/signal/signal_plugin.o

[thread 5][clang] plugins/syslog/syslog_plugin.o

[thread 3][clang] plugins/rsyslog/rsyslog_plugin.o

[thread 6][clang] plugins/logsocket/logsocket_plugin.o

[thread 7][clang] plugins/router_uwsgi/router_uwsgi.o

[thread 1][clang] plugins/router_redirect/router_redirect.o

[thread 0][clang] plugins/router_basicauth/router_basicauth.o

[thread 2][clang] plugins/zergpool/zergpool.o

[thread 4][clang] plugins/redislog/redislog_plugin.o

[thread 5][clang] plugins/mongodblog/mongodblog_plugin.o

[thread 3][clang] plugins/router_rewrite/router_rewrite.o

[thread 6][clang] plugins/router_http/router_http.o

[thread 7][clang] plugins/logfile/logfile.o

[thread 1][clang] plugins/router_cache/router_cache.o

[thread 0][clang] plugins/rawrouter/rawrouter.o

[thread 2][clang] plugins/router_static/router_static.o

[thread 4][clang] plugins/sslrouter/sslrouter.o

[thread 5][clang] plugins/spooler/spooler_plugin.o

[thread 3][clang] plugins/cheaper_busyness/cheaper_busyness.o

[thread 6][clang] plugins/symcall/symcall_plugin.o

[thread 7][clang] plugins/transformation_tofile/tofile.o

[thread 1][clang] plugins/transformation_gzip/gzip.o

[thread 0][clang] plugins/transformation_chunked/chunked.o

[thread 2][clang] plugins/transformation_offload/offload.o

[thread 4][clang] plugins/router_memcached/router_memcached.o

[thread 5][clang] plugins/router_redis/router_redis.o

[thread 3][clang] plugins/router_hash/router_hash.o

[thread 6][clang] plugins/router_expires/expires.o

[thread 7][clang] plugins/router_metrics/plugin.o

[thread 1][clang] plugins/transformation_template/tt.o

[thread 0][clang] plugins/stats_pusher_socket/plugin.o

*** uWSGI linking ***

clang -o /Users/mfcalvanese/dev/honeycomb/virtualenv/bin/uwsgi  core/utils.o core/protocol.o core/socket.o core/logging.o core/master.o core/master_utils.o core/emperor.o core/notify.o core/mule.o core/subscription.o core/stats.o core/sendfile.o core/async.o core/master_checks.o core/fifo.o core/offload.o core/io.o core/static.o core/websockets.o core/spooler.o core/snmp.o core/exceptions.o core/config.o core/setup_utils.o core/clock.o core/init.o core/buffer.o core/reader.o core/writer.o core/alarm.o core/cron.o core/hooks.o core/plugins.o core/lock.o core/cache.o core/daemons.o core/errors.o core/hash.o core/master_events.o core/chunked.o core/queue.o core/event.o core/signal.o core/strings.o core/progress.o core/timebomb.o core/ini.o core/fsmon.o core/mount.o core/metrics.o core/plugins_builder.o core/sharedarea.o core/rpc.o core/gateway.o core/loop.o core/cookie.o core/querystring.o core/rb_timers.o core/transformations.o core/uwsgi.o proto/base.o proto/uwsgi.o proto/http.o proto/fastcgi.o proto/scgi.o proto/puwsgi.o core/zlib.o core/regexp.o core/routing.o core/yaml.o core/ssl.o core/legion.o core/xmlconf.o core/dot_h.o core/config_py.o plugins/python/python_plugin.o plugins/python/pyutils.o plugins/python/pyloader.o plugins/python/wsgi_handlers.o plugins/python/wsgi_headers.o plugins/python/wsgi_subhandler.o plugins/python/web3_subhandler.o plugins/python/pump_subhandler.o plugins/python/gil.o plugins/python/uwsgi_pymodule.o plugins/python/profiler.o plugins/python/symimporter.o plugins/python/tracebacker.o plugins/python/raw.o plugins/gevent/gevent.o plugins/gevent/hooks.o plugins/ping/ping_plugin.o plugins/cache/cache.o plugins/nagios/nagios.o plugins/rrdtool/rrdtool.o plugins/carbon/carbon.o plugins/rpc/rpc_plugin.o plugins/corerouter/cr_common.o plugins/corerouter/cr_map.o plugins/corerouter/corerouter.o plugins/fastrouter/fastrouter.o plugins/http/http.o plugins/http/keepalive.o plugins/http/https.o plugins/http/spdy3.o plugins/ugreen/ugreen.o plugins/signal/signal_plugin.o plugins/syslog/syslog_plugin.o plugins/rsyslog/rsyslog_plugin.o plugins/logsocket/logsocket_plugin.o plugins/router_uwsgi/router_uwsgi.o plugins/router_redirect/router_redirect.o plugins/router_basicauth/router_basicauth.o plugins/zergpool/zergpool.o plugins/redislog/redislog_plugin.o plugins/mongodblog/mongodblog_plugin.o plugins/router_rewrite/router_rewrite.o plugins/router_http/router_http.o plugins/logfile/logfile.o plugins/router_cache/router_cache.o plugins/rawrouter/rawrouter.o plugins/router_static/router_static.o plugins/sslrouter/sslrouter.o plugins/spooler/spooler_plugin.o plugins/cheaper_busyness/cheaper_busyness.o plugins/symcall/symcall_plugin.o plugins/transformation_tofile/tofile.o plugins/transformation_gzip/gzip.o plugins/transformation_chunked/chunked.o plugins/transformation_offload/offload.o plugins/router_memcached/router_memcached.o plugins/router_redis/router_redis.o plugins/router_hash/router_hash.o plugins/router_expires/expires.o plugins/router_metrics/plugin.o plugins/transformation_template/tt.o plugins/stats_pusher_socket/plugin.o -lpthread -lm -lz -L/usr/local/Cellar/pcre/8.34/lib -lpcre -lssl -lcrypto -lxml2 -ldl -framework CoreFoundation /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a

*** error linking uWSGI ***

----------------------------------------
Cleaning up...
Command /Users/mfcalvanese/dev/honeycomb/virtualenv/bin/python -c "import setuptools;__file__='/Users/mfcalvanese/dev/honeycomb/virtualenv/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/23/zdlx8fw12g97c49yy7b9422h0000gn/T/pip-dufNpN-record/install-record.txt --single-version-externally-managed --install-headers /Users/mfcalvanese/dev/honeycomb/virtualenv/include/site/python2.7 failed with error code 1 in /Users/mfcalvanese/dev/honeycomb/virtualenv/build/uwsgi
Storing complete log in /Users/mfcalvanese/.pip/pip.log
unbit commented 10 years ago

you probably have openssl 1.x headers but you are linking to a 0.9.x libssl. Make a search for libssl.*.dylib into your filesystem to get the correct path.

arianitu commented 10 years ago

@unbit That seems to be the issue.

Here's what I did to get it to work:

Find where my lib is:

find / -name "libssl.*.dylib" 2>/dev/null

For me, 1.x was installed in /usr/local and /usr/local/lib via homebrew. 0.9.x was installed by Xcode at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

I decided to use 1.x from homebrew:

sudo C_INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib pip install uwsgi
dustinfarris commented 9 years ago

Possible that the 1.x header got copied to /usr/local/lib somehow. Reinstalling homebrew openssl (which is keg only and won't (shouldn't) interfere with OS X header) cleaned up the issue:

brew uninstall openssl --force
brew install openssl
josiahruddell commented 8 years ago

@dustinfarris This fixed my issue as well. Thanks.

JDiPierro commented 8 years ago

Just ran into this problem and @dustinfarris's suggestion worked for me as well. Thanks mate! :heart:

ye commented 8 years ago

I took a different approach by specifying the LDFLAGS and CPPFLAGS and it built just fine as well!

In short, just run this: LDFLAGS=-L/usr/local/opt/openssl/lib CPPFLAGS=-I/usr/local/opt/openssl/include pip install sentry

$ brew info openssl
openssl: stable 1.0.2g (bottled) [keg-only]
SSL/TLS cryptography library
https://openssl.org/
/usr/local/Cellar/openssl/1.0.2e_1 (465 files, 11.9M)
  Poured from bottle
/usr/local/Cellar/openssl/1.0.2f (466 files, 11.9M)
  Poured from bottle
/usr/local/Cellar/openssl/1.0.2g (466 files, 11.9M) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/openssl.rb
==> Dependencies
Build: makedepend ✘
==> Options
--universal
    Build a universal binary
--without-test
    Skip build-time tests (not recommended)
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

$ LDFLAGS=-L/usr/local/opt/openssl/lib CPPFLAGS=-I/usr/local/opt/openssl/include pip install sentry
Collecting sentry
  Using cached sentry-8.2.4-py27-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): simplejson<3.9.0,>=3.2.0 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): pytest-django<2.10.0,>=2.9.1 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): django-picklefield<0.4.0,>=0.3.0 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): statsd<3.2.0,>=3.1.0 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): click<7.0,>=5.0 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): django-paging<0.3.0,>=0.2.5 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Collecting uwsgi<2.1.0,>2.0.0 (from sentry)
  Using cached uwsgi-2.0.12.tar.gz
Collecting hiredis<0.2.0,>=0.1.0 (from sentry)
Requirement already satisfied (use --upgrade to upgrade): django-templatetag-sugar>=0.1.0 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Collecting email-reply-parser<0.3.0,>=0.2.0 (from sentry)
Collecting ua-parser<0.7.0,>=0.6.1 (from sentry)
  Using cached ua_parser-0.6.1-py2.py3-none-any.whl
Collecting mock<1.1,>=0.8.0 (from sentry)
Collecting progressbar<2.4,>=2.2 (from sentry)
Collecting psycopg2<2.6.0,>=2.5.0 (from sentry)
Collecting petname<1.8,>=1.7 (from sentry)
Collecting Django<1.7,>=1.6.0 (from sentry)
  Using cached Django-1.6.11-py2.py3-none-any.whl
Collecting toronado<0.1.0,>=0.0.4 (from sentry)
Collecting djangorestframework<2.4.0,>=2.3.8 (from sentry)
  Using cached djangorestframework-2.3.14-py2.py3-none-any.whl
Collecting PyYAML<4.0,>=3.11 (from sentry)
Collecting django-crispy-forms<1.5.0,>=1.4.0 (from sentry)
Collecting raven>=5.3.0 (from sentry)
  Using cached raven-5.12.0-py2.py3-none-any.whl
Collecting django-recaptcha<1.1.0,>=1.0.4 (from sentry)
Collecting BeautifulSoup<3.3.0,>=3.2.1 (from sentry)
Collecting kombu==3.0.30 (from sentry)
  Using cached kombu-3.0.30-py2.py3-none-any.whl
Collecting django-sudo<1.3.0,>=1.2.0 (from sentry)
  Using cached django_sudo-1.2.1-py2.py3-none-any.whl
Collecting enum34<1.2.0,>=0.9.18 (from sentry)
Collecting python-dateutil<3.0.0,>=2.0.0 (from sentry)
  Using cached python_dateutil-2.5.2-py2.py3-none-any.whl
Collecting redis<2.11.0,>=2.10.3 (from sentry)
  Using cached redis-2.10.5-py2.py3-none-any.whl
Collecting lxml>=3.4.1 (from sentry)
Collecting rb<2.0.0,>=1.4.0 (from sentry)
  Using cached rb-1.4-py2-none-any.whl
Collecting setproctitle<1.2.0,>=1.1.7 (from sentry)
Collecting urllib3<1.15,>=1.14 (from sentry)
  Using cached urllib3-1.14-py2.py3-none-any.whl
Collecting six<2.0.0,>=1.6.0 (from sentry)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting cssutils<0.10.0,>=0.9.9 (from sentry)
Collecting django-social-auth<0.8.0,>=0.7.28 (from sentry)
Collecting South==1.0.1 (from sentry)
Requirement already satisfied (use --upgrade to upgrade): pytest<2.7.0,>=2.6.4 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from sentry)
Collecting requests[security]<2.10.0,>=2.9.1 (from sentry)
  Using cached requests-2.9.1-py2.py3-none-any.whl
Collecting django-bitfield<1.8.0,>=1.7.0 (from sentry)
  Using cached django_bitfield-1.7.1-py2.py3-none-any.whl
Collecting django-debug-toolbar<1.4.0,>=1.3.2 (from sentry)
  Using cached django_debug_toolbar-1.3.2-py2.py3-none-any.whl
Collecting ipaddr<2.2.0,>=2.1.11 (from sentry)
Collecting django-jsonfield<0.9.14,>=0.9.13 (from sentry)
Collecting exam>=0.5.1 (from sentry)
Collecting python-memcached<2.0.0,>=1.53 (from sentry)
  Using cached python_memcached-1.57-py2.py3-none-any.whl
Collecting celery<3.1.19,>=3.1.8 (from sentry)
  Using cached celery-3.1.18-py2.py3-none-any.whl
Collecting cssselect (from toronado<0.1.0,>=0.0.4->sentry)
Collecting contextlib2 (from raven>=5.3.0->sentry)
Collecting amqp<2.0,>=1.4.5 (from kombu==3.0.30->sentry)
  Using cached amqp-1.4.9-py2.py3-none-any.whl
Collecting anyjson>=0.3.3 (from kombu==3.0.30->sentry)
Collecting oauth2>=1.5.167 (from django-social-auth<0.8.0,>=0.7.28->sentry)
  Using cached oauth2-1.9.0.post1-py2.py3-none-any.whl
Collecting python-openid>=2.2 (from django-social-auth<0.8.0,>=0.7.28->sentry)
Requirement already satisfied (use --upgrade to upgrade): py>=1.4.25 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from pytest<2.7.0,>=2.6.4->sentry)
Collecting pyOpenSSL>=0.13 (from requests[security]<2.10.0,>=2.9.1->sentry)
  Using cached pyOpenSSL-16.0.0-py2.py3-none-any.whl
Collecting ndg-httpsclient (from requests[security]<2.10.0,>=2.9.1->sentry)
Collecting pyasn1 (from requests[security]<2.10.0,>=2.9.1->sentry)
  Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting sqlparse (from django-debug-toolbar<1.4.0,>=1.3.2->sentry)
Collecting pytz>dev (from celery<3.1.19,>=3.1.8->sentry)
  Using cached pytz-2016.3-py2.py3-none-any.whl
Collecting billiard<3.4,>=3.3.0.20 (from celery<3.1.19,>=3.1.8->sentry)
  Using cached billiard-3.3.0.23-cp27-none-macosx_10_6_intel.whl
Collecting httplib2 (from oauth2>=1.5.167->django-social-auth<0.8.0,>=0.7.28->sentry)
Collecting cryptography>=1.3 (from pyOpenSSL>=0.13->requests[security]<2.10.0,>=2.9.1->sentry)
  Using cached cryptography-1.3.1-cp27-cp27m-macosx_10_10_intel.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /Users/ye/.envs/sentry/lib/python2.7/site-packages (from cryptography>=1.3->pyOpenSSL>=0.13->requests[security]<2.10.0,>=2.9.1->sentry)
Collecting ipaddress (from cryptography>=1.3->pyOpenSSL>=0.13->requests[security]<2.10.0,>=2.9.1->sentry)
  Using cached ipaddress-1.0.16-py27-none-any.whl
Collecting idna>=2.0 (from cryptography>=1.3->pyOpenSSL>=0.13->requests[security]<2.10.0,>=2.9.1->sentry)
  Using cached idna-2.1-py2-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.3->pyOpenSSL>=0.13->requests[security]<2.10.0,>=2.9.1->sentry)
  Using cached cffi-1.5.2-cp27-cp27m-macosx_10_10_intel.whl
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3->pyOpenSSL>=0.13->requests[security]<2.10.0,>=2.9.1->sentry)
Building wheels for collected packages: uwsgi
  Running setup.py bdist_wheel for uwsgi ... done
  Stored in directory: /Users/ye/Library/Caches/pip/wheels/a4/7b/7c/8cbe2fe2c2b963173361cc18aa726f165dc4803effbb8195fc
Successfully built uwsgi
Installing collected packages: uwsgi, hiredis, email-reply-parser, ua-parser, mock, progressbar, psycopg2, petname, Django, lxml, cssutils, cssselect, toronado, djangorestframework, PyYAML, django-crispy-forms, contextlib2, raven, django-recaptcha, BeautifulSoup, amqp, anyjson, kombu, django-sudo, enum34, six, python-dateutil, redis, rb, setproctitle, urllib3, httplib2, oauth2, python-openid, django-social-auth, South, ipaddress, pyasn1, idna, pycparser, cffi, cryptography, pyOpenSSL, ndg-httpsclient, requests, django-bitfield, sqlparse, django-debug-toolbar, ipaddr, django-jsonfield, exam, python-memcached, pytz, billiard, celery, sentry
Successfully installed BeautifulSoup-3.2.1 Django-1.6.11 PyYAML-3.11 South-1.0.1 amqp-1.4.9 anyjson-0.3.3 billiard-3.3.0.23 celery-3.1.18 cffi-1.5.2 contextlib2-0.5.1 cryptography-1.3.1 cssselect-0.9.1 cssutils-0.9.10 django-bitfield-1.7.1 django-crispy-forms-1.4.0 django-debug-toolbar-1.3.2 django-jsonfield-0.9.13 django-recaptcha-1.0.5 django-social-auth-0.7.28 django-sudo-1.2.1 djangorestframework-2.3.14 email-reply-parser-0.2.0 enum34-1.1.2 exam-0.10.5 hiredis-0.1.6 httplib2-0.9.2 idna-2.1 ipaddr-2.1.11 ipaddress-1.0.16 kombu-3.0.30 lxml-3.6.0 mock-1.0.1 ndg-httpsclient-0.4.0 oauth2-1.9.0.post1 petname-1.7 progressbar-2.3 psycopg2-2.5.5 pyOpenSSL-16.0.0 pyasn1-0.1.9 pycparser-2.14 python-dateutil-2.5.2 python-memcached-1.57 python-openid-2.2.5 pytz-2016.3 raven-5.12.0 rb-1.4 redis-2.10.5 requests-2.9.1 sentry-8.2.4 setproctitle-1.1.9 six-1.10.0 sqlparse-0.1.19 toronado-0.0.7 ua-parser-0.6.1 urllib3-1.14 uwsgi-2.0.12
educalleja commented 8 years ago

I update my issue I found in Mac Os El Capitan. A solution taken from the suggestion of others.

 find / -name "libssl.*.dylib" 2>/dev/null
 /usr/lib/libssl.0.9.7.dylib
 /usr/lib/libssl.0.9.8.dylib
 /usr/local/Cellar/openssl/1.0.2d/lib/libssl.1.0.0.dylib    <--- Installed by homebrew
 /usr/local/lib/libssl.1.0.0.dylib

Then I built uwsgi as follows:

 sudo LDFLAGS=-L/usr/local/Cellar/openssl/1.0.2d/lib make
johnwheeler commented 8 years ago

I'm on OS X El Capitan. I tried all the suggestions here and various permutations. as of Aug 8 2016, I'm unable to get this to work. Has anything changed?

(env)Johns-iMac:2localhost jwheeler$ brew info openssl
openssl: stable 1.0.2h (bottled) [keg-only]
SSL/TLS cryptography library
https://openssl.org/
/usr/local/Cellar/openssl/1.0.2h_1 (1,691 files, 12M)
  Poured from bottle on 2016-08-08 at 13:21:52
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb
==> Dependencies
Build: makedepend ✘
==> Options
--universal
    Build a universal binary
--without-test
    Skip build-time tests (not recommended)
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

then I run:

LDFLAGS=-L/usr/local/opt/openssl/lib CPPFLAGS=-I/usr/local/opt/openssl/include pip install uwsgi -v

I get ssl=False

    ################# uWSGI configuration #################

    pcre = False
    kernel = Darwin
    malloc = libc
    execinfo = False
    ifaddrs = True
    ssl = False
    zlib = True
    locking = osx_spinlock
    plugin_dir = .
    timer = kqueue
    yaml = embedded
    json = False
    filemonitor = kqueue
    routing = False
    debug = False
    ucontext = False
    capabilities = False
    xml = libxml2
    event = kqueue
johnwheeler commented 8 years ago

I fixed my issue. I got totally lucky as it required an undocumented feature UWSGI_PROFILE_OVERRIDE. This seems like a bug as the build system is supposed to auto-detect support for openssl if you give it the headers location?

CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" UWSGI_PROFILE_OVERRIDE=ssl=true pip install uwsgi -Iv

Anyway, that will get uwsgi compiles with ssl=True on El Capitan