From owner-freebsd-ports@FreeBSD.ORG Thu Jun 18 22:16:44 2015 Return-Path: Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD5DEB3D for ; Thu, 18 Jun 2015 22:16:44 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F8A7603 for ; Thu, 18 Jun 2015 22:16:44 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by oiyy130 with SMTP id y130so50805544oiy.0 for ; Thu, 18 Jun 2015 15:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=x7I2hy3NjXviLTKY3web+cqC0oPZmlPm3uMOB8AQd84=; b=w0BJLaMimwunHwQGGaUhLHVn6vfcoyRl/N1Mt6PTzF6r3VinUSSzNSNeRjLXUfa/Z8 sLeCETeJ/DZhLRsWrS6UNZpNNT9Itjkanxfih9Biz+X2TNSdsbCnw/xEv8uYjoPTVmUj FmYUO3qJmmCrZN0+tf9JmsLq8y1WNIpu5nyJldrR5fihbs37uidtZrWxQfsendhAQM06 xqf/Os3rtsqw3+3iUIuYUEFwV0vIQAqqtXCOwuHJyd336lUTy/gE97x6BCfwDRkoybOn XpfxUJXirJoH32741SDFRZReV54GAQarueNEvrqApVP3Cq4JCh9+o/ufziK3c20MGJRE B5gw== MIME-Version: 1.0 X-Received: by 10.202.169.214 with SMTP id s205mr10315649oie.71.1434665804056; Thu, 18 Jun 2015 15:16:44 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.202.221.69 with HTTP; Thu, 18 Jun 2015 15:16:43 -0700 (PDT) In-Reply-To: <20150618144529.04ee34f3@kirk.drpetervoigt.private> References: <20150618083129.25327b34@kirk.drpetervoigt.private> <20150618144529.04ee34f3@kirk.drpetervoigt.private> Date: Thu, 18 Jun 2015 15:16:43 -0700 X-Google-Sender-Auth: 2ngaWQC31_zNdy7vQj3u2778J_M Message-ID: Subject: Re: cmake: missing library /usr/local/lib/libjsoncpp.so From: Kevin Oberman To: "Dr. Peter Voigt" Cc: FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 18 Jun 2015 22:16:45 -0000 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