On Friday, 19 September 2014 16:00:57 UTC-7, manik sheeri wrote:
> Hi,
>
>
>
> When trying to compile Firefox 32.0.2, I am getting the following link error :
>
>
>
> 136:42.12 Executing: mk7i-g++ -o xpcshell -Wall -Wpointer-arith
> -Woverloaded-virtual -Werror=return-type -Werror=int-to-pointer-cast
> -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align
> -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions
> -fno-math-errno -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -Os
> -freorder-blocks -fomit-frame-pointer
> /home/mk7/firefox/obj-dir/js/xpconnect/shell/tmpQogzd0.list -lpthread
> -Wl,--rpath-link,/usr/share/mk7i-toolchain/lib
> -Wl,--dynamic-linker,/usr/share/mk7i-toolchain/lib/ld-linux.so.2
> -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id
> -Wl,-rpath-link,/home/mk7/firefox/obj-dir/dist/bin
> -Wl,-rpath-link,/home/mk7/firefox/install/lib -L../../../dist/bin
> -L../../../dist/lib ../../../dist/lib/libxpcomglue_s.a
> ../../../dist/bin/libxul.so ../../../dist/bin/libmozalloc.so
> ../../../dist/bin/libxul.so ../../../dist/bin/libmozalloc.so
> -L/home/mk7/firefox/obj-dir/dist/lib -lnspr4 -lplc4 -lplds4
> -Wl,--whole-archive ../..
/../dist/lib/libmozglue.a ../../../dist/lib/libmemory.a -Wl,--no-whole-archive
-rdynamic -ldl
>
> 136:42.12 /home/mk7/firefox/obj-dir/ipc/app/tmppGH_oX.list:
>
> 136:42.12 /home/mk7/firefox/obj-dir/js/xpconnect/shell/tmpQogzd0.list:
>
> 136:42.12 INPUT("MozillaRuntimeMain.o")
>
> 136:42.13 INPUT("xpcshell.o")
>
> 136:42.13
>
> 136:42.13
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `PK11_FindCertsFromEmailAddress@NSS_3.12.9'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `CERT_GetConstrainedCertificateNames@NSS_3.12.7'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_VersionRangeSet@NSS_3.14'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `NSSSSL_GetVersion@NSS_3.13'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `NSS_CMSSignerInfo_Verify@NSS_3.16'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `NSSSMIME_GetVersion@NSS_3.13'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `PK11_Encrypt@NSS_3.15'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `CERT_ForcePostMethodForOCSP@NSS_3.15.4'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_GetNextProto@NSS_3.13.2'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `PK11_ExportDERPrivateKeyInfo@NSS_3.16.1'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_SetSRTPCiphers@NSS_3.14'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_AuthCertificateComplete@NSS_3.13.2'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `PK11_KeyGenWithTemplate@NSS_3.12.9'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `CERT_AddCertToListHead@NSS_3.15'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `PK11_DeriveWithTemplate@NSS_3.12.9'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `DTLS_GetHandshakeTimeout@NSS_3.14'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_HandshakeNegotiatedExtension@NSS_3.12.6'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `DTLS_ImportFD@NSS_3.14'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_GetSRTPCipher@NSS_3.14'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_VersionRangeGet@NSS_3.14'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `CERT_CacheOCSPResponseFromSideChannel@NSS_3.12.6'
>
> 136:42.13 ../../dist/bin/libxul.so: undefined reference to
> `SSL_VersionRangeSetDefault@NSS_3.14'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `SSL_PeerStapledOCSPResponses@NSS_3.15'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `PK11_Decrypt@NSS_3.15'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `SSL_SetNextProtoNego@NSS_3.13.2'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `SSL_SetCanFalseStartCallback@NSS_3.15.4'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `SSL_ExportKeyingMaterial@NSS_3.14'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `NSSUTIL_GetVersion@NSSUTIL_3.13'
>
> 136:42.14 ../../dist/bin/libxul.so: undefined reference to
> `NSS_GetVersion@NSS_3.13'
>
> 136:42.14 collect2: error: ld returned 1 exit status
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `PK11_FindCertsFromEmailAddress@NSS_3.12.9'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `CERT_GetConstrainedCertificateNames@NSS_3.12.7'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_VersionRangeSet@NSS_3.14'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `NSSSSL_GetVersion@NSS_3.13'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `NSS_CMSSignerInfo_Verify@NSS_3.16'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `NSSSMIME_GetVersion@NSS_3.13'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `PK11_Encrypt@NSS_3.15'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `CERT_ForcePostMethodForOCSP@NSS_3.15.4'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_GetNextProto@NSS_3.13.2'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `PK11_ExportDERPrivateKeyInfo@NSS_3.16.1'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_SetSRTPCiphers@NSS_3.14'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_AuthCertificateComplete@NSS_3.13.2'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `PK11_KeyGenWithTemplate@NSS_3.12.9'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `CERT_AddCertToListHead@NSS_3.15'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `PK11_DeriveWithTemplate@NSS_3.12.9'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `DTLS_GetHandshakeTimeout@NSS_3.14'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_HandshakeNegotiatedExtension@NSS_3.12.6'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `DTLS_ImportFD@NSS_3.14'
>
> 136:42.14 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_GetSRTPCipher@NSS_3.14'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_VersionRangeGet@NSS_3.14'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `CERT_CacheOCSPResponseFromSideChannel@NSS_3.12.6'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_VersionRangeSetDefault@NSS_3.14'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_PeerStapledOCSPResponses@NSS_3.15'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `PK11_Decrypt@NSS_3.15'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_SetNextProtoNego@NSS_3.13.2'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_SetCanFalseStartCallback@NSS_3.15.4'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `SSL_ExportKeyingMaterial@NSS_3.14'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `NSSUTIL_GetVersion@NSSUTIL_3.13'
>
> 136:42.15 ../../../dist/bin/libxul.so: undefined reference to
> `NSS_GetVersion@NSS_3.13'
>
> 136:42.15 collect2: error: ld returned 1 exit status
>
> 136:42.15 gmake[6]: gmake[6]: *** [xpcshell] Error 1*** [plugin-container]
> Error 1
>
> 136:42.15
>
> 136:42.15 gmake[5]: *** [ipc/app/binaries] Error 2
>
> 136:42.15 gmake[5]: *** Waiting for unfinished jobs....
>
> 136:42.15 gmake[5]: *** [js/xpconnect/shell/binaries] Error 2
>
> 136:42.15 gmake[4]: *** [recurse_libs] Error 2
>
> 136:42.15 gmake[3]: *** [libs] Error 2
>
> 136:42.15 gmake[2]: *** [default] Error 2
>
> 136:42.15 gmake[1]: *** [realbuild] Error 2
>
> 136:42.15 gmake: *** [build] Error 2
>
> 136:42.19 383 compiler warnings present.
>
>
>
>
>
> My mozconfig file is :
>
>
>
> mk_add_options MOZ_OBJDIR=/home/mk7/firefox/obj-dir
>
> ac_add_options --enable-application=browser
>
> ac_add_options --enable-optimize
>
> ac_add_options --disable-tests
>
> ac_add_options --disable-crypto
>
> ac_add_options --prefix=/home/mk7/firefox/install
>
> ac_add_options --disable-pulseaudio
>
> ac_add_options --disable-gstreamer
>
> ac_add_options --disable-necko-wifi
>
> ac_add_options --disable-js-diagnostics
>
> ac_add_options --disable-gio
>
> ac_add_options --disable-gconf
>
> ac_add_options --disable-dbus
>
> ac_add_options --disable-websms-backend
>
> ac_add_options --disable-jsd
>
> ac_add_options --disable-dbm
>
> ac_add_options --disable-webspeech
>
>
>
>
>
> I started the build with the following commands:
>
> ./mach configure
>
> ./mach build
>
>
>
> After that, the export and compile steps ran fine, however the above errors
> were seen when it was on 'libs' step.
>
>
>
> Any idea ?
I dont get why this error is coming.
"--rpath-link,/usr/share/mk7i-toolchain/lib" is in the command.
This is my custom toolchain path and has the following libraries with nss*
-rwxr-xr-x 1 root root 1495454 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnss3.so
-rw-r--r-- 1 root root 45704 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnss.a
-rw-r--r-- 1 root root 36318 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssb.a
-rwxr-xr-x 1 root root 439328 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssckbi.so
-rw-r--r-- 1 root root 132826 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssckfw.a
-rwxr-xr-x 1 root root 117053 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_compat-2.19.so
lrwxrwxrwx 1 root root 18 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_compat.so -> libnss_compat.so.2
lrwxrwxrwx 1 root root 21 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_compat.so.2 -> libnss_compat-2.19.so
-rwxr-xr-x 1 root root 124557 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_db-2.19.so
-rw-r--r-- 1 root root 478 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssdbm3.chk
-rwxr-xr-x 1 root root 192343 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssdbm3.so
-rw-r--r-- 1 root root 164842 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssdbm.a
lrwxrwxrwx 1 root root 14 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_db.so -> libnss_db.so.2
lrwxrwxrwx 1 root root 17 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_db.so.2 -> libnss_db-2.19.so
-rw-r--r-- 1 root root 46772 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssdev.a
-rwxr-xr-x 1 root root 79476 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_dns-2.19.so
lrwxrwxrwx 1 root root 15 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_dns.so -> libnss_dns.so.2
lrwxrwxrwx 1 root root 18 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_dns.so.2 -> libnss_dns-2.19.so
-rwxr-xr-x 1 root root 209131 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_files-2.19.so
lrwxrwxrwx 1 root root 17 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_files.so -> libnss_files.so.2
lrwxrwxrwx 1 root root 20 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_files.so.2 -> libnss_files-2.19.so
-rwxr-xr-x 1 root root 76911 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_hesiod-2.19.so
lrwxrwxrwx 1 root root 18 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_hesiod.so -> libnss_hesiod.so.2
lrwxrwxrwx 1 root root 21 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_hesiod.so.2 -> libnss_hesiod-2.19.so
-rwxr-xr-x 1 root root 194216 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_nis-2.19.so
-rwxr-xr-x 1 root root 260309 2014-09-15 08:43
/usr/share/mk7i-toolchain/lib/libnss_nisplus-2.19.so
lrwxrwxrwx 1 root root 19 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_nisplus.so -> libnss_nisplus.so.2
lrwxrwxrwx 1 root root 22 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_nisplus.so.2 -> libnss_nisplus-2.19.so
lrwxrwxrwx 1 root root 15 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_nis.so -> libnss_nis.so.2
lrwxrwxrwx 1 root root 18 2014-09-15 08:44
/usr/share/mk7i-toolchain/lib/libnss_nis.so.2 -> libnss_nis-2.19.so
-rw-r--r-- 1 root root 130442 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnsspki.a
-rwxr-xr-x 1 root root 132754 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssutil3.so
-rw-r--r-- 1 root root 161032 2014-09-10 17:30
/usr/share/mk7i-toolchain/lib/libnssutil.a
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds