From owner-freebsd-ports@FreeBSD.ORG Thu Jan 3 05:10:28 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D413616A419; Thu, 3 Jan 2008 05:10:28 +0000 (UTC) (envelope-from shild@sbcglobal.net) Received: from flpi102.prodigy.net (flpi102.sbcis.sbc.com [207.115.20.71]) by mx1.freebsd.org (Postfix) with ESMTP id B66BB13C45A; Thu, 3 Jan 2008 05:10:28 +0000 (UTC) (envelope-from shild@sbcglobal.net) X-ORBL: [68.75.166.208] Received: from fbsd1.dyndns.org (adsl-68-75-166-208.dsl.emhril.ameritech.net [68.75.166.208]) by flpi102.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id m035ARfM002200; Wed, 2 Jan 2008 21:10:27 -0800 Received: from fbsd1.dyndns.org (localhost.dyndns.org [127.0.0.1]) by fbsd1.dyndns.org (8.14.2/8.14.2) with ESMTP id m035AHkA024601; Wed, 2 Jan 2008 23:10:17 -0600 (CST) (envelope-from shild@sbcglobal.net) Received: (from shildret@localhost) by fbsd1.dyndns.org (8.14.2/8.14.2/Submit) id m035AGJx024600; Wed, 2 Jan 2008 23:10:16 -0600 (CST) (envelope-from shild@sbcglobal.net) X-Authentication-Warning: fbsd1.dyndns.org: shildret set sender to shild@sbcglobal.net using -f From: "Scott T. Hildreth" To: FreeBSD Gnome , ports@freebsd.org In-Reply-To: <1198784427.1088.33.camel@fbsd1.dyndns.org> References: <200712241928.lBOJSIU8085537@scotth.emsphone.com> <1198526985.34216.34.camel@shumai.marcuscom.com> <1198693635.1088.18.camel@fbsd1.dyndns.org> <20071226234037.GD986@in-addr.com> <1198784427.1088.33.camel@fbsd1.dyndns.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 02 Jan 2008 23:10:16 -0600 Message-Id: <1199337016.1088.132.camel@fbsd1.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 FreeBSD GNOME Team Port Cc: Subject: Re: Getting the same problem nss problem with evolution [Solved] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shild@sbcglobal.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 05:10:29 -0000 On Thu, 2007-12-27 at 13:40 -0600, Scott T. Hildreth wrote: > On Wed, 2007-12-26 at 18:40 -0500, Gary Palmer wrote: > > On Wed, Dec 26, 2007 at 12:27:15PM -0600, Scott T. Hildreth wrote: > > > > > > On Mon, 2007-12-24 at 15:09 -0500, Joe Marcus Clarke wrote: > > > > On Mon, 2007-12-24 at 13:28 -0600, Scott T. Hildreth wrote: > > > > > ===> Extracting for evolution-2.12.2 > > > > > => MD5 Checksum OK for gnome2/evolution-2.12.2.tar.bz2. > > > > > => SHA256 Checksum OK for gnome2/evolution-2.12.2.tar.bz2. > > > > > ===> Patching for evolution-2.12.2 > > > > > ===> Applying FreeBSD patches for evolution-2.12.2 > > > > > ===> evolution-2.12.2 depends on executable: gmake - found > > > > > ===> evolution-2.12.2 depends on executable: bison - found > > > > > ===> evolution-2.12.2 depends on file: /usr/local/bin/intltool-extract - found > > > > > ===> evolution-2.12.2 depends on file: /usr/local/libdata/pkgconfig/gnome-mime-data-2.0.pc - found > > > > > ===> evolution-2.12.2 depends on executable: pkg-config - found > > > > > ===> evolution-2.12.2 depends on executable: update-desktop-database - found > > > > > ===> evolution-2.12.2 depends on file: /usr/local/libdata/pkgconfig/gnome-doc-utils.pc - found > > > > > ===> evolution-2.12.2 depends on file: /usr/local/libdata/xorg/libraries - found > > > > > ===> evolution-2.12.2 depends on shared library: nss3.1 - not found > > > > > ===> Verifying install for nss3.1 in /usr/ports/security/nss > > > > > ===> Returning to build of evolution-2.12.2 > > > > > Error: shared library "nss3.1" does not exist > > > > > *** Error code 1 > > > > > > > > > > I am have this error installing firefox 2.0.0.11 as well, what am I missing here? > > > > > > > > Probably the contents of /usr/local/libdata/ldconfig. Assuming you have > > > > nss properly installed, running ldconfig -m /usr/local/lib/nss will > > > > temporarily resolve this problem, but you should reinstall nss to get > > > > the directory re-added permanently. > > > > > > Maybe this is it (from ldconfig -r) > > > > > > 641:-lnss3.1 => /usr/local/lib/compat/pkg/libnss3.so.1 > > > > > > ...nss3 was reinstalled several times, but the ldconfig -m must > > > have failed. When I ran ldconfig -m /usr/local/lib/nss, it failed > > > printing that /usr/local/lib/nss is being ignored, because it is > > > group writable. I changed the mode, the ldconfig worked and > > > libnss3 is found now. > > > > I kept getting bitten by directory mode permission problems so I put a > > > > chmod go-w ${USE_LDCONFIG} > > > > (or ${USE_LDCONFIG32} as appropriate) > > > > into bsd.port.mk locally. I think it would be a good idea to put that > > into the master bsd.port.mk personally. > > > > Patch is attached (I hope) > > > > Note that the line-numbers will be wrong as I have other changes in > > my bsd.port.mk in addition to the changes attached. It is also a > > while since I did the change, so I'm not sure if I caught every > > potential case. But it seems to be working here. > > > > Gary > > > I got firefox to compile, but evolution is failing in the data-server > compile, > > /usr/lib/libssp.so: warning: warning: this program uses gets(), which is unsafe. > /usr/local/lib/nss/libnss3.so: undefined reference to `NSC_ModuleDBFunc@NSS_3.4' > /usr/local/lib/nss/libnss3.so: undefined reference to `NSC_GetFunctionList@NSS_3.4' > /usr/local/lib/nss/libnss3.so: undefined reference to `FC_GetFunctionList@NSS_3.4' > gmake[3]: *** [camel-lock-helper-1.2] Error 1 > gmake[3]: Leaving directory `/usr/ports/databases/evolution-data-server/work/evolution-data-server-1.12.2/camel' > gmake[2]: *** [all-recursive] Error 1 > > I must have another library issue. > My root umask under zsh was 002 not 0022, so the /usr/local/lib/nss dir was created with group write permissions. This would cause the ldconfig step to fail and portupgrade would not remove the /usr/local/lib/compat/pkg versions of the library. libnss3.so was using the compat version of libsoftkn3.so.1 causing the above error in when linking.> My root umask under zsh was 002 not 0022, so the /usr/local/lib/nss dir was created with group write permissions. This would cause the ldconfig step to fail and portupgrade would not remove the /usr/local/lib/compat/pkg versions of the library. libnss3.so was using the compat version of libsoftkn3.so.1 causing the above error in when linking. >