[botan-devel] Fwd: Android compilation problem (std::pair<struct dirent*, std::string> Directory_Walker::get_next_dirent())

Oleg Shalnev oleg.shalnev at gmail.com
Wed Nov 5 08:36:52 EST 2014


Good day!

Trying to complie botan 1.10.8 in linux for arm7

botan generation->
./configure.py --gen-amalgamation --cpu=armv7-a --os=linux --cc=gcc
--with-tr1=none

In method std::pair<struct dirent*, std::string> Directory_Walker::
get_next_dirent()

   {

   while(m_cur_dir.first)

      {

      struct dirent* dir = ::readdir(m_cur_dir.first);


      if(dir)

         return std::make_pair<struct dirent*, std::string>(dir,
m_cur_dir.second);


      ::closedir(m_cur_dir.first);

      m_cur_dir = std::make_pair<DIR*, std::string>(0, "");


      while(!m_dirlist.empty() && m_cur_dir.first == 0)

         {

         const std::string next_dir_name = m_dirlist[0];

         m_dirlist.pop_front();


         if(DIR* next_dir = ::opendir(next_dir_name.c_str()))

            m_cur_dir = std::make_pair(next_dir, next_dir_name);

         }

      }


   return std::make_pair<struct dirent*, std::string>(0, ""); // nothing left

   }


got this error

botan_all.cpp: In member function 'std::pair<dirent*,
std::basic_string<char> > Botan::(anonymous
namespace)::Directory_Walker::get_next_dirent()':

botan_all.cpp:21441:82: error: no matching function for call to
'make_pair(dirent*&, std::basic_string<char>&)'

botan_all.cpp:21441:82: note: candidate is:

/home/ovs/usr/project/Android/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_pair.h:262:5:
note: template<class _T1, class _T2> std::pair<typename
std::__decay_and_strip<_T1>::__type, typename
std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)

compile keys is

/home/ovs/usr/project/Android/android-ndk-r10b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++
-c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp
-ffunction-sections -funwind-tables -fstack-protector -fno-short-enums
-DANDROID -Wa,--noexecstack -std=gnu++0x -fPIC -fpermissive
-finline-functions -Wno-long-long -DBOTAN_USE_GCC_INLINE_ASM=0 -O2 -Os
-fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -mthumb -Wall
-Wno-psabi -W -D_REENTRANT -fPIE -DKALPA_OS=\"Android\"
-DKALPA_PLATFORM=\"arm7\" -DKALPA_VERSION=\"D01\" -DBASELIB_VERSION=\"D01\"
-DGLANWIDGETS_VERSION=\"D02\" -DBOTAN_USE_GCC_INLINE_ASM=0 -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB
-I/home/ovs/usr/Qt/5.3/android_armv7/mkspecs/android-g++ -I. -I.
-I/home/ovs/usr/Qt/5.3/android_armv7/include
-I/home/ovs/usr/Qt/5.3/android_armv7/include/QtGui
-I/home/ovs/usr/Qt/5.3/android_armv7/include/QtCore -Itmp
-I/home/ovs/usr/project/Android/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.6/include
-I/home/ovs/usr/project/Android/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include
-I/home/ovs/usr/project/Android/android-ndk-r10b/platforms/android-9/arch-arm/usr/include
-o tmp/botan_all.o botan_all.cpp


May be somebody knows the solution.

Thanks a lot !

-- 
Oleg Shalnev         (Kalpa Project)
----------------------------------------------
mailto: oleg at kalpa.ru
skype:  oleg_shalnev
cell    :  +79111603306
cell    :  +79187417217




-- 
Oleg Shalnev         (Kalpa Project)
----------------------------------------------
mailto: oleg at kalpa.ru
skype:  oleg_shalnev
cell    :  +79111603306
cell    :  +79187417217
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20141105/eddaa63e/attachment-0001.html>


More information about the botan-devel mailing list