QGIS With Grass Plugin doesn't build (kpty.cpp)
Rainer Hurling
rhurlin at gwdg.de
Fri May 17 09:42:35 UTC 2013
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
More information about the freebsd-ports
mailing list