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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to