Date: Fri, 17 May 2013 11:42:21 +0200 From: Rainer Hurling <rhurlin@gwdg.de> To: =?ISO-8859-1?Q?Pierre_St=E9vens?= <pierre@geobsd.com> Cc: freebsd-ports@freebsd.org Subject: Re: QGIS With Grass Plugin doesn't build (kpty.cpp) Message-ID: <5195FB7D.8040002@gwdg.de> In-Reply-To: <20130517083358.GB63515@geobsd.com> References: <20130517083358.GB63515@geobsd.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <utmp.h>. > > - 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 <utmp.h> 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 <sys/types.h> ---------------------------------------- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5195FB7D.8040002>