Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jul 2011 23:23:25 +0800
From:      Zhong Yubin <zhongyb@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   error in installation of uwsgi
Message-ID:  <CAOturPzToPO-EOSOYF6kPHFWP-qPvJ6GTWEG0DTSMvFKkZP51A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,  I'm going to setup machine for developing web application in python.
But some errors appear when I install uwsgi using ports. The following is
the first I met:

*cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers
-DUWSGI_BUILD_DATE="\"08 July 2011 23:09:03\"" -DUWSGI_HAS_IFADDRS
-DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE
-DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE
-DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION="\"0.9.8.1\""
-DUWSGI_VERSION_BASE="0" -DUWSGI_VERSION_MAJOR="9" -DUWSGI_VERSION_MINOR="8"
-DUWSGI_VERSION_REVISION="1" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC
-DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML
-DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/local/include/libxml2
-I/usr/local/include -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);"
-In file included from plugins/python/uwsgi_python.h:2,*
*                 from plugins/python/python_plugin.c:1:*
*/usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or
directory*
*o spooler.o spooler.c*
**** uWSGI compiling embedded plugins ****
*
*
After sort of searching in google, I used following command to solve this
problem.

*ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.7/pth.h*


Then I rebuilt this port again. The second error appeared.


*cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers
-DUWSGI_BUILD_DATE="\"08 July 2011 23:18:14\"" -DUWSGI_HAS_IFADDRS
-DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE
-DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE
-DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION="\"0.9.8.1\""
-DUWSGI_VERSION_BASE="0" -DUWSGI_VERSION_MAJOR="9" -DUWSGI_VERSION_MINOR="8"
-DUWSGI_VERSION_REVISION="1" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC
-DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML
-DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/local/include/libxml2
-I/usr/local/include -DUWSGI_XML -DUWSGI_XML_LIBXML2
-DUplugins/python/wsgi_handlers.c: In function 'uwsgi_Input_getline':*
*plugins/python/wsgi_handlers.c:54: error: 'struct wsgi_request' has no
member named 'pth_poll'*
*plugins/python/wsgi_handlers.c:60: error: 'struct wsgi_request' has no
member named 'pth_poll'*
*plugins/python/wsgi_handlers.c:63: error: 'struct wsgi_request' has no
member named 'pth_poll'*
*plugins/python/wsgi_handlers.c: In function 'uwsgi_Input_read':*
*plugins/python/wsgi_handlers.c:162: error: 'struct wsgi_request' has no
member named 'pth_poll'*
*plugins/python/wsgi_handlers.c:168: error: 'struct wsgi_request' has no
member named 'pth_poll'*
*plugins/python/wsgi_handlers.c: In function 'uwsgi_request_wsgi':*
*plugins/python/wsgi_handlers.c:584: error: 'struct wsgi_request' has no
member named 'pth_poll'*
*WSGI_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/usr/local/include/python2.7 -I/usr/local/include/python2.7 -o
plugins/python/pyloader.o plugins/python/pyloader.c*
*
*
I checked every file mentioned in the message, but nothing can not be find.
 Anybody can help me?


Cheers
Frank



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOturPzToPO-EOSOYF6kPHFWP-qPvJ6GTWEG0DTSMvFKkZP51A>