From owner-freebsd-ports@FreeBSD.ORG Thu Aug 11 06:35:10 2011 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 CD256106564A for ; Thu, 11 Aug 2011 06:35:10 +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 61BF48FC12 for ; Thu, 11 Aug 2011 06:35:10 +0000 (UTC) Received: from wald.nfv.gwdg.de ([134.76.242.31] helo=pc028.nfv) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QrOrF-0004fp-Cn; Thu, 11 Aug 2011 08:35:09 +0200 Message-ID: <4E43781D.7030703@gwdg.de> Date: Thu, 11 Aug 2011 08:35:09 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110714 Thunderbird/5.0 MIME-Version: 1.0 To: wen@FreeBSD.org References: <4E4376E4.5070509@gwdg.de> In-Reply-To: <4E4376E4.5070509@gwdg.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-ports@freebsd.org Subject: Re: graphics/qgis does not build on 9.0-BETA1 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: Thu, 11 Aug 2011 06:35:10 -0000 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 ---------------------------------------- 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