It looks like there are (at least two) William Smith's conflated in this record, as the same person could not have been in Rio de Janeiro at the same time that he was in Naples and Constantinople.  More research is required.