From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 15:54:39 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABDCB1065673 for ; Fri, 8 Jul 2011 15:54:39 +0000 (UTC) (envelope-from zhongyb@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7AF4C8FC1B for ; Fri, 8 Jul 2011 15:54:39 +0000 (UTC) Received: by iyb11 with SMTP id 11so2504758iyb.13 for ; Fri, 08 Jul 2011 08:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=K3DT7BayQrl3y+u6KTBFJFxcoHWH9FOuc3Y81T2bOHg=; b=vAhbMP2L1Eg9LmfSODEOWAvz+VxdZuUzdfZ8Ev18PDqn991rm6XCIBIouqsbhdbrWt y1ummsP2DRTYg2rE88YzQ2PgzBC+fcXFbj+fAvmQazfO0VwyLFdte33J7uaCBU5tQQRb mn6YFdzdUIdZ4H+ZD1/73tgFAomI2pY7uFsGo= MIME-Version: 1.0 Received: by 10.43.50.1 with SMTP id vc1mr2306356icb.435.1310138606195; Fri, 08 Jul 2011 08:23:26 -0700 (PDT) Received: by 10.42.228.71 with HTTP; Fri, 8 Jul 2011 08:23:25 -0700 (PDT) Date: Fri, 8 Jul 2011 23:23:25 +0800 Message-ID: From: Zhong Yubin To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: error in installation of uwsgi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 15:54:39 -0000 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