Hi Roberto,

  As I'm understanding, errors in compiling of Rack plugin for Ruby
1.9.2 (in uWSGI v0.9.7.2) are related to some refactoring changes that
were made before release but weren't propagated to plugins/rack/fiber.c

  I believe, that these errors were already fixed in 0.9.8-dev and will
be backported in 0.9.7.3. Is it so?

  JFYI, log of compiling of Rack plugin with errors:

% /usr/bin/ruby1.9.1 -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [i486-linux]

% UWSGICONFIG_RUBYPATH=/usr/bin/ruby1.9.1 python uwsgiconfig.py --plugin
plugins/rack
using profile: buildconf/default.ini
gcc -pthread -fPIC -shared -o ./rack_plugin.so -I. -O2 -Wall -Werror
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers
-DUWSGI_BUILD_DATE="\"12 May 2011 18:48:15\"" -DUWSGI_LOCK_USE_MUTEX
-DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD
-DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_EMBEDDED -DUWSGI_UDP
-DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI
-DUWSGI_YAML -DUWSGI_LDAP -DUWSGI_SNMP -DUWSGI_THREADING
-DUWSGI_SENDFILE -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2
-DUWSGI_PLUGIN_DIR=\".\" -DUWSGI_SPOOLER -fno-strict-aliasing -g -g -O2
-fPIC -DRUBY19 -Wno-unused-parameter -I/usr/include/ruby-1.9.1
-I/usr/lib/ruby/1.9.1/i486-linux
-I/usr/lib/ruby/1.9.1/i486-linux/i486-linux
-I/usr/include/ruby-1.9.1/i486-linux -L. -rdynamic -Wl,-export-dynamic
-L/usr/lib plugins/rack/rack_plugin.c plugins/rack/fiber.c -lpthread
-rdynamic -ldl -lldap -lxml2 -lruby-1.9.1
plugins/rack/rack_plugin.c: In function ‘rb_uwsgi_io_gets’:
plugins/rack/rack_plugin.c:149:23: warning: variable ‘wsgi_req’ set but
not used [-Wunused-but-set-variable]
plugins/rack/rack_plugin.c: In function ‘rb_uwsgi_io_each’:
plugins/rack/rack_plugin.c:158:23: warning: variable ‘wsgi_req’ set but
not used [-Wunused-but-set-variable]
plugins/rack/rack_plugin.c: In function ‘rb_uwsgi_io_read’:
plugins/rack/rack_plugin.c:171:9: warning: variable ‘len’ set but not
used [-Wunused-but-set-variable]
plugins/rack/fiber.c: In function ‘protected_fiber_loop’:
plugins/rack/fiber.c:81:17: error: implicit declaration of function
‘async_wait’ [-Werror=implicit-function-declaration]
plugins/rack/fiber.c:81:74: error: ‘struct uwsgi_server’ has no member
named ‘async_events’
plugins/rack/fiber.c:91:79: error: ‘struct uwsgi_server’ has no member
named ‘async_events’
plugins/rack/fiber.c:92:41: error: ‘struct uwsgi_server’ has no member
named ‘async_events’
plugins/rack/fiber.c:100:74: error: ‘struct uwsgi_server’ has no member
named ‘async_events’
plugins/rack/fiber.c:100:33: error: too many arguments to function
‘find_wsgi_req_by_fd’
plugins/rack/../../uwsgi.h:1361:22: note: declared here
plugins/rack/fiber.c:106:41: error: implicit declaration of function
‘async_del’ [-Werror=implicit-function-declaration]
plugins/rack/fiber.c:106:82: error: ‘struct uwsgi_server’ has no member
named ‘async_events’
plugins/rack/fiber.c:106:114: error: ‘struct uwsgi_server’ has no member
named ‘async_events’
cc1: all warnings being treated as errors

*** unable to build rack plugin ***
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to