You need to use C+11 when build SoftHSM with Botan 1.11. auto_ptr is deprecated in C+11.
E.g:
../../../src/lib/SoftHSM.cpp:234:82: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::C_CopyObject(CK_SESSION_HANDLE, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR)':
../../../src/lib/SoftHSM.cpp:1344:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::C_GetAttributeValue(CK_SESSION_HANDLE, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG)':
../../../src/lib/SoftHSM.cpp:1461:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::C_SetAttributeValue(CK_SESSION_HANDLE, CK_OBJECT_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG)':
../../../src/lib/SoftHSM.cpp:1506:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::CreateObject(CK_SESSION_HANDLE, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR, int)':
../../../src/lib/SoftHSM.cpp:7909:29: warning: 'auto_ptr' is deprecated (declared at /usr/include/c++/4.7/backward/auto_ptr.h:87) [-Wdeprecated-declarations]