Re: [Cppcms-users] Trying to build in Arch Linux
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-06-30 07:52:54
|
Several points: 1. I hadn't had a chance to test it with gcc-4.6.1 as it wasn't released when CppCMS 0.99.7 was released. It is actually really strange because this code included fix for 4.6.0 but something had changed in the compiler. These changes may fix your problem: =================================================================== --- booster/lib/system/src/posix_error.cpp (revision 1833) +++ booster/lib/system/src/posix_error.cpp (working copy) @@ -47,6 +47,7 @@ class system_error_impl : public posix_error_impl { public: + system_error_impl() {} virtual char const *name() const { return "system"; @@ -55,7 +56,7 @@ }; error_category const &get_system_category() { - static const system_error_impl se = system_error_impl(); + static const system_error_impl se; return se; } Second problem is currently CppCMS fails to compile with ICU 4.8 (3.6 up to 4.6 should work fine) as ICU had removed some API in this version. I'm working on it but it will take some time. > 4) run cmake -DDISABLE_ICONV=ON -DDISABLE_GCRYPT=ON -DDISABLE_SCGI=ON > -DDISABLE_HTTP=ON ../ and I get: 1. I would not recommend you to disable HTTP as it is very useful for debugging. Same for SCGI as "make test" will fail as test suite is designed for full build. 2. iconv is built - in into GNU libc and it is faster then ICU so I'd recommend you to keep it. Generally defaults should be good unless you want to make some embedded builds where the size of the executable matters. Artyom ----- Original Message ---- > From: Tae Sandoval Murgan <tae...@gm...> > To: cpp...@li... > Sent: Thu, June 30, 2011 7:39:46 AM > Subject: [Cppcms-users] Trying to build in Arch Linux > > Hi there: > > I'm trying to build the last release in my Arch Linux syste which runs > gcc 4.6.1, CMake 2.8.4 (I never used it before), zlib 1.2.5, PCRE > 8.12, python 2.7.2, ICU 4.8 and OpenSSL 1.0.0.d. What I did: > > 1) Download the 0.99.7 - beta 7 version from SourceForge; > 2) extract it to ~/cppcms-0.99.7/; > 3) create ~/cppcm-0.99.7/build/; > 4) cd in that directory; > 4) run cmake -DDISABLE_ICONV=ON -DDISABLE_GCRYPT=ON -DDISABLE_SCGI=ON > -DDISABLE_HTTP=ON ../ and I get: > > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test GCC_IS_GCC4 > -- Performing Test GCC_IS_GCC4 - Success > -- Looking for dlopen > -- Looking for dlopen - not found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Performing Test BOOSTER_HAS_GCC_SYNC > -- Performing Test BOOSTER_HAS_GCC_SYNC - Success > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_STDINT_H > -- Performing Test BOOSTER_HAVE_STDINT_H - Success > -- Performing Test BOOSTER_HAVE_INTTYPES_H > -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success > -- Performing Test CPPCMS_HAVE_STDINT_H > -- Performing Test CPPCMS_HAVE_STDINT_H - Success > -- Performing Test CPPCMS_HAVE_INTTYPES_H > -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success > -- Looking for atoll > -- Looking for atoll - found > -- Looking for _atoi64 > -- Looking for _atoi64 - not found > -- Looking for snprintf > -- Looking for snprintf - found > -- Looking for stat > -- Looking for stat - found > -- Looking for _stat > -- Looking for _stat - not found > -- Performing Test CPPCMS_HAVE_STD_WSTRING > -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success > -- Performing Test CPPCMS_HAVE_BSD_TM > -- Performing Test CPPCMS_HAVE_BSD_TM - Success > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success > -- Looking for dlopen > -- Looking for dlopen - not found > -- Looking for dlopen in dl > -- Looking for dlopen in dl - found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for canonicalize_file_name > -- Looking for canonicalize_file_name - found > -- Configuring done > -- Generating done > -- Build files have been written to: /home/tae/cppcms-0.99.7/build > > 5) run make and I get: > > Scanning dependencies of target booster > [ 0%] Building CXX object > booster/CMakeFiles/booster.dir/lib/ptime/src/posix_time.cpp.o > [ 1%] Building CXX object > booster/CMakeFiles/booster.dir/lib/ptime/src/ctime.cpp.o > [ 1%] Building CXX object > booster/CMakeFiles/booster.dir/lib/regex/src/pcre_regex.cpp.o > [ 1%] Building CXX object > booster/CMakeFiles/booster.dir/lib/system/src/posix_error.cpp.o > /home/tae/cppcms-0.99.7/booster/lib/system/src/posix_error.cpp: In > function ‘const booster::system::error_category& > booster::system::get_posix_category()’: > /home/tae/cppcms-0.99.7/booster/lib/system/src/posix_error.cpp:44:33: > error: uninitialized const ‘se’ [-fpermissive] > /home/tae/cppcms-0.99.7/booster/lib/system/src/posix_error.cpp:15:8: > note: ‘const class booster::system::posix_error_impl’ has no > user-provided default constructor > /home/tae/cppcms-0.99.7/booster/lib/system/src/posix_error.cpp: In > function ‘const booster::system::error_category& > booster::system::get_system_category()’: > /home/tae/cppcms-0.99.7/booster/lib/system/src/posix_error.cpp:58:34: > error: uninitialized const ‘se’ [-fpermissive] > /home/tae/cppcms-0.99.7/booster/lib/system/src/posix_error.cpp:48:8: > note: ‘const class booster::system::system_error_impl’ has no > user-provided default constructor > /home/tae/cppcms-0.99.7/booster/./booster/system_error.h: At global scope: > /home/tae/cppcms-0.99.7/booster/./booster/system_error.h:56:31: > warning: ‘booster::system::posix_category’ defined but not used > [-Wunused-variable] > make[2]: *** [booster/CMakeFiles/booster.dir/lib/system/src/posix_error.cpp.o] > Error 1 > make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 > make: *** [all] Error 2 > > As I told, I never used CMake before, and anyway, I'm a C++ n00b, so > I'm really lost. > > Thanks beforehand for any help, and sorry for my English. > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |