The latest master builds fine:
$ ./autogen.sh
$ ./configure --with-incompatible-bdb --without-qt --without-miniupnpc
$ make
Does not run:
$ bitcoind -testnet -printtoconsole
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted