I understood the issue, soci-3.1 was originally installed on my environment (not by myself), and my autoconf macros were selecting files from both my installation of soci-3.2 performed from the source and the old one.
So I had to uninstall the previous one...