From owner-freebsd-ports@FreeBSD.ORG Fri Jun 19 02:53:50 2015 Return-Path: Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F91B4CE for ; Fri, 19 Jun 2015 02:53:50 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from hermes.heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 15D90E6F for ; Fri, 19 Jun 2015 02:53:49 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from [10.0.5.3] (ewsw01.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.6/8.13.6) with ESMTP id t5J2qUJk002845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 19 Jun 2015 12:52:41 +1000 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Message-ID: <55838410.5050504@heuristicsystems.com.au> Date: Fri, 19 Jun 2015 12:53:04 +1000 From: Dewayne Geraghty User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Kevin Oberman , "Dr. Peter Voigt" CC: FreeBSD Ports ML Subject: Re: cmake: missing library /usr/local/lib/libjsoncpp.so References: <20150618083129.25327b34@kirk.drpetervoigt.private> <20150618144529.04ee34f3@kirk.drpetervoigt.private> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2015 02:53:50 -0000 On 19/06/2015 8:16 AM, Kevin Oberman wrote: > On Thu, Jun 18, 2015 at 5:45 AM, Dr. Peter Voigt wrote: > >> Sorry for incomplete subject. >> >> >> On Thu, 18 Jun 2015 08:31:29 +0200 >> "Dr. Peter Voigt" wrote: >> >>> When building latest devel/cmake on 10.1-RELEASE-p13 (amd64) >>> >>> # portmaster --no-confirm --no-term-title -D -G cmake >>> >>> there is an error about missing library /usr/local/lib/libjsoncpp.so >>> >>> ... >>> >>> ===> Installing for cmake-3.2.3 >>> ===> Checking if cmake already installed >>> ===> Registering installation for cmake-3.2.3 as automatic >>> (cmake-3.2.3) /usr/ports/devel/cmake/work/stage//usr/local/bin/ccmake >>> - required shared library /usr/local/lib/libjsoncpp.so not found >>> (cmake-3.2.3) /usr/ports/devel/cmake/work/stage//usr/local/bin/cmake - >>> required shared library /usr/local/lib/libjsoncpp.so not found >>> (cmake-3.2.3) /usr/ports/devel/cmake/work/stage//usr/local/bin/cpack - >>> required shared library /usr/local/lib/libjsoncpp.so not found >>> (cmake-3.2.3) /usr/ports/devel/cmake/work/stage//usr/local/bin/ctest - >>> required shared library /usr/local/lib/libjsoncpp.so not found >>> Installing cmake-3.2.3... >>> >>> ===>>> Re-installation of cmake-3.2.3 succeeded >>> >>> ===>>> The following actions were performed: >>> Re-installation of cmake-modules-3.2.3 >>> Re-installation of cmake-3.2.3 >>> >>> However: >>> >>> # ls -l /usr/local/lib/libjsoncpp* >>> -rw-r--r-- 1 root wheel 535316 Jun 17 >>> 20:22 /usr/local/lib/libjsoncpp.a lrwxr-xr-x 1 root wheel 15 Jun >>> 17 20:22 /usr/local/lib/libjsoncpp.so -> libjsoncpp.so.0 -r--r--r-- 1 >>> root wheel 348376 Jun 17 20:22 /usr/local/lib/libjsoncpp.so.0 >>> >>> Build finished just fine but during installation registration of >>> shared libraries failed. This can be verified with pkg: >>> >>> # pkg check -Bnv cmake >>> [1/1] Checking cmake-3.2.3: shared >>> libraries...(cmake-3.2.3) /usr/local/bin/ccmake - required shared >>> library /usr/local/lib/libjsoncpp.so not found >>> (cmake-3.2.3) /usr/local/bin/cmake - required shared >>> library /usr/local/lib/libjsoncpp.so not found >>> (cmake-3.2.3) /usr/local/bin/cpack - required shared >>> library /usr/local/lib/libjsoncpp.so not found >>> (cmake-3.2.3) /usr/local/bin/ctest - required shared >>> library /usr/local/lib/libjsoncpp.so not found done >>> >>> Is this a known issue or should I create a PR? >>> >>> Peter >>> _______________________________________________ >>> freebsd-ports@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >>> To unsubscribe, send any mail to >>> "freebsd-ports-unsubscribe@freebsd.org" >> > Peter, > > Very odd. You confirm that the file is present, but pkg does not seem to > know it. I can confirm seeing the same thing, but it is a bogus error as > rtld can successfully load and run cmake and ldd shows it as resolving > correctly.. Further, the pkg db does know about it as: > # pkg which /usr/local/lib/libjsoncpp.so > /usr/local/lib/libjsoncpp.so was installed by package jsoncpp-0.6.0.r2_1 > > It looks like a bug and it "affects some people", but it looks most likely > to be a pkg issue of some sort as the sharable is present and rtld seems > happy with it. > -- > Kevin Oberman, Network Engineer, Retired > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > Confirmed on (amd64) 10.1S built on 14th June. Unfortunately on the 10.1S i386 using either clang or gcc; cmake 3.2.3 doesn't build. clang /var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Source/cmGlobalGenerator.cxx:(.text+0x1237d): undefined reference to `Json::operator<<(std::__1::basic_ostream >&, Json::Value const&)' c++: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 And using lang/gcc /usr/local/libexec/ccache/gcc48 -O2 -pipe -g0 -ggdb0 -DSTRIP_FBSDID -march=prescott -mtune=prescott -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -I/var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk -I/var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Source -I/var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk -DKWSYS_NAMESPACE=cmsys -c /var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Source/kwsys/System.c -o System.o --- cmGlobalNinjaGenerator.o --- In file included from /var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Source/cmGlobalNinjaGenerator.cxx:14:0: /var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Source/cmGeneratorExpressionEvaluationFile.h:39:64: error: 'mode_t' has not been declared std::map &outputFiles, mode_t perm); ^ *** [cmGlobalNinjaGenerator.o] Error code 1 make[1]: stopped in /var/ports/usr/ports/devel/cmake/work/cmake-3.2.3/Bootstrap.cmk 1 error The build also fails after the ccache, WRKDIRPREFIX are cleared. A revert to cmake and cmake-modules to 3.1.3 kept the train going. Very odd as mode_t is defined in /usr/include/* Using: pkg 1.5.4, portmaster-3.17.7 Regards, Dewayne.