Category Archives: Ubuntu

Warning for Firefox devs planning to upgrade to Ubuntu 13.10

I just upgraded from Ubuntu 13.04 to Ubuntu 13.10, and Firefox wouldn’t build with either clang or GCC.

clang was initially failing during configure, complaining about not being able to find joystick.h, though the underlying failure was an inability to find stddef.h.  This Ubuntu bug describes a workaround, which is to do the following.

cd /usr/lib/clang/3.2/
sudo ln -s /usr/lib/llvm-3.2/lib/clang/3.2/include

With that in place, I clobbered and rebuilt, and clang complained about a problem in allocator.h relating to a name __allocator_base, and GCC complained about C++11 support being insufficient.

Both failures had the same underlying cause, which is that both compilers are hardwired to look for some GCC-4.7 headers (which they shouldn’t) as well as GCC-4.8 headers.  I filed a bug with Ubuntu about this.

I worked around the problem just by renaming /usr/include/c++/4.7/ and /usr/include/x86_64-linux-gnu/c++/4.7/.  There may be more elegant workarounds, but that was good enough for me.

Upgrading Ubuntu (sigh)

I finally got around to upgrading my desktop from Ubuntu 9.10 to Ubuntu 10.04.

First of all, the bluetooth connection to my wireless Logitech keyboard broke. It’s always the first thing to break, so I did what I’ve done in the past: I repeated the “set up a new bluetooth device” steps about 30 times in a row, with minor variations, until it finally registered correctly. I may have rebooted once or twice along the way, I can’t remember now.

Second, my wired connection has been flaky, sometimes working and sometimes not.  (Wireless has been fine, however.)  Rebooting had fixed the problem until today. Eventually I found this thread which told me that I needed to not just reboot, but hard reboot: turn off my machine and disconnect it from all power sources for several minutes.  Apparently this causes the network card’s firmware to be reloaded.  Miraculously enough, this worked.  Fingers crossed it’ll continue to work next time I reboot or restart.

Unfortunately, the machine’s speaker still doesn’t beep when someone pings me in Chatzilla.  That stopped working when I upgraded to 9.10.  Actually, the machine’s speaker stopped working at all after that upgrade, so I investigated and modified some config file so that it worked again with the ‘beep’ command, but it still didn’t work in Chatzilla.  It’s the one time when I’d like any kind of sound to work in Linux (I can use my Mac laptop for watching videos and all that stuff).

Having used Ubuntu 8.10, 9.04, 9.10 and now 10.04, I’m glad 10.04 is an LTS release.  It’ll be good not having to go through these steps every 6 months.