Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#21477 closed defect (duplicate)

xulrunner-1.9.0.13_0 build failure

Reported by: steve_macdougall@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snowleopard NSS Cc:
Port: xulrunner

Description (last modified by mf2k (Frank Schima))

Following the resolution to Ticket #21449, I wiped out my Macports installation and
tried again from scratch with the command 'sudo port install firefox-x11 +universal'.
All of the Firefox dependencies build correctly up to xulrunner, which crashes with
a different error than previously reported. I tried to clean and reinstall xulrunner
independently with the command 'sudo port install -d xulrunner +universal' with no
success. The same is true if I omit the +universal. Here is the debug output:

lis58731:~ stevem$ sudo port install -d xulrunner +universal
--->  Computing dependencies for xulrunner
--->  Fetching xulrunner
--->  Verifying checksum(s) for xulrunner
--->  Extracting xulrunner
--->  Applying patches to xulrunner
--->  Configuring xulrunner
--->  Building xulrunner
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xulrunner/work/mozilla" && /usr/bin/make -j4 all includedir="/opt/local/include/xulrunner" idldir="/opt/local/share/idl/xulrunner" installdir="/opt/local/lib/xulrunner" sdkdir="/opt/local/lib/xulrunner" " returned error 2
Command output:       nsCMSMessage::CreateEncrypted(nsIArray*)       in nsCMS.o
      AppendBMPtoUTF16(PLArenaPool*, unsigned char*, unsigned int, nsAString_internal&)in nsNSSCertHelper.o
      nsNSSCertificateDB::getCertsFromPackage(PLArenaPool*, unsigned char*, unsigned int)in nsNSSCertificateDB.o
      collect_certs(void*, SECItemStr**, int)in nsNSSCertificateDB.o
  "_CERT_GetCertTimes", referenced from:
      nsX509CertValidity::nsX509CertValidity(CERTCertificateStr*)in nsNSSCertValidity.o
  "_PK11_DeleteTokenCertAndKey", referenced from:
      nsNSSCertificate::destructorSafeDestroyNSSReference()       in nsNSSCertificate.o
  "_SECMOD_ReferenceModule", referenced from:
      nsNSSComponent::InstallLoadableRoots()       in nsNSSComponent.o
      nsPKCS11Module::nsPKCS11Module(SECMODModuleStr*)in nsPKCS11Slot.o
      SmartCardMonitoringThread::SmartCardMonitoringThread(SECMODModuleStr*)in nsSmartCardMonitor.o
  "_CERT_GetCertTrust", referenced from:
      nsNSSCertificateDB::IsCertTrusted(nsIX509Cert*, unsigned int, unsigned int, int*)in nsNSSCertificateDB.o
  "_PK11_PQG_DestroyParams", referenced from:
      nsKeygenFormProcessor::GetPublicKey(nsAString_internal&, nsAString_internal&, nsString&, nsAString_internal&, nsAString_internal&)in nsKeygenHandler.o
      nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject**)       in nsCrypto.o
      nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject**)       in nsCrypto.o
  "_PK11_HashBuf", referenced from:
      GetCertFingerprintByOidTag(CERTCertificateStr*, SECOidTag, nsCString&)     in nsCertOverrideService.o
      nsNSSCertificate::GetMd5Fingerprint(nsAString_internal&)        in nsNSSCertificate.o
      nsNSSCertificate::GetSha1Fingerprint(nsAString_internal&)        in nsNSSCertificate.o
  "_SEC_NewCrl", referenced from:
      nsCRLManager::ImportCrl(unsigned char*, unsigned int, nsIURI*, unsigned int, int, unsigned short const*)in nsCRLManager.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libxul.dylib] Error 1
make[2]: *** [libs_tier_toolkit] Error 2
make[1]: *** [tier_toolkit] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History (8)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: snowleopard added; xulrunner Snow Leopard removed
Milestone: MacPorts 1.8.1
Owner: changed from macports-tickets@… to jeremyhu@…
Port: xulrunner added; xulrunner-1.9.0.13_0 removed

comment:2 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

comment:3 Changed 15 years ago by steve_macdougall@…

I disagree that this is a duplicate since this is a completely different error encountered when attempting to build firefox-x11 and all of it's dependants with the +universal variant as I was instructed to do in ticket #21449.

comment:4 Changed 15 years ago by blb@…

Did nss get built properly for +universal?

$ port installed nss
$ lipo -info /opt/local/lib/nss/libnss3.dylib

comment:5 Changed 15 years ago by steve_macdougall@…

lis58731:~ stevem$ port installed nss
The following ports are currently installed:
  nss @3.12.3_0 (active)
lis58731:~ stevem$ lipo -info /opt/local/lib/nss/libnss3.dylib
Non-fat file: /opt/local/lib/nss/libnss3.dylib is architecture: x86_64

I tried uninstalling, cleaning and reinstalling nss with the +universal variant, the output to these commands was the same. Xulrunner still failed to build

lis58731:~ stevem$ sudo port install xulrunner +universal
--->  Computing dependencies for xulrunner
--->  Fetching xulrunner
--->  Verifying checksum(s) for xulrunner
--->  Extracting xulrunner
--->  Applying patches to xulrunner
--->  Configuring xulrunner
--->  Building xulrunner
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xulrunner/work/mozilla" && /usr/bin/make -j4 all includedir="/opt/local/include/xulrunner" idldir="/opt/local/share/idl/xulrunner" installdir="/opt/local/lib/xulrunner" sdkdir="/opt/local/lib/xulrunner" " returned error 2
Command output:       nsCMSMessage::CreateEncrypted(nsIArray*)       in nsCMS.o
      AppendBMPtoUTF16(PLArenaPool*, unsigned char*, unsigned int, nsAString_internal&)in nsNSSCertHelper.o
      nsNSSCertificateDB::getCertsFromPackage(PLArenaPool*, unsigned char*, unsigned int)in nsNSSCertificateDB.o
      collect_certs(void*, SECItemStr**, int)in nsNSSCertificateDB.o
  "_CERT_GetCertTimes", referenced from:
      nsX509CertValidity::nsX509CertValidity(CERTCertificateStr*)in nsNSSCertValidity.o
  "_PK11_DeleteTokenCertAndKey", referenced from:
      nsNSSCertificate::destructorSafeDestroyNSSReference()       in nsNSSCertificate.o
  "_SECMOD_ReferenceModule", referenced from:
      nsNSSComponent::InstallLoadableRoots()       in nsNSSComponent.o
      nsPKCS11Module::nsPKCS11Module(SECMODModuleStr*)in nsPKCS11Slot.o
      SmartCardMonitoringThread::SmartCardMonitoringThread(SECMODModuleStr*)in nsSmartCardMonitor.o
  "_CERT_GetCertTrust", referenced from:
      nsNSSCertificateDB::IsCertTrusted(nsIX509Cert*, unsigned int, unsigned int, int*)in nsNSSCertificateDB.o
  "_PK11_PQG_DestroyParams", referenced from:
      nsKeygenFormProcessor::GetPublicKey(nsAString_internal&, nsAString_internal&, nsString&, nsAString_internal&, nsAString_internal&)in nsKeygenHandler.o
      nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject**)       in nsCrypto.o
      nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject**)       in nsCrypto.o
  "_PK11_HashBuf", referenced from:
      GetCertFingerprintByOidTag(CERTCertificateStr*, SECOidTag, nsCString&)     in nsCertOverrideService.o
      nsNSSCertificate::GetMd5Fingerprint(nsAString_internal&)        in nsNSSCertificate.o
      nsNSSCertificate::GetSha1Fingerprint(nsAString_internal&)        in nsNSSCertificate.o
  "_SEC_NewCrl", referenced from:
      nsCRLManager::ImportCrl(unsigned char*, unsigned int, nsIURI*, unsigned int, int, unsigned short const*)in nsCRLManager.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [libxul.dylib] Error 1
make[2]: *** [libs_tier_toolkit] Error 2
make[1]: *** [tier_toolkit] Error 2
make: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:6 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

One of nss, nspr are not universal. They are a PITA to build. I don't have firefox built on my system right now. It's non-trivial. Even the "native" Firefox version is not being built on SnowLeopard or for 64bit. You will need to have some patience and let the upstream devs work on the problem.

comment:7 in reply to:  6 Changed 14 years ago by macports@…

Replying to jeremyhu@…:

One of nss, nspr are not universal. They are a PITA to build. I don't have firefox built on my system right now. It's non-trivial. Even the "native" Firefox version is not being built on SnowLeopard or for 64bit. You will need to have some patience and let the upstream devs work on the problem.

Just hit the same error with firefox-x11 quitting at xulrunner. Asking to install nss +universal got

--->  Installing nspr @4.8.6_0+universal
--->  Activating nspr @4.8.6_0+universal

and it then proceeded to build and install a non-universal nss

--->  Installing nss @3.12.8_0
--->  Activating nss @3.12.8_0

So is there some linkage where MacPorts tells Mozilla that we hope for a Mac Universal nss?

comment:8 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

If you want a 64bit firefox, use firefox-x11-devel.

If you want universal, patches are accepted ;)

Note: See TracTickets for help on using tickets.