From owner-freebsd-ports@FreeBSD.ORG Mon Jan 9 15:31:36 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED22D106564A; Mon, 9 Jan 2012 15:31:36 +0000 (UTC) (envelope-from roberto@unbit.it) Received: from smtp.unbit.it (nocturne.unbit.it [81.174.68.18]) by mx1.freebsd.org (Postfix) with ESMTP id AB7AD8FC13; Mon, 9 Jan 2012 15:31:36 +0000 (UTC) Received: from [192.168.173.19] (93-58-162-185.ip159.fastwebnet.it [93.58.162.185]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.unbit.it (Postfix) with ESMTPSA id 2D228160232CD; Mon, 9 Jan 2012 16:09:18 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Roberto De Ioris In-Reply-To: Date: Mon, 9 Jan 2012 16:13:01 +0100 Content-Transfer-Encoding: 7bit Message-Id: <0683987E-9D15-41BD-8CFB-D76F693A89E1@unbit.it> References: To: Maxim Khitrov X-Mailer: Apple Mail (2.1251.1) Cc: Daniel Gerzo , freebsd-ports@freebsd.org Subject: Re: [patch] Problem building www/uwsgi on FreeBSD 9 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 15:31:37 -0000 Il giorno 08/gen/2012, alle ore 21:43, Maxim Khitrov ha scritto: > Hi all, > > I'm not sure whether this is a FreeBSD or uwsgi problem, but the > current port (uwsgi 1.0) isn't compiling on FreeBSD 9.0-RELEASE amd64 > for the following reasons: > > 1. In uwsgiconfig.py:534 uwsgi checks for the existence of > sys/capability.h. This header isn't present on my 7.x or 8.x systems, > but it is there in FreeBSD 9. > > 2. If the check succeeds, UWSGI_CAP is defined for compilation. > > 3. In uwsgi.h:1169 the presence of UWSGI_CAP causes "cap_value_t > *cap;" to be defined. > > 4. The FreeBSD version of sys/capability.h does not define cap_value_t > (which seems to be a simple int typedef on Linux). > > The net effect of this is a long series of errors when compiling utils.c: FreeBSD9 capabilities are completely different from linux one. I will try to make a port, otherwise i will enable to check only for linux. -- Roberto De Ioris http://unbit.it JID: roberto@jabber.unbit.it