Please don't set FORCE_PKG_REGISTER unless you know what you are doing!
I thought this would let me just overwrite the existing installation from the previous build, instead of first deinstalling and (re)installing again.
To make sure it does not have any influence I turned this off for my further experimenting below.
Anyway, I tried a few times to build Firefox using the
make deinstall
,
make clean
,
make rmconfig
,
make extract
,
make config
,
make
,
make install
sequence.
I suspected that some option changes (for example using Gtk2 instead of using Gtk3) could have introduced the problem.
But the "improvement" only was that the error message when trying to start Firefox changed slightly to:
Code:
% firefox
XPCOMGlueLoad error for file /usr/local/lib/firefox-47.0.1/libxul.so:
/usr/local/lib/firefox-47.0.1/libxul.so: Undefined symbol "_ZN10soundtouch10SoundTouch12getVersionIdEv"
Couldn't load XPCOM.
%
This indicated that the soundtouch functions were missing in liblgpllibs.so.
No improvement even after I made sure that I built+installed the port with the default options.
Finally this made me ask where the libraries get placed when doing
make install
.
So I asked the PC:
Code:
# find / -print | grep -i liblgpllibs.so
/usr/local/lib/firefox/liblgpllibs.so
/usr/local/lib/firefox-47.0.1/liblgpllibs.so
/usr/local/lib/thunderbird/liblgpllibs.so
/usr/ports/www/firefox/work/stage/usr/local/lib/firefox-47.0.1/liblgpllibs.so
/usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/dist/firefox/liblgpllibs.so
/usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/dist/bin/liblgpllibs.so
/usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/config/external/lgpllibs/liblgpllibs.so
# ll /usr/local/lib/firefox/liblgpllibs.so
-rwxr-xr-x 1 root wheel 38394 Aug 18 08:48 /usr/local/lib/firefox/liblgpllibs.so*
# ll /usr/local/lib/firefox-47.0.1/liblgpllibs.so
-rwxr-xr-x 1 root wheel 82880 Aug 22 14:38 /usr/local/lib/firefox-47.0.1/liblgpllibs.so*
# ll /usr/local/lib/thunderbird/liblgpllibs.so
-rwxr-xr-x 1 root wheel 38332 Aug 18 05:10 /usr/local/lib/thunderbird/liblgpllibs.so*
# ll /usr/ports/www/firefox/work/stage/usr/local/lib/firefox-47.0.1/liblgpllibs.so
-rwxr-xr-x 1 root wheel 82880 Aug 22 14:38 /usr/ports/www/firefox/work/stage/usr/local/lib/firefox-47.0.1/liblgpllibs.so*
# ll /usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/dist/firefox/liblgpllibs.so
-rwxr-xr-x 1 root wheel 82880 Aug 22 14:38 /usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/dist/firefox/liblgpllibs.so*
# ll /usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/dist/bin/liblgpllibs.so
lrwxr-xr-x 1 root wheel 45 Aug 22 14:38 /usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/dist/bin/liblgpllibs.so@ -> ../../config/external/lgpllibs/liblgpllibs.so
# ll /usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/config/external/lgpllibs/liblgpllibs.so
-rwxr-xr-x 1 root wheel 82880 Aug 22 14:38 /usr/ports/www/firefox/work/firefox-47.0.1/obj-x86_64-portbld-freebsd11.0/config/external/lgpllibs/liblgpllibs.so*
#
This made me wonder whether the problem could be caused by the fact that the newly-built library for some reason only gets installed in
/usr/local/lib/firefox-47.0.1, but
not in /usr/local/lib/firefox.
To verify whether this caused the problem, I entered this:
Code:
# mv /usr/local/lib/firefox/liblgpllibs.so /usr/local/lib/firefox/liblgpllibs.so.oldcrap
# cp /usr/local/lib/firefox-47.0.1/liblgpllibs.so /usr/local/lib/firefox/liblgpllibs.so
#
Now Firefox starts without any complaints.
I still don' t know which mistake I made caused these problems.
At least now I know what I have to fix to make Firefox from ports work after
make
+
make install
.
Thanks again to all for your help and input!