That fixed this issue. Thanks for a quick fix.

W dniu 11.02.2012 14:23, Roberto De Ioris pisze:
Hi,

I've created rpm packages for CentOS 5.7 (I will post spec file&  rpms
when I finally have some free time) and had trouble compiling rack
plugin because of -Wall / -Werror flag.

These CFLAGS come from rpmbuild optflags

CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
no change if I remove them.

Complete CFLAGS when compiling:

CFLAGS: -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -Wextra -Wno-unused-parameter
-Wno-missing-field-initializers -DUWSGI_BUILD_DATE="\"11 February 2012
12:16:58\"" -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_MUTEX
-DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_NONE
-DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_EMBEDDED -DUWSGI_UDP
-DUWSGI_PCRE -DUWSGI_CAP -DUWSGI_UUID -DUWSGI_VERSION="\"1.0.3\""
-DUWSGI_VERSION_BASE="1" -DUWSGI_VERSION_MAJOR="0"
-DUWSGI_VERSION_MINOR="3" -DUWSGI_VERSION_REVISION="0"
-DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC -DUWSGI_MULTICAST
-DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML -DUWSGI_LIBYAML
-DUWSGI_JSON -DUWSGI_LDAP -DUWSGI_SNMP -DUWSGI_THREADING
-DUWSGI_SENDFILE -I/usr/include/libxml2 -DUWSGI_XML
-DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3
-DUWSGI_PLUGIN_DIR=\"/usr/lib64/uwsgi\" -DUWSGI_SPOOLER
It took me a bit, but i just realized that -Wall override all of the
previously defined options. In uWSGI the -Wall is the the first CFLAGS,
but ruby add one on its own. As cflags in uwsgiconfig.py are lists, i have
put them under set().

I have committed it on uwsgi-1.0 mercurial repository.

Let me know if it works for you


--
Pozdrawiam,

Łukasz Czuja

Programista / Analityk / Architekt IT

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to