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

Mac OS X 10.6.8 (arch x86_64)
Python 2.5.6 installed from Macports
GCC: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot
3)

Problem is only under 2.5, under 2.6 it builds just fine.

Presumably relevant is that in 2.6 headers the Py_INCREF macro is defined
as:

#define Py_INCREF(op) (                         \
    _Py_INC_REFTOTAL  _Py_REF_DEBUG_COMMA       \
    ((PyObject*)(op))->ob_refcnt++)

while in 2.5 headers it is defined as:

#define Py_INCREF(op) ( \
_Py_INC_REFTOTAL  _Py_REF_DEBUG_COMMA \
 (op)->ob_refcnt++)

Regards,

- Gulli


Freeh Sophia
Marketing GmbH
Emanuelstr. 3,
10317 Berlin
Deutschland
Telefon: +49 (33) 5310967
Email: [email protected]
Site: http://flug.airego.de/
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to