From owner-freebsd-questions@FreeBSD.ORG Wed Oct 10 16:37:30 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA39416A417 for ; Wed, 10 Oct 2007 16:37:30 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 44B4A13C44B for ; Wed, 10 Oct 2007 16:37:25 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 5C3811CDFC; Wed, 10 Oct 2007 08:37:24 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Wed, 10 Oct 2007 18:37:21 +0200 User-Agent: KMail/1.9.7 References: <20071009120010.vuokswuf9k4s440k@newwebmail.jnielsen.net> <20071009120453.mmu9p5hdwkc8ws84@newwebmail.jnielsen.net> In-Reply-To: <20071009120453.mmu9p5hdwkc8ws84@newwebmail.jnielsen.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710101837.22580.fbsd.questions@rachie.is-a-geek.net> Cc: kde@freebsd.org Subject: Re: Problem compiling kdegraphics (exr problem?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2007 16:37:30 -0000 On Tuesday 09 October 2007 18:04:53 John Nielsen wrote: > Quoting John Nielsen : > > Quoting Will Wainwright : > >> I'm having some trouble getting kdegraphics to update. > >> > >> I use portmanager to keep my ports updated. Usually this works well, but > >> the past couple of days portmanager did have problems with the latest > >> OpenEXR update. > >> > >> As to my problem with kdegraphics, here is what I know. > >> > >> It compiles until this point: > >> > >> gmake[3]: Entering directory > >> `/usr/ports/graphics/kdegraphics3/work/kdegraphics-3.5.7/kfile-plugins/e > >>xr' /usr/local/bin/moc ./kfile_exr.h -o kfile_exr.moc > >> if /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ > >> -DHAVE_CONFIG_H -I. -I. -I../.. -Drestrict= -I/usr/local/include > >> -I/usr/local/include -I/usr/local/include/OpenEXR -D_THREAD_SAFE > >> -pthread -DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/local/include > >> -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE -Wno-long-long -Wundef > >> -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 > >> -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions > >> -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST > >> -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -MT > >> kfile_exr.lo -MD -MP -MF > >> ".deps/kfile_exr.Tpo" -c -o kfile_exr.lo kfile_exr.cpp; \ > >> then mv -f ".deps/kfile_exr.Tpo" ".deps/kfile_exr.Plo"; else rm > >> -f ".deps/kfile_exr.Tpo"; exit 1; fi > >> kfile_exr.cpp: In member function `virtual bool > >> KExrPlugin::readInfo(KFileMetaInfo&, uint)': > >> kfile_exr.cpp:229: error: `hasutcOffset' was not declared in this scope > >> kfile_exr.cpp:229: warning: unused variable 'hasutcOffset' > >> kfile_exr.cpp: At global scope: > >> kfile_exr.cpp:165: warning: unused parameter 'what' > >> gmake[3]: *** [kfile_exr.lo] Error 1 > >> gmake[3]: Leaving directory > >> `/usr/ports/graphics/kdegraphics3/work/kdegraphics-3.5.7/kfile-plugins/e > >>xr' gmake[2]: *** [all-recursive] Error 1 > >> gmake[2]: Leaving directory > >> `/usr/ports/graphics/kdegraphics3/work/kdegraphics-3.5.7/kfile-plugins' > >> gmake[1]: *** [all-recursive] Error 1 > >> gmake[1]: Leaving directory > >> `/usr/ports/graphics/kdegraphics3/work/kdegraphics-3.5.7' > >> gmake: *** [all] Error 2 > >> *** Error code 2 > >> > >> Stop in /usr/ports/graphics/kdegraphics3. > >> *** Error code 1 > >> > >> At which point the build fails. > >> > >> I'm not sure if this is a problem with KDE or if there is still > >> something wrong with my install of OpenEXR. > >> > >> Any advice as to how to proceed? > > > > I ran in to this myself last night. I corrected it by taking the > > following steps. I use portupgrade so I won't give specific commands: > > > > Make sure your ports tree is up-to-date. > > Force-uninstall graphics/OpenEXR. > > Force-reinstall graphics/ilmbase. > > Re-install (manually if necessary) graphics/OpenEXR. > > Fix up dependencies. > > Continue with other upgrades. > > Or better yet, follow the (similar but not identical) directions in > ports/UPDATING, which I didn't bother to check recently until now. Well, it's weird that fixed it for you, because kdegraphics needs to be patched. Here's the work-around: root@smoochies /usr/ports/graphics/kdegraphics3 # fetch -o files/patch-kfileplugins-kexr.cpp http://su-se.lunar-linux.org/lunar/patches/kdegraphics-3.5.7-openexr-1.6.0.patch files/patch-kfileplugins-kexr.cpp 100% of 830 B 4052 kBps root@smoochies /usr/ports/graphics/kdegraphics3 # perl -pi -e 's#branches/KDE/3.5/kdegraphics/##' \ files/patch-kfileplugins-kexr.cpp root@smoochies /usr/ports/graphics/kdegraphics3 # make configure && (cd `make -V WRKDIR`/`make -V PORTNAME`-`make -V PORTVERSION`/kfile-plugins/exr && gmake clean all >/dev/null) kfile_exr.cpp:166: warning: unused parameter 'what' -- Mel