xulrunner ignoring --with-system-nss

View: New views
3 Messages — Rating Filter:   Alert me  

xulrunner ignoring --with-system-nss

by George Sherwood-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am building xulrunner 1.9.0.3, but when I use the options --with-system-
nspr and --with-system-nss in my .mozconfig, when doing a make install the
file mozilla-nss.pc is still installed.  This is clobbering the mozilla-
nss.pc file from the system nss.  The only way I found to stop this was to
remove this ifndef from xulrunner/installer/Makefile.in

-ifndef MOZ_NATIVE_NSS
-pkg_config_files += mozilla-nss.pc
-endif


Is this a bug or am I doing something wrong?

George Sherwood
Lead Developer
Sourcemage GNU/Linux (http://www.sourcemage.org)
_______________________________________________
dev-builds mailing list
dev-builds@...
https://lists.mozilla.org/listinfo/dev-builds

Re: xulrunner ignoring --with-system-nss

by George Sherwood-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 10 Oct 2008 09:37:24 -0500, George Sherwood wrote:

> I am building xulrunner 1.9.0.3, but when I use the options
> --with-system- nspr and --with-system-nss in my .mozconfig, when doing a
> make install the file mozilla-nss.pc is still installed.  This is
> clobbering the mozilla- nss.pc file from the system nss.  The only way I
> found to stop this was to remove this ifndef from
> xulrunner/installer/Makefile.in
>
> -ifndef MOZ_NATIVE_NSS
> -pkg_config_files += mozilla-nss.pc
> -endif
>
>

I did figure out that due to the fact that our distro was installing
mozilla-nss.pc, but not nss-config and this was causing the configure to
not see the system nss, so it was always going to build one internally.  I
added the nss-config file and now the xulrunner build is failing and I am
sure it is related to nss.  Here is the error:

c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -
Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -
Wcast-align -Wno-long-long -pedantic -march=pentium4 -pipe -fno-strict-
aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-
blocks -fno-reorder-functions  -fPIC -shared -Wl,-z,defs -Wl,-h,libxul.so -
o libxul.so  nsStaticXULComponents.o nsUnicharUtils.o
nsCompressedCharMap.o nsBidiUtils.o nsRDFResource.o     -lpthread -s  -Wl,-
rpath-link,../../dist/bin  -Wl,--whole-archive ../../embedding/browser/gtk/
src/libgtkembedmoz.a ../../toolkit/xre/libxulapp_s.a  ../../staticlib/
components/libxpconnect.a ../../staticlib/components/libnecko.a ../../
staticlib/components/libuconv.a ../../staticlib/components/libi18n.a ../../
staticlib/components/libchardet.a ../../staticlib/components/
libjar50.a ../../staticlib/components/libpref.a ../../staticlib/components/
libcaps.a ../../staticlib/components/libhtmlpars.a ../../staticlib/
components/libimglib2.a ../../staticlib/components/libgklayout.a ../../
staticlib/components/libdocshell.a ../../staticlib/components/
libembedcomponents.a ../../staticlib/components/libwebbrwsr.a ../../
staticlib/components/libnsappshell.a ../../staticlib/components/
libtxmgr.a ../../staticlib/components/libchrome.a ../../staticlib/
components/libcommandlines.a ../../staticlib/components/
libtoolkitcomps.a ../../staticlib/components/libpipboot.a ../../staticlib/
components/libpipnss.a ../../staticlib/components/libxmlextras.a ../../
staticlib/components/libgkplugin.a ../../staticlib/components/
libmozfind.a ../../staticlib/components/libappcomps.a ../../staticlib/
components/libunixproxy.a ../../staticlib/components/libxpinstall.a ../../
staticlib/components/libjsd.a ../../staticlib/components/
libautoconfig.a ../../staticlib/components/libwebsrvcs.a ../../staticlib/
components/libauth.a ../../staticlib/components/libcookie.a ../../
staticlib/components/libpermissions.a ../../staticlib/components/
libuniversalchardet.a ../../staticlib/components/libcomposer.a ../../
staticlib/components/librdf.a ../../staticlib/components/
libwindowds.a ../../staticlib/components/libintlapp.a ../../staticlib/
components/libfileview.a ../../staticlib/components/
libstoragecomps.a ../../staticlib/components/libplaces.a ../../staticlib/
components/libtkautocomplete.a ../../staticlib/components/
libsatchel.a ../../staticlib/components/libpippki.a ../../staticlib/
components/libucvmath.a ../../staticlib/components/libwidget_gtk2.a ../../
staticlib/components/libsystem-pref.a ../../staticlib/components/
libgkgfxthebes.a ../../staticlib/components/liboji.a ../../staticlib/
components/libaccessibility.a ../../staticlib/components/
libremoteservice.a ../../staticlib/components/libspellchecker.a ../../
staticlib/components/libzipwriter.a ../../staticlib/libxpcom_core.a ../../
staticlib/libucvutil_s.a ../../staticlib/libgkgfx.a ../../staticlib/
libgfxshared_s.a ../../staticlib/libmozreg_s.a ../../staticlib/
libmorkreader_s.a ../../staticlib/libgtkxtbin.a ../../staticlib/
libgfxpsshar.a ../../staticlib/libthebes.a ../../staticlib/libjsj.a  -Wl,--
no-whole-archive -L../../dist/lib -lsqlite3 -L../../dist/bin -L../../dist/
lib  -L../../dist/bin -L../../dist/lib -L/usr/lib/lib -ljpeg  -L/usr/lib/
lib -lpng  -L../../dist/bin -lmozlcms -L../../dist/bin -lmozjs -Wl,-
R@libdir@ -L@libdir@ -lssl3 -lsmime3 -lnss3 -lcrmf  -L/usr/lib/lib -lz  -
lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lfreetype -lz -
lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lcairo -lfreetype -
lz -lfontconfig    -lXrender -lcairo -lX11   -L/usr/lib -lplds4 -lplc4 -
lnspr4 -lpthread -ldl  -lX11  -lXft -lXrender -lfontconfig -lfreetype -lz -
lX11   -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lz -
lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -
lcairo -lgmodule-2.0 -lgobject-2.0 -lglib-2.0   -lXt -lgthread-2.0 -
lfreetype -lz -ldl -lm    
../../staticlib/components/libpipnss.a(nsCertOverrideService.o): In
function `make[4]: Leaving directory `/usr/src/xulrunner-1.9.0.3/mozilla/
toolkit/library'
make[3]: Leaving directory `/usr/src/xulrunner-1.9.0.3/mozilla'
make[2]: Leaving directory `/usr/src/xulrunner-1.9.0.3/mozilla'
make[1]: Leaving directory `/usr/src/xulrunner-1.9.0.3/mozilla'
GetCertFingerprintByDottedOidString(nsIX509Cert*, nsCString const&,
nsCString&)':
nsCertOverrideService.cpp:(.text+0x469): undefined reference to
`SEC_StringToOID'
../../staticlib/components/libpipnss.a(nsIdentityChecking.o): In function
`nsNSSComponent::IdentityInfoInit()':
nsIdentityChecking.cpp:(.text+0x99d): undefined reference to
`SEC_StringToOID'
/usr/lib/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertReqMessages':
crmfenc.c:(.text+0x46): undefined reference to `SEC_ASN1Encode_Util'
/usr/lib/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertRequest':
crmfenc.c:(.text+0x90): undefined reference to `SEC_ASN1Encode_Util'
/usr/lib/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertReqMsg':
crmfenc.c:(.text+0xe0): undefined reference to `SEC_ASN1Encode_Util'
/usr/lib/libcrmf.a(crmftmpl.o):(.data.rel.ro+0xc8): undefined reference to
`SEC_NullTemplate_Util'

This continues on for some time with very similar errors.  Any ides where
I can look for an answer this linking problem?


Thanks,
      George Sherwood
      Lead Developer
      Sourcemage GNU/Linux (http://www.sourcemage.org)

_______________________________________________
dev-builds mailing list
dev-builds@...
https://lists.mozilla.org/listinfo/dev-builds

Re: xulrunner ignoring --with-system-nss

by Nelson Bolyard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

George Sherwood wrote, On 2008-10-10 18:32:

> I did figure out that due to the fact that our distro was installing
> mozilla-nss.pc, but not nss-config and this was causing the configure to
> not see the system nss, so it was always going to build one internally.  I
> added the nss-config file and now the xulrunner build is failing and I am
> sure it is related to nss.  Here is the error:
>

> GetCertFingerprintByDottedOidString(nsIX509Cert*, nsCString const&, nsCString&)':
> nsCertOverrideService.cpp:(.text+0x469): undefined reference to `SEC_StringToOID'
> ../../staticlib/components/libpipnss.a(nsIdentityChecking.o): In function `nsNSSComponent::IdentityInfoInit()':
> nsIdentityChecking.cpp:(.text+0x99d): undefined reference to
> `SEC_StringToOID'
> /usr/lib/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertReqMessages':
> crmfenc.c:(.text+0x46): undefined reference to `SEC_ASN1Encode_Util'
> /usr/lib/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertRequest':
> crmfenc.c:(.text+0x90): undefined reference to `SEC_ASN1Encode_Util'
> /usr/lib/libcrmf.a(crmfenc.o): In function `CRMF_EncodeCertReqMsg':
> crmfenc.c:(.text+0xe0): undefined reference to `SEC_ASN1Encode_Util'
> /usr/lib/libcrmf.a(crmftmpl.o):(.data.rel.ro+0xc8): undefined reference to
> `SEC_NullTemplate_Util'
>
> This continues on for some time with very similar errors.  Any ides where
> I can look for an answer this linking problem?

Yes, it's very simple.

NSS 3.12.x is the version required by Firefox 3.
NSS 3.11.x is the version required by Firefox 2.
Your system's version is older than 3.12.0, probably 3.11.something.

Major new releases of Firefox (such as FF3) generally use the very latest
version of NSS there is.  They generally will not build with a version of
NSS that is a year old or more.

The older versions of Firefox, such as Firefox 2, generally will build with
the older versions of NSS.

The versions of NSS that get distributed with various Linux distros tend NOT
to be the very latest.

So, building the latest release of Firefox "with system NSS" is basically
not going to work until the latest release of FF has been out for a while,
and the OSes have had a chance to catch up.

Now, to make matters worse, quite a few Linux distributions modify NSS in
ways that make it incompatible.  For example, Some distros change the
names of the NSS shared libraries, so that they're not the names that
Firefox expects to find.

Bottom line: until your OS vendor distributes NSS 3.12.x as the system
version, you'll have to NOT use "with system NSS" to build FF3.
_______________________________________________
dev-builds mailing list
dev-builds@...
https://lists.mozilla.org/listinfo/dev-builds
LightInTheBox - Buy quality products at wholesale price!