Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2011 08:35:09 +0200
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        wen@FreeBSD.org
Cc:        freebsd-ports@freebsd.org
Subject:   Re: graphics/qgis does not build on 9.0-BETA1
Message-ID:  <4E43781D.7030703@gwdg.de>
In-Reply-To: <4E4376E4.5070509@gwdg.de>
References:  <4E4376E4.5070509@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Sorry for answering myself. I just detected a possible solution:

----------------------------------------
--- 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>
----------------------------------------


At least for me this works.



Am 11.08.2011 08:29 (UTC+1) schrieb Rainer Hurling:
> After the latest patches to make the GRASS plugin work QGIS does not
> build any more on 9.0-BETA1.
>
>
> ----------------------------------------
> [..snip..]
> [ 94%] Building CXX object
> src/plugins/grass/CMakeFiles/grassplugin.dir/qtermwidget/kpty.cpp.o
> /usr/ports/graphics/qgis/work/qgis-1.7.0/src/plugins/grass/qtermwidget/kpty.cpp:85:19:
> error: utmp.h: No such file or directory
> /usr/ports/graphics/qgis/work/qgis-1.7.0/src/plugins/grass/qtermwidget/kpty.cpp:
> In member function 'void KPty::login(const char*, const char*)':
> /usr/ports/graphics/qgis/work/qgis-1.7.0/src/plugins/grass/qtermwidget/kpty.cpp:449:
> error: aggregate 'utmp l_struct' has incomplete type and cannot be defined
> /usr/ports/graphics/qgis/work/qgis-1.7.0/src/plugins/grass/qtermwidget/kpty.cpp:488:
> error: '::login' has not been declared
> /usr/ports/graphics/qgis/work/qgis-1.7.0/src/plugins/grass/qtermwidget/kpty.cpp:
> In member function 'void KPty::logout()':
> /usr/ports/graphics/qgis/work/qgis-1.7.0/src/plugins/grass/qtermwidget/kpty.cpp:541:
> error: '::logout' has not been declared
> *** Error code 1
> Stop in /usr/ports/graphics/qgis/work/qgis-1.7.0.
> ----------------------------------------
>
>
> Obviously the change from 'utmp.h' to 'utmpx.h' is not solved for this
> plugin?
>
> It seems it is necessary but not sufficient to define HAVE_UTMPX in
> src/plugins/grass/qtermwidget/kpty.cpp (for example at line 51).
>
> Rainer Hurling



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E43781D.7030703>