Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2018 23:18:25 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        freebsd-ports@freebsd.org
Subject:   mail/thunderbird fails on link with latest security/nss
Message-ID:  <CAJuc1zOmFNdj-srGDR1V0_50KurJh5sYFWu8qYTLgN=vEZT7Zw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

With the recent update to security/nss, mail/thunderbird build
currently fails on 11-STABLE/amd64 with:

[...]
Executing: /usr/bin/c++ -std=gnu++11 -o plugin-container
-Qunused-arguments -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1
-D_DECLARE_C99_LDB
L_MATH -DLIBICONV_PLUG -isystem /usr/local/include -Qunused-arguments
-Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers
-Woverloaded-vir
tual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code
-Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wloop-analysis
-W
c++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic
-Wc++1z-compat -Wimplicit-fallthrough -Wstring-conversion
-Wthread-safety -Wno-i
nline-new-delete -Wno-error=deprecated-declarations
-Wno-error=array-bounds -Wno-unknown-warning-option
-Wno-return-type-c-linkage -O2 -pipe
-O3 -DLIBICONV_PLUG -isystem /usr/local/include -fno-strict-aliasing
-DLIBICONV_PLUG -isystem /usr/local/include -fno-exceptions
-fno-strict-
aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions
-fno-math-errno -pipe -I/usr/local/include -O2 -O3 -fno-omit-frame-poi
nter /construction/xports/mail/thunderbird/work/.build/ipc/app/tmp4zapiQ.list
-pthread -Wl,--as-needed -Wl,-z,noexecstack -Wl,-z,text -rdynam
ic -Wl,-rpath-link,/construction/xports/mail/thunderbird/work/.build/dist/bin
-Wl,-rpath-link,/usr/local/lib ../../xpcom/glue/libxpcomglue_s.
a -pie ../../toolkit/library/libxul.so -L/usr/local/lib
-L/usr/local/lib -lplds4 -lplc4 -lnspr4 -pthread
/construction/xports/mail/thunderbird/work/.build/ipc/app/tmp4zapiQ.list:
    INPUT("GMPLoader.o")
    INPUT("MozillaRuntimeMain.o")
    INPUT("../../mozglue/build/SSE.o")
    INPUT("../../memory/mozalloc/Unified_cpp_memory_mozalloc0.o")
    INPUT("../../memory/build/mozjemalloc_compat.o")
    INPUT("../../memory/build/mozmemory_wrap.o")
    INPUT("../../memory/build/jemalloc_config.o")
    INPUT("../../mozglue/misc/StackWalk.o")
    INPUT("../../mozglue/misc/TimeStamp.o")
    INPUT("../../mozglue/misc/TimeStamp_posix.o")
    INPUT("../../mfbt/Compression.o")
    INPUT("../../mfbt/Decimal.o")
    INPUT("../../mfbt/Unified_cpp_mfbt0.o")
    INPUT("../../mfbt/Unified_cpp_mfbt1.o")
    INPUT("../../memory/fallible/fallible.o")
    INPUT("../../dom/media/gmp/rlz/Unified_cpp_dom_media_gmp_rlz0.o")

/usr/bin/ld: warning: libssl3.so, needed by
../../toolkit/library/libxul.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libsmime3.so, needed by
../../toolkit/library/libxul.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libnss3.so, needed by
../../toolkit/library/libxul.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libnssutil3.so, needed by
../../toolkit/library/libxul.so, not found (try using -rpath or
-rpath-link)
../../toolkit/library/libxul.so: undefined reference to
`PK11_CheckUserPassword@NSS_3.2'
../../toolkit/library/libxul.so: undefined reference to
`PK11_GetAllTokens@NSS_3.2'
[.. slew of link errors ...]

I have had a quick look, and it appears that the libssl3, libsmime3,
libnss3 and libnssutil3 are located in /usr/local/lib/nss; but this
does not appear to be specified in the link-path. Anyone have a quick
fix?

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJuc1zOmFNdj-srGDR1V0_50KurJh5sYFWu8qYTLgN=vEZT7Zw>