unbit / uwsgi

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

Legion not compiled in version 1.9.20 #463

Closed Sirtea closed 10 years ago

Sirtea commented 10 years ago

Hi,

I have been trying to play a little bit with legion subsystem, but I had no luck, even with documentation examples. After trying to figure out the reason, I realized that --legion is not recognized. Looking at build log, is not linked in binary. It's not even compiled in core dir. I have used "core" build config.

¿which setting must I use in the buildconfig to have the legion working?

Thanks

gerard@eridanus:~/Desktop/uwsgi-1.9.20$ ls core/
alarm.c       cron.c        fsmon.o    logging.c        mule.o         reader.c       spooler.c          utils.o
alarm.o       cron.o        gateway.c  logging.o        notify.c       reader.o       spooler.o          uwsgi.c
async.c       daemons.c     gateway.o  loop.c           notify.o       regexp.c       ssl.c              uwsgi.o
async.o       daemons.o     hash.c     loop.o           offload.c      routing.c      static.c           websockets.c
buffer.c      dot_h.c       hash.o     master.c         offload.o      rpc.c          static.o           websockets.o
buffer.o      dot_h.o       hooks.c    master_checks.c  plugins.c      rpc.o          stats.c            writer.c
cache.c       emperor.c     hooks.o    master_checks.o  plugins.o      sendfile.c     stats.o            writer.o
cache.o       emperor.o     ini.c      master_events.c  progress.c     sendfile.o     storage.c          xmlconf.c
chunked.c     errors.c      ini.o      master_events.o  progress.o     setup_utils.c  strings.c          xmlconf.o
chunked.o     errors.o      init.c     master.o         protocol.c     setup_utils.o  strings.o          yaml.c
clang_fake.c  event.c       init.o     master_utils.c   protocol.o     signal.c       subscription.c     yaml.o
clock.c       event.o       io.c       master_utils.o   querystring.c  signal.o       subscription.o     zeus.c
clock.o       exceptions.c  io.o       metrics.c        querystring.o  skel.c         timebomb.c         zlib.c
config.c      exceptions.o  json.c     metrics.o        queue.c        snmp.c         timebomb.o
config.o      fifo.c        legion.c   mount.c          queue.o        snmp.o         transformations.c
cookie.c      fifo.o        lock.c     mount.o          rb_timers.c    socket.c       transformations.o
cookie.o      fsmon.c       lock.o     mule.c           rb_timers.o    socket.o       utils.c
gerard@eridanus:~/Desktop/uwsgi-1.9.20$ 
prymitive commented 10 years ago

Do you have openssl headers installed? They are required for legion. AFAIR it's libssl-dev on debian/ubuntu

2013/11/20 Sirtea notifications@github.com

Hi,

I have been trying to play a little bit with legion subsystem, but I had no luck, even with documentation examples. After trying to figure out the reason, I realized that --legion is not recognized. Looking at build log, is not linked in binary. It's not even compiled in core dir. I have used "core" build config.

¿which setting must I use in the buildconfig to have the legion working?

Thanks

gerard@eridanus:~/Desktop/uwsgi-1.9.20$ ls core/ alarm.c cron.c fsmon.o logging.c mule.o reader.c spooler.c utils.o alarm.o cron.o gateway.c logging.o notify.c reader.o spooler.o uwsgi.c async.c daemons.c gateway.o loop.c notify.o regexp.c ssl.c uwsgi.o async.o daemons.o hash.c loop.o offload.c routing.c static.c websockets.c buffer.c dot_h.c hash.o master.c offload.o rpc.c static.o websockets.o buffer.o dot_h.o hooks.c master_checks.c plugins.c rpc.o stats.c writer.c cache.c emperor.c hooks.o master_checks.o plugins.o sendfile.c stats.o writer.o cache.o emperor.o ini.c master_events.c progress.c sendfile.o storage.c xmlconf.c chunked.c errors.c ini.o master_events.o progress.o setup_utils.c strings.c xmlconf.o chunked.o errors.o init.c master.o protocol.c setup_utils.o strings.o yaml.c clang_fake.c event.c init.o master_utils.c protocol.o signal.c subscription.c yaml.o clock.c event.o io.c master_utils.o querystring.c signal.o subscription.o zeus.c clock.o exceptions.c io.o metrics.c querystring.o skel.c timebomb.c zlib.c config.c exceptions.o json.c metrics.o queue.c snmp.c timebomb.o config.o fifo.c legion.c mount.c queue.o snmp.o transformations.c cookie.c fifo.o lock.c mount.o rb_timers.c socket.c transformations.o cookie.o fsmon.c lock.o mule.c rb_timers.o socket.o utils.c gerard@eridanus:~/Desktop/uwsgi-1.9.20$

— Reply to this email directly or view it on GitHubhttps://github.com/unbit/uwsgi/issues/463 .

Łukasz Mierzwa

Sirtea commented 10 years ago

That's the point; after 3 days fighting the building system, you put me in the right track.

With development version of openssl (debian: libssl-dev, centos: openssl-devel), legion has been compiled and now the configuration is accepted.

Building documentation (packages needed, options in profiles) could be a little bit improved, though

Thank you!