That works, except it's needed in a couple more places. With this patch it
builds just fine:

diff -r c14edbf1d660 plugins/python/pump_subhandler.c
--- a/plugins/python/pump_subhandler.c Wed Aug 03 16:00:35 2011 +0200
+++ b/plugins/python/pump_subhandler.c Wed Aug 03 15:34:15 2011 +0000
@@ -300,7 +300,7 @@
  }

  wsgi_req->socket->proto_write(wsgi_req, "\r\n", 2);
- Py_INCREF(wsgi_req->async_placeholder);
+ Py_INCREF((PyObject *)wsgi_req->async_placeholder);

  if (PyString_Check((PyObject *)wsgi_req->async_placeholder)) {
                  if ((wsize = wsgi_req->socket->proto_write(wsgi_req,
PyString_AsString(wsgi_req->async_placeholder),
PyString_Size(wsgi_req->async_placeholder))) < 0) {
diff -r c14edbf1d660 plugins/python/web3_subhandler.c
--- a/plugins/python/web3_subhandler.c Wed Aug 03 16:00:35 2011 +0200
+++ b/plugins/python/web3_subhandler.c Wed Aug 03 15:34:15 2011 +0000
@@ -149,7 +149,7 @@


  wsgi_req->async_placeholder = PyTuple_GetItem((PyObject
*)wsgi_req->async_result, 0);
- Py_INCREF(wsgi_req->async_placeholder);
+ Py_INCREF((PyObject *)wsgi_req->async_placeholder);

  PyObject *spit_args = PyTuple_New(2);


Thanks,

- Gulli



On Wed, Aug 3, 2011 at 1:12 PM, Roberto De Ioris <[email protected]> wrote:

>
> Il giorno 03/ago/2011, alle ore 14:26, Gunnlaugur Thor Briem ha scritto:
>
> > Hi,
> >
> > As of revision 1339 http://projects.unbit.it/hg/uwsgi/rev/9fb2b23972a5 ,
> uwsgi fails to build with Py25 for me under Mac OS X 10.6.
> >
> > The last revision that builds successfully is 1338. In 1339 onwards, the
> build failure is:
> >
> > $ make -f Makefile.Py25
> > ...
> > /usr/bin/gcc-4.2 -c -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="\"03 August 2011
> 12:17:08\"" -DUWSGI_HAS_IFADDRS -mmacosx-version-min=10.5
> -DUWSGI_LOCK_USE_OSX_SPINLOCK -DUWSGI_EVENT_USE_KQUEUE
> -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE
> -DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_UUID -DUWSGI_VERSION="\"0.9.8.3\""
> -DUWSGI_VERSION_BASE="0" -DUWSGI_VERSION_MAJOR="9" -DUWSGI_VERSION_MINOR="8"
> -DUWSGI_VERSION_REVISION="3" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC
> -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML
> -DUWSGI_LDAP -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE
> -I/opt/local/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3
> -DUWSGI_PLUGIN_DIR=\".\" -DUWSGI_SPOOLER
> -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen);"
> -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen);"
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -o plugins/python/pyloader.o plugins/python/pyloader.c
> > cc1: warnings being treated as errors
> > plugins/python/pyloader.c: In function ‘init_uwsgi_app’:
> > plugins/python/pyloader.c:308: warning: dereferencing ‘void *’ pointer
> > plugins/python/pyloader.c:308: error: request for member ‘ob_refcnt’ in
> something not a structure or union
> > plugins/python/pyloader.c:311: warning: dereferencing ‘void *’ pointer
> > plugins/python/pyloader.c:311: error: request for member ‘ob_refcnt’ in
> something not a structure or union
> > plugins/python/pyloader.c:314: warning: dereferencing ‘void *’ pointer
> > plugins/python/pyloader.c:314: error: request for member ‘ob_refcnt’ in
> something not a structure or union
> > make: *** [all] Error 1
>
>
>
> should be fixed in latest tip
>
>
> --
> Roberto De Ioris
> http://unbit.it
> JID: [email protected]
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to