From owner-freebsd-ports@FreeBSD.ORG Fri May 17 09:42:35 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 75FAE77B for ; Fri, 17 May 2013 09:42:35 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF1481 for ; Fri, 17 May 2013 09:42:34 +0000 (UTC) Received: from gate.nw-fva.de ([134.76.242.1] helo=pc028.nfv) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UdHBB-00037N-5H; Fri, 17 May 2013 11:42:25 +0200 Message-ID: <5195FB7D.8040002@gwdg.de> Date: Fri, 17 May 2013 11:42:21 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130516 Thunderbird/17.0.6 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Pierre_St=E9vens?= Subject: Re: QGIS With Grass Plugin doesn't build (kpty.cpp) References: <20130517083358.GB63515@geobsd.com> In-Reply-To: <20130517083358.GB63515@geobsd.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 09:42:35 -0000 Am 17.05.2013 10:33 (UTC+1) schrieb Pierre Stévens: > Have you Qgis with Grass plugin on your v9.1 FreeBSD machine ? > > - Problem come from file : > graphics/qgis/work/qgis-1.8.0/src/plugins/grass/qtermwidget/kpty.cpp > > - On line 85, it tries to include . > > - Thanks to v9 release notes : "The utmp(5) user accounting database has > been replaced by utmpx(3). User accounting utilities will now use utmpx > database files exclusively." > > - On line 51, I've tried to insert "#define HAVE_UTMPX" but it still > trying to include but, new fact, another error appears : > kpty.cpp:456: error: 'struct utmpx' has no member named 'ut_name' > > - Function KPty::login can not been declared. This is a longstandig issue with QGIs on FreeBSD now[1]. For me it helped to use HAVE_UTEMPTER (instead of HAVE_UTMPX). The diff could be something like this: ---------------------------------------- --- src/plugins/grass/qtermwidget/kpty.cpp.orig 2011-06-05 13:59:48.000000000 +0200 +++ src/plugins/grass/qtermwidget/kpty.cpp 2011-08-11 08:31:00.000000000 +0200 @@ -48,6 +48,7 @@ #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #define HAVE_LOGIN #define HAVE_LIBUTIL_H +#define HAVE_UTEMPTER #endif #include ---------------------------------------- HTH, Rainer > > Resources : > > https://github.com/qgis/Quantum-GIS/blob/master/src/plugins/grass/qtermwidget/kpty.cpp > http://80386.nl/unix/utmpx/ [1] http://lists.freebsd.org/pipermail/freebsd-ports/2011-August/069195.html