Solved XFCE display errors, Firefox won't launch

I use FreeBSD 10.1 with XFCE.

Today when I boot the machine, all the desktop icons (Home, Trash etc) are replaced with a red 'X' instead of graphic symbols. Firefox can't be launched from menu entry anymore, if I type command firefox in terminal window, I received:

Code:
$ firefox
XPCOMGlueLoad error for file /usr/local/lib/firefox/libxul.so:
/usr/local/lib/libpng16.so.16: version PNG16_0 required by /usr/local/lib/firefox/libxul.so not defined
Couldn't load XPCOM.

Last time I used the machine, I installed 'Stellarium' pkg if that matters.
 
Last edited by a moderator:
Is your system full updated? Firefox is now 41.0.2 (if you work with pkg 41.0.1). Maybe (but I don't believe) it is related to the glib20 problem, which is fixed yesterday (also needs update - it is not available as pkg yet, you have to do in the port).

Another try could be: reinstall graphics/gdk-pixbuf2.
 
Last edited by a moderator:
The problem was with FreeBSD's pkg install, it seems that when I installed 'stellarium', pkg didn't pull in all the dependencies, and it broke xfce desktop theme and firefox in the process.

I used command pkg upgrade to pull in all the needed dependencies. after that, xfce theme/firefox is back to normal.

This is very troublesome as I can't trust pkg to be able to successfully install a package anymore
 
I'd say refusing to trust pkg because one package out of hundreds didn't install correctly is an overreaction. More likely the problem was the package/port being momentarily broken due to an out-of-date dependency, judging by the fact that pkg upgrade fixed it. Just because a program builds and installs without error doesn't mean it will function properly, and if it doesn't function properly (while all other packages are fine) then the package manager is the least likely culprit.
 
Similar problem occurred to me yesterday after trying to upgrade chromium.
<# pkg upgrade> Solved this by upgrading, reinstalling, and installing new dependencies.
 
Back
Top