There are problems when building the musicbrainz_collate extension in Ubuntu 11.10, as noted by various people at:
and now me: http://chatlogs.musicbrainz.org/musicbrainz-devel/2012/2012-01/2012-01-03.html#T00-22-35-725683
Since Ubuntu is our recommended distro, I think we should make a note in the INSTALL file that people using 11.10 need to compile the extension with gcc-4.4 and what steps they need to do in order to do that.
I disagree that doing some manual fudging with GCC versions is the solution. We should really just be able to build the extensions with the stock GCC in Ubuntu 11.10.
Maybe it's not the solution, but could you at least add something to INSTALL until it's fixed?
I'm certainly not against that, but I don't use Ubuntu at all, so I don't know what the solution is. Someone else is welcome to add it themselves, or give me a patch.
Another case: http://chatlogs.musicbrainz.org/musicbrainz-devel/2012/2012-01/2012-01-04.html#T22-23-22-692784
It seems we need something like:
Note: If you are using Ubuntu 11.10, the collate extension currently does not work with gcc 4.6 and needs to be built with an older version such as gcc 4.4. To do this, run "sudo apt-get install gcc-4.4" and copy the changes in http://git.musicbrainz.org/gitweb/?p=musicbrainz-server.git;a=commitdiff;h=force-gcc-44 to the Makefile. Alternatively, there are instructions at http://www.infohit.net/blog/post/alternative-gcc-compilers-on-ubuntu-intrepid-and-jaunty.html for setting up and switching between multiple versions of gcc.
The patch fixes the issue completely, it compiles just fine with GCC 4.6.