cppcms-users Mailing List for CppCMS C++ Web Framework (Page 79)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Artyom B. <art...@ya...> - 2012-07-06 15:46:06
|
Try to run the program with strace: strace ./program_name And see what exactly happens - why sqlite fails to open the DB. Maybe something happens there that you are not aware of? See why open() fails. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: "la...@sa..." <la...@sa...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Friday, July 6, 2012 6:16 PM >Subject: Re: [Cppcms-users] CPPDB - connection time out > > > > >The error I am having is: "Error: Unable to open database file". > >I have a connection -> cppdb::session sql("sqlite3:db=/home/common/source/DB/Mdata.db"); > >I have a process that does a lot of selects, and updates, but always after aproximatly 600 seconds i get this error, .... I also found that this error occurs when i try to do an update (when i do stat.exec()). > >my updates are like this (It works fine, on the first 600 seconds, and then it gives an error): >////////////////////////////////////////////// >stat = sql << "update reading_h set read_id = ?, date = ?, time = ? where read_id = ? and mrg_id = ?" << readId << date << time << headerReadId << mrgId; >stat.exec(); >stat.reset(); >stat.clear(); >///////////////////////////////////////////// > > >Quoting Artyom Beilis <art...@ya...>: >There is no such thing as "lost a connection" with sqlite3 DB... >>The sqlite3 database is a file and database engine operates on the file >> >>Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> >> >>>________________________________ >>> From: "la...@sa..." <la...@sa...> >>>To: cpp...@li... >>>Sent: Friday, July 6, 2012 1:58 PM >>>Subject: [Cppcms-users] CPPDB - connection time out >>> >>>Hi, >>>I am working with cppdb, with sqlite. >>> >>>I am doing a connection with cppdb::session >>>sql("sqlite3:db=/home/common/source/DB/Mdata.db"); >>> >>>But i think i lost connection after 600 seconds (10min). I already try >>>to change to, 'opt_reconnect = 1', >>> >>>but still does not work, .... i have always error after 10min. Error: >>>Unable to open database connection. >>> >>> >>> >>> >>> >>>Thanks, >>>Leandro >>> >>> >>> >>>------------------------------------------------------------------------------ >>>Live Security Virtual Conference >>>Exclusive live event will cover all the ways today's security and >>>threat landscape has changed and how IT managers can respond. Discussions >>>will include endpoint security, mobile security and the latest in malware >>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>_______________________________________________ >>>Cppcms-users mailing list >>>Cpp...@li... >>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> > > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-07-06 15:38:52
|
>________________________________ > From: Christian Gmeiner <chr...@gm...> >To: cpp...@li... >Sent: Friday, July 6, 2012 5:59 PM >Subject: [Cppcms-users] Detect expired session > >Hi all, > >is there a way to detect if a valid session gets expired? If the session is expired you will get an empty session - i.e. the session would not be loaded. > I would like to inform logged in users that their session has > expired What do you mean? If the user had lost the session due to timeout it would have to login again. There are also several models of session expiration: http://cppcms.com/wikipp/en/page/cppcms_1x_config#session > and that there may be some data lose > (changed values withoutsaving them). See, NEVER store valuable information information in the session. This is not what the session is for. Session may expire, be deleted, the user may loose the cookie. So sessions is not good for this purpose. > >thanks >-- >Christian Gmeiner, MSc > Regards, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: <la...@sa...> - 2012-07-06 15:16:25
|
The error I am having is: "Error: Unable to open database file". I have a connection -> cppdb::session sql("sqlite3:db=/home/common/source/DB/Mdata.db"); I have a process that does a lot of selects, and updates, but always after aproximatly 600 seconds i get this error, .... I also found that this error occurs when i try to do an update (when i do stat.exec()). my updates are like this (It works fine, on the first 600 seconds, and then it gives an error): ////////////////////////////////////////////// stat = sql << "update reading_h set read_id = ?, date = ?, time = ? where read_id = ? and mrg_id = ?" << readId << date << time << headerReadId << mrgId; stat.exec(); stat.reset(); stat.clear(); ///////////////////////////////////////////// Quoting Artyom Beilis <art...@ya...>: > There is no such thing as "lost a connection" with sqlite3 DB... > The sqlite3 database is a file and database engine operates on the file > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > >> >> ------------------------- >> FROM: "la...@sa..." <la...@sa...> >> TO: cpp...@li... >> SENT: Friday, July 6, 2012 1:58 PM >> SUBJECT: [Cppcms-users] CPPDB - connection time out >> >> >> Hi, >> I am working with cppdb, with sqlite. >> >> I am doing a connection with cppdb::session >> sql("sqlite3:db=/home/common/source/DB/Mdata.db"); >> >> But i think i lost connection after 600 seconds (10min). I >> already try >> to change to, 'opt_reconnect = 1', >> >> but still does not work, .... i have always error after >> 10min. Error: >> Unable to open database connection. >> >> >> >> >> >> Thanks, >> Leandro >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can >> respond. Discussions >> will include endpoint security, mobile security and the >> latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> >> >> > > > |
From: Christian G. <chr...@gm...> - 2012-07-06 14:59:35
|
Hi all, is there a way to detect if a valid session gets expired? I would like to inform logged in users that their session has expired and that there may be some data lose (changed values without saving them). thanks -- Christian Gmeiner, MSc |
From: Artyom B. <art...@ya...> - 2012-07-06 14:31:15
|
There is no one yet. There is an not-so-up-to-date page: http://cppcms.com/wikipp/en/page/ref_utils It includes brief docs for cppcms_tcp_scale (which was changed to cppcms_scale) Generally "cppcms_scale -h" would give you a list of options. It also can use json file configuration similar to general CppCMS programs so options like --session-gc goes to { "session" : { "gc" : ... } } The role of cppcms_scale and the old cppcms_tcp_scale it the same - to provide cache and sessions shared over multiple hosts. Also this page would give you a general idea of how and when to use cppcms_scale http://cppcms.com/wikipp/en/page/cppcms_1x_high_performance#Scaling.Up Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Leon <le...@wl...> >To: cpp...@li... >Sent: Friday, July 6, 2012 10:14 AM >Subject: [Cppcms-users] cppcms_scale documentation > > >Hi, > > >I was not able to find the wiki page for cppcms_scale. Can anyone give me a link? > > >Thanks! >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-07-06 14:26:32
|
1st please register to the mailing list 2ns show the configuration file . Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Manveru <ma...@ma...> >To: cpp...@li... >Sent: Thursday, July 5, 2012 11:51 PM >Subject: Re: [Cppcms-users] wikipp: all uri returns 302 on internal cppcms webserver > > > > > >2012/6/10 Manveru <ma...@ma...> > >Hello, >> >>I've just build wikipp from svn trunk and it runs. I set up the internal web server for testing purpose. But after that Firefox complains about bad redirections. So, I tested what happen if I manually entered HTTP requests and the server always return 302. >> >> >>Trying 127.0.0.1... >>Connected to localhost. >>Escape character is '^]'. >>GET /wikipp/en/page/main HTTP/1.1 >>Host: localhost >> >>HTTP/1.0 302 Found >>Server: CppCMS-Embedded/1.1.0 >>Connection: close >>Content-Type: text/html; charset=utf-8 >>Location: /wikipp/en/page/main >>Status: 302 Found >>X-Powered-By: CppCMS/1.1.0 >> >>Connection closed by foreign host. >> >>What shall I check to get it working? The log of the wikipp contains no errors: >> >> >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >>2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) >> >>Whole log contains similar entries. I had once working wikipp, but based on old version of cppcms. >> >>Thanks in advance for any advice. >>- >> > >I turned on debug logging (as Marcell adviced), and still only thing I have in the log is: >2012-07-05 22:47:36; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) > >May this happen because I took sqlite db from my previous instance of some older wikipp? If yes how to properly migrate the database? > > >-- >Manveru >jabber: ma...@ma... > gg: 1624001 > http://www.manveru.pl > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-07-06 14:21:59
|
There is no such thing as "lost a connection" with sqlite3 DB... The sqlite3 database is a file and database engine operates on the file Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: "la...@sa..." <la...@sa...> >To: cpp...@li... >Sent: Friday, July 6, 2012 1:58 PM >Subject: [Cppcms-users] CPPDB - connection time out > > >Hi, >I am working with cppdb, with sqlite. > >I am doing a connection with cppdb::session >sql("sqlite3:db=/home/common/source/DB/Mdata.db"); > >But i think i lost connection after 600 seconds (10min). I already try >to change to, 'opt_reconnect = 1', > >but still does not work, .... i have always error after 10min. Error: >Unable to open database connection. > > > > > >Thanks, >Leandro > > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: <la...@sa...> - 2012-07-06 10:59:13
|
Hi, I am working with cppdb, with sqlite. I am doing a connection with cppdb::session sql("sqlite3:db=/home/common/source/DB/Mdata.db"); But i think i lost connection after 600 seconds (10min). I already try to change to, 'opt_reconnect = 1', but still does not work, .... i have always error after 10min. Error: Unable to open database connection. Thanks, Leandro |
From: Leon <le...@wl...> - 2012-07-06 07:30:24
|
Hi, I was not able to find the wiki page for cppcms_scale. Can anyone give me a link? Thanks! |
From: Manveru <ma...@ma...> - 2012-07-05 21:13:43
|
2012/6/10 Manveru <ma...@ma...> > Hello, > > I've just build wikipp from svn trunk and it runs. I set up the internal > web server for testing purpose. But after that Firefox complains about bad > redirections. So, I tested what happen if I manually entered HTTP requests > and the server always return 302. > > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > GET /wikipp/en/page/main HTTP/1.1 > Host: localhost > > HTTP/1.0 302 Found > Server: CppCMS-Embedded/1.1.0 > Connection: close > Content-Type: text/html; charset=utf-8 > Location: /wikipp/en/page/main > Status: 302 Found > X-Powered-By: CppCMS/1.1.0 > > Connection closed by foreign host. > > What shall I check to get it working? The log of the wikipp contains no > errors: > > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > 2012-06-10 13:24:20; cppcms_http, info: GET /wikipp/en/page/main > (http_api.cpp:251) > > Whole log contains similar entries. I had once working wikipp, but based > on old version of cppcms. > > Thanks in advance for any advice. > - > I turned on debug logging (as Marcell adviced), and still only thing I have in the log is: 2012-07-05 22:47:36; cppcms_http, info: GET /wikipp/en/page/main (http_api.cpp:251) May this happen because I took sqlite db from my previous instance of some older wikipp? If yes how to properly migrate the database? -- Manveru jabber: ma...@ma... gg: 1624001 http://www.manveru.pl |
From: Χρήστος Π. <cpa...@gm...> - 2012-07-05 10:31:06
|
*Dear Sir/Madam, I try to build the CppCMS-1.0.1 in AIX 5.3 using gcc and g++ (version 4.2.0) and the following error occurs: * *[ 15%] Built target booster [ 15%] Building CXX object CMakeFiles/cppcms.dir/src/cgi_api.cpp.o In file included from /f1/users/cpap/Diafora_g/CppCMS/cppcms-1.0.1/src/cgi_api.cpp:14: /f1/users/cpap/Diafora_g/CppCMS/cppcms-1.0.1/private/http_protocol.h: In function 'std::string cppcms::http::protocol::quote(const std::string&)': /f1/users/cpap/Diafora_g/CppCMS/cppcms-1.0.1/private/http_protocol.h:131: warning: comparison is always true due to limited range of data type /f1/users/cpap/Diafora_g/CppCMS/cppcms-1.0.1/src/cgi_api.cpp: At global scope: /f1/users/cpap/Diafora_g/CppCMS/cppcms-1.0.1/src/cgi_api.cpp:568: internal compiler error: Illegal instruction * *Can you please advise how I could overcome this error? Do you know if an other gcc/g++ version could build cppcms in AIX?* *Is it possible to build cppcms in AIX? Thank you in advance,** Christos Papaloukopoulos Software Engineer* |
From: Artyom B. <art...@ya...> - 2012-07-05 07:13:25
|
http_timeouts_test_write was fixed two month ago in trunk - it is a bug in unit test. Nothing to worry about. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Isaiah Oloyede <isa...@gm...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Wednesday, July 4, 2012 11:41 PM >Subject: Re: [Cppcms-users] Make Failed on Mac OS X Lion (Version 10.7.4) > > >Thank you very much. It worked. I did this in predefined_formatters.h > > case fmt_spell: > ap.reset(new icu::RuleBasedNumberFormat(icu::URBNF_SPELLOUT,locale_,err)); > break; > case fmt_ord: > ap.reset(new icu::RuleBasedNumberFormat(icu::URBNF_ORDINAL,locale_,err)); > break; > >I have created a ticket for it to remind you to apply the patch. > >However, I was running the tests and I got one failed test. > > >99% tests passed, 1 tests failed out of 96 > >Total Test time (real) = 260.37 sec > >The following tests FAILED: > 26 - http_timeouts_test_write (Failed) >Errors while running CTest >make: *** [test] Error 8 > >I read your comments elsewhere ( http://www.digipedia.pl/usenet/thread/14911/1257/ ) that it is nothing to worry about. Have you been able to find out why it fails? > > > >On Wed, Jul 4, 2012 at 2:41 PM, Artyom Beilis <art...@ya...> wrote: > >This is something that was fixed in Boost.Trunk - hadn't merged it yet to CppCMS, this >>was caused by latest changes in icu-4.9 where using namespace icu was removed globally. >> >> >> >>You can fix it by chaging URBNF_SPELLOUT to icu::URBNF_SPELLOUT and >>URBNF_ORDINAL to icu::URBNF_ORDINAL or by just adding "using namespace icu" to this function >> >> >>Can you please fill the ticket so I'll remember to merge the fix? >> >> >>Thanks, >> >>Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> >> >>>________________________________ >>> From: Isaiah Oloyede <isa...@gm...> >>>To: cpp...@li... >>>Sent: Wednesday, July 4, 2012 9:54 PM >>>Subject: [Cppcms-users] Make Failed on Mac OS X Lion (Version 10.7.4) >>> >>> >>> >>>Building cppcms failed on my MacBook Pro. >>>I have no idea what I am doing wrongly. I think I have all the requirements installed. >>> >>> * GCC version 4.8.0 20120704 (experimental) (GCC) >>> * Cmake Version is 2.8-7 >>> * Zlib library >>> * PCRE library. >>> * Python Version 2.7 >>> * ICU Library >>> * gcryptI would appreciate any guidance on what I need to do differently. Thank you very much. >>> >>>This is the build log. >>> >>> >>>Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ cmake -DCMAKE_INCLUDE_PATH=/opt/local/include -DCMAKE_LIBRARY_PATH=/opt/local/lib -DCMAKE_INSTALL_PREFIX=/opt/local .. >>>>-- The C compiler identification is GNU >>>>-- The CXX compiler identification is GNU >>>>-- Checking whether C compiler has -isysroot >>>>-- Checking whether C compiler has -isysroot - yes >>>>-- Checking whether C compiler supports OSX deployment target flag >>>>-- Checking whether C compiler supports OSX deployment target flag - yes >>>>-- Check for working C compiler: /opt/local/bin/gcc >>>>-- Check for working C compiler: /opt/local/bin/gcc -- works >>>>-- Detecting C compiler ABI info >>>>-- Detecting C compiler ABI info - done >>>>-- Checking whether CXX compiler has -isysroot >>>>-- Checking whether CXX compiler has -isysroot - yes >>>>-- Checking whether CXX compiler supports OSX deployment target flag >>>>-- Checking whether CXX compiler supports OSX deployment target flag - yes >>>>-- Check for working CXX compiler: /opt/local/bin/c++ >>>>-- Check for working CXX compiler: /opt/local/bin/c++ -- works >>>>-- Detecting CXX compiler ABI info >>>>-- Detecting CXX compiler ABI info - done >>>>CMake Warning at /Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): >>>> CPack.cmake has already been included!! >>>>Call Stack (most recent call first): >>>> booster/CMakeLists.txt:14 (include) >>>> >>>> >>>>-- Looking for ICU libraries >>>>-- ICU Found, building booster locale >>>>-- Performing Test LIBC_ICONV >>>>-- Performing Test LIBC_ICONV - Failed >>>>-- Performing Test GCC_IS_GCC4 >>>>-- Performing Test GCC_IS_GCC4 - Success >>>>-- Looking for dlopen >>>>-- Looking for dlopen - 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_EXECINFO >>>>-- Performing Test BOOSTER_HAVE_EXECINFO - Success >>>>-- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE >>>>-- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE - Success >>>>-- 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 - Success >>>>-- 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 - 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 - not found >>>>-- Configuring done >>>>-- Generating done >>>>-- Build files have been written to: /Users/isaiaholoyede/Downloads/cppcms/build >>>>Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ make >>>>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 >>>>[ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows_error.cpp.o >>>>[ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_category.cpp.o >>>>[ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_timer.cpp.o >>>>[ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.cpp.o >>>>[ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service.cpp.o >>>>[ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cpp.o >>>>[ 4%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/select_iterrupter.cpp.o >>>>[ 4%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/basic_io_device.cpp.o >>>>[ 4%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/basic_socket.cpp.o >>>>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/acceptor.cpp.o >>>>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/stream_socket.cpp.o >>>>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/smart_ptr/src/sp_counted_base.cpp.o >>>>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/smart_ptr/src/atomic_counter.cpp.o >>>>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/shared_object/src/shared_object.cpp.o >>>>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/log/src/log.cpp.o >>>>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/iostreams/src/streambuf.cpp.o >>>>[ 7%] Building CXX object booster/CMakeFiles/booster.dir/lib/nowide/src/convert.cpp.o >>>>[ 7%] Building CXX object booster/CMakeFiles/booster.dir/lib/backtrace/src/backtrace.cpp.o >>>>[ 7%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/encoding/codepage.cpp.o >>>>[ 8%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/date_time.cpp.o >>>>[ 8%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/format.cpp.o >>>>[ 8%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/formatting.cpp.o >>>>[ 9%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/generator.cpp.o >>>>[ 9%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/ids.cpp.o >>>>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, >>>> from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/shared/ids.cpp:9: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: In function ‘int booster::locale::boundary::details::compare_text(LeftIterator, LeftIterator, RightIterator, RightIterator)’: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: warning: typedef ‘right_iterator’ locally defined but not used [-Wunused-local-typedefs] >>>> typedef RightIterator right_iterator; >>>> ^ >>>>[ 9%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/localization_backend.cpp.o >>>>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/message.cpp.o >>>>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/mo_lambda.cpp.o >>>>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/codecvt_converter.cpp.o >>>>[ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/default_locale.cpp.o >>>>[ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/info.cpp.o >>>>[ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/locale_data.cpp.o >>>>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/boundary.cpp.o >>>>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, >>>> from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/boundary.cpp:9: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: In function ‘int booster::locale::boundary::details::compare_text(LeftIterator, LeftIterator, RightIterator, RightIterator)’: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: warning: typedef ‘right_iterator’ locally defined but not used [-Wunused-local-typedefs] >>>> typedef RightIterator right_iterator; >>>> ^ >>>>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/codecvt.cpp.o >>>>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/collator.cpp.o >>>>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/conversion.cpp.o >>>>[ 13%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/date_time.cpp.o >>>>[ 13%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o >>>>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h: In member function ‘icu_49::NumberFormat* booster::locale::impl_icu::icu_formatters_cache::number_format(booster::locale::impl_icu::icu_formatters_cache::fmt_type) const’: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: error: ‘URBNF_SPELLOUT’ was not declared in this scope >>>> ap.reset(new icu::RuleBasedNumberFormat(URBNF_SPELLOUT,locale_,err)); >>>> ^ >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: note: suggested alternative: >>>>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: >>>>/usr/local/include/unicode/rbnf.h:49:5: note: ‘URBNF_SPELLOUT’ >>>> URBNF_SPELLOUT, >>>> ^ >>>>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: error: ‘URBNF_ORDINAL’ was not declared in this scope >>>> ap.reset(new icu::RuleBasedNumberFormat(URBNF_ORDINAL,locale_,err)); >>>> ^ >>>>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: note: suggested alternative: >>>>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: >>>>/usr/local/include/unicode/rbnf.h:50:5: note: ‘URBNF_ORDINAL’ >>>> URBNF_ORDINAL, >>>> ^ >>>>make[2]: *** [booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o] Error 1 >>>>make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 >>>>make: *** [all] Error 2 >>>> >>> >>>-- >>>Oloyede, Isaiah O >>>KC2SVH >>>"Gratitude is the currency of future demands." - Isaiah Oloyede >>> >>>------------------------------------------------------------------------------ >>>Live Security Virtual Conference >>>Exclusive live event will cover all the ways today's security and >>>threat landscape has changed and how IT managers can respond. Discussions >>>will include endpoint security, mobile security and the latest in malware >>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>_______________________________________________ >>>Cppcms-users mailing list >>>Cpp...@li... >>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >>> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > >-- >Oloyede, Isaiah O >KC2SVH >"Gratitude is the currency of future demands." - Isaiah Oloyede > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Isaiah O. <isa...@gm...> - 2012-07-04 20:41:27
|
Thank you very much. It worked. I did this in predefined_formatters.h case fmt_spell: ap.reset(new icu::RuleBasedNumberFormat(icu::URBNF_SPELLOUT,locale_,err)); break; case fmt_ord: ap.reset(new icu::RuleBasedNumberFormat(icu::URBNF_ORDINAL,locale_,err)); break; I have created a ticket for it to remind you to apply the patch. However, I was running the tests and I got one failed test. 99% tests passed, 1 tests failed out of 96 Total Test time (real) = 260.37 sec The following tests FAILED: 26 - http_timeouts_test_write (Failed) Errors while running CTest make: *** [test] Error 8 I read your comments elsewhere ( http://www.digipedia.pl/usenet/thread/14911/1257/ ) that it is nothing to worry about. Have you been able to find out why it fails? On Wed, Jul 4, 2012 at 2:41 PM, Artyom Beilis <art...@ya...> wrote: > This is something that was fixed in Boost.Trunk - hadn't merged it yet to > CppCMS, this > was caused by latest changes in icu-4.9 where using namespace icu was > removed globally. > > You can fix it by chaging URBNF_SPELLOUT to icu::URBNF_SPELLOUT and > URBNF_ORDINAL to icu::URBNF_ORDINAL or by just adding "using namespace > icu" to this function > > Can you please fill the ticket so I'll remember to merge the fix? > > Thanks, > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Isaiah Oloyede <isa...@gm...> > *To:* cpp...@li... > *Sent:* Wednesday, July 4, 2012 9:54 PM > *Subject:* [Cppcms-users] Make Failed on Mac OS X Lion (Version 10.7.4) > > Building cppcms failed on my MacBook Pro. > I have no idea what I am doing wrongly. I think I have all the > requirements installed. > > - GCC version 4.8.0 20120704 (experimental) (GCC) > - Cmake Version is 2.8-7 > - Zlib library > - PCRE library. > - Python Version 2.7 > - ICU Library > - gcrypt > > I would appreciate any guidance on what I need to do differently. Thank > you very much. > > This is the build log. > > Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ cmake > -DCMAKE_INCLUDE_PATH=/opt/local/include -DCMAKE_LIBRARY_PATH=/opt/local/lib > -DCMAKE_INSTALL_PREFIX=/opt/local .. > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Checking whether C compiler has -isysroot > -- Checking whether C compiler has -isysroot - yes > -- Checking whether C compiler supports OSX deployment target flag > -- Checking whether C compiler supports OSX deployment target flag - yes > -- Check for working C compiler: /opt/local/bin/gcc > -- Check for working C compiler: /opt/local/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Checking whether CXX compiler has -isysroot > -- Checking whether CXX compiler has -isysroot - yes > -- Checking whether CXX compiler supports OSX deployment target flag > -- Checking whether CXX compiler supports OSX deployment target flag - yes > -- Check for working CXX compiler: /opt/local/bin/c++ > -- Check for working CXX compiler: /opt/local/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > CMake Warning at /Applications/CMake > 2.8-7.app/Contents/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): > CPack.cmake has already been included!! > Call Stack (most recent call first): > booster/CMakeLists.txt:14 (include) > > > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test LIBC_ICONV > -- Performing Test LIBC_ICONV - Failed > -- Performing Test GCC_IS_GCC4 > -- Performing Test GCC_IS_GCC4 - Success > -- Looking for dlopen > -- Looking for dlopen - 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_EXECINFO > -- Performing Test BOOSTER_HAVE_EXECINFO - Success > -- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE > -- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE - Success > -- 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 - Success > -- 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 - 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 - not found > -- Configuring done > -- Generating done > -- Build files have been written to: > /Users/isaiaholoyede/Downloads/cppcms/build > Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ make > 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 > [ 2%] Building CXX object > booster/CMakeFiles/booster.dir/lib/system/src/windows_error.cpp.o > [ 2%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/aio_category.cpp.o > [ 2%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/deadline_timer.cpp.o > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.cpp.o > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/io_service.cpp.o > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cpp.o > [ 4%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/select_iterrupter.cpp.o > [ 4%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/basic_io_device.cpp.o > [ 4%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/basic_socket.cpp.o > [ 5%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/acceptor.cpp.o > [ 5%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/stream_socket.cpp.o > [ 5%] Building CXX object > booster/CMakeFiles/booster.dir/lib/smart_ptr/src/sp_counted_base.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/smart_ptr/src/atomic_counter.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/shared_object/src/shared_object.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/log/src/log.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/iostreams/src/streambuf.cpp.o > [ 7%] Building CXX object > booster/CMakeFiles/booster.dir/lib/nowide/src/convert.cpp.o > [ 7%] Building CXX object > booster/CMakeFiles/booster.dir/lib/backtrace/src/backtrace.cpp.o > [ 7%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/encoding/codepage.cpp.o > [ 8%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/date_time.cpp.o > [ 8%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/format.cpp.o > [ 8%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/formatting.cpp.o > [ 9%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/generator.cpp.o > [ 9%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/ids.cpp.o > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, > from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/shared/ids.cpp:9: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: > In function ‘int > booster::locale::boundary::details::compare_text(LeftIterator, > LeftIterator, RightIterator, RightIterator)’: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: > warning: typedef ‘right_iterator’ locally defined but not used > [-Wunused-local-typedefs] > typedef RightIterator right_iterator; > ^ > [ 9%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/localization_backend.cpp.o > [ 10%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/message.cpp.o > [ 10%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/mo_lambda.cpp.o > [ 10%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/codecvt_converter.cpp.o > [ 11%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/default_locale.cpp.o > [ 11%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/info.cpp.o > [ 11%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/locale_data.cpp.o > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/boundary.cpp.o > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, > from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/boundary.cpp:9: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: > In function ‘int > booster::locale::boundary::details::compare_text(LeftIterator, > LeftIterator, RightIterator, RightIterator)’: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: > warning: typedef ‘right_iterator’ locally defined but not used > [-Wunused-local-typedefs] > typedef RightIterator right_iterator; > ^ > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/codecvt.cpp.o > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/collator.cpp.o > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/conversion.cpp.o > [ 13%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/date_time.cpp.o > [ 13%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h: > In member function ‘icu_49::NumberFormat* > booster::locale::impl_icu::icu_formatters_cache::number_format(booster::locale::impl_icu::icu_formatters_cache::fmt_type) > const’: > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: > error: ‘URBNF_SPELLOUT’ was not declared in this scope > ap.reset(new > icu::RuleBasedNumberFormat(URBNF_SPELLOUT,locale_,err)); > ^ > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: > note: suggested alternative: > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: > /usr/local/include/unicode/rbnf.h:49:5: note: ‘URBNF_SPELLOUT’ > URBNF_SPELLOUT, > ^ > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: > error: ‘URBNF_ORDINAL’ was not declared in this scope > ap.reset(new > icu::RuleBasedNumberFormat(URBNF_ORDINAL,locale_,err)); > ^ > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: > note: suggested alternative: > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: > /usr/local/include/unicode/rbnf.h:50:5: note: ‘URBNF_ORDINAL’ > URBNF_ORDINAL, > ^ > make[2]: *** > [booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o] Error 1 > make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 > make: *** [all] Error 2 > > > > -- > Oloyede, Isaiah O > KC2SVH > "Gratitude is the currency of future demands." - Isaiah Oloyede > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- Oloyede, Isaiah O KC2SVH "Gratitude is the currency of future demands." - Isaiah Oloyede |
From: Artyom B. <art...@ya...> - 2012-07-04 19:41:11
|
This is something that was fixed in Boost.Trunk - hadn't merged it yet to CppCMS, this was caused by latest changes in icu-4.9 where using namespace icu was removed globally. You can fix it by chaging URBNF_SPELLOUT to icu::URBNF_SPELLOUT and URBNF_ORDINAL to icu::URBNF_ORDINAL or by just adding "using namespace icu" to this function Can you please fill the ticket so I'll remember to merge the fix? Thanks, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Isaiah Oloyede <isa...@gm...> >To: cpp...@li... >Sent: Wednesday, July 4, 2012 9:54 PM >Subject: [Cppcms-users] Make Failed on Mac OS X Lion (Version 10.7.4) > > >Building cppcms failed on my MacBook Pro. >I have no idea what I am doing wrongly. I think I have all the requirements installed. > > * GCC version 4.8.0 20120704 (experimental) (GCC) > * Cmake Version is 2.8-7 > * Zlib library > * PCRE library. > * Python Version 2.7 > * ICU Library > * gcryptI would appreciate any guidance on what I need to do differently. Thank you very much. > >This is the build log. > > >Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ cmake -DCMAKE_INCLUDE_PATH=/opt/local/include -DCMAKE_LIBRARY_PATH=/opt/local/lib -DCMAKE_INSTALL_PREFIX=/opt/local .. >>-- The C compiler identification is GNU >>-- The CXX compiler identification is GNU >>-- Checking whether C compiler has -isysroot >>-- Checking whether C compiler has -isysroot - yes >>-- Checking whether C compiler supports OSX deployment target flag >>-- Checking whether C compiler supports OSX deployment target flag - yes >>-- Check for working C compiler: /opt/local/bin/gcc >>-- Check for working C compiler: /opt/local/bin/gcc -- works >>-- Detecting C compiler ABI info >>-- Detecting C compiler ABI info - done >>-- Checking whether CXX compiler has -isysroot >>-- Checking whether CXX compiler has -isysroot - yes >>-- Checking whether CXX compiler supports OSX deployment target flag >>-- Checking whether CXX compiler supports OSX deployment target flag - yes >>-- Check for working CXX compiler: /opt/local/bin/c++ >>-- Check for working CXX compiler: /opt/local/bin/c++ -- works >>-- Detecting CXX compiler ABI info >>-- Detecting CXX compiler ABI info - done >>CMake Warning at /Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): >> CPack.cmake has already been included!! >>Call Stack (most recent call first): >> booster/CMakeLists.txt:14 (include) >> >> >>-- Looking for ICU libraries >>-- ICU Found, building booster locale >>-- Performing Test LIBC_ICONV >>-- Performing Test LIBC_ICONV - Failed >>-- Performing Test GCC_IS_GCC4 >>-- Performing Test GCC_IS_GCC4 - Success >>-- Looking for dlopen >>-- Looking for dlopen - 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_EXECINFO >>-- Performing Test BOOSTER_HAVE_EXECINFO - Success >>-- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE >>-- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE - Success >>-- 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 - Success >>-- 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 - 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 - not found >>-- Configuring done >>-- Generating done >>-- Build files have been written to: /Users/isaiaholoyede/Downloads/cppcms/build >>Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ make >>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 >>[ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows_error.cpp.o >>[ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_category.cpp.o >>[ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_timer.cpp.o >>[ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.cpp.o >>[ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service.cpp.o >>[ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cpp.o >>[ 4%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/select_iterrupter.cpp.o >>[ 4%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/basic_io_device.cpp.o >>[ 4%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/basic_socket.cpp.o >>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/acceptor.cpp.o >>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/stream_socket.cpp.o >>[ 5%] Building CXX object booster/CMakeFiles/booster.dir/lib/smart_ptr/src/sp_counted_base.cpp.o >>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/smart_ptr/src/atomic_counter.cpp.o >>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/shared_object/src/shared_object.cpp.o >>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/log/src/log.cpp.o >>[ 6%] Building CXX object booster/CMakeFiles/booster.dir/lib/iostreams/src/streambuf.cpp.o >>[ 7%] Building CXX object booster/CMakeFiles/booster.dir/lib/nowide/src/convert.cpp.o >>[ 7%] Building CXX object booster/CMakeFiles/booster.dir/lib/backtrace/src/backtrace.cpp.o >>[ 7%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/encoding/codepage.cpp.o >>[ 8%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/date_time.cpp.o >>[ 8%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/format.cpp.o >>[ 8%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/formatting.cpp.o >>[ 9%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/generator.cpp.o >>[ 9%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/ids.cpp.o >>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, >> from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/shared/ids.cpp:9: >>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: In function ‘int booster::locale::boundary::details::compare_text(LeftIterator, LeftIterator, RightIterator, RightIterator)’: >>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: warning: typedef ‘right_iterator’ locally defined but not used [-Wunused-local-typedefs] >> typedef RightIterator right_iterator; >> ^ >>[ 9%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/localization_backend.cpp.o >>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/message.cpp.o >>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/shared/mo_lambda.cpp.o >>[ 10%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/codecvt_converter.cpp.o >>[ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/default_locale.cpp.o >>[ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/info.cpp.o >>[ 11%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/util/locale_data.cpp.o >>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/boundary.cpp.o >>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, >> from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/boundary.cpp:9: >>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: In function ‘int booster::locale::boundary::details::compare_text(LeftIterator, LeftIterator, RightIterator, RightIterator)’: >>/Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: warning: typedef ‘right_iterator’ locally defined but not used [-Wunused-local-typedefs] >> typedef RightIterator right_iterator; >> ^ >>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/codecvt.cpp.o >>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/collator.cpp.o >>[ 12%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/conversion.cpp.o >>[ 13%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/date_time.cpp.o >>[ 13%] Building CXX object booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o >>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: >>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h: In member function ‘icu_49::NumberFormat* booster::locale::impl_icu::icu_formatters_cache::number_format(booster::locale::impl_icu::icu_formatters_cache::fmt_type) const’: >>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: error: ‘URBNF_SPELLOUT’ was not declared in this scope >> ap.reset(new icu::RuleBasedNumberFormat(URBNF_SPELLOUT,locale_,err)); >> ^ >>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: note: suggested alternative: >>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: >>/usr/local/include/unicode/rbnf.h:49:5: note: ‘URBNF_SPELLOUT’ >> URBNF_SPELLOUT, >> ^ >>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: >>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: error: ‘URBNF_ORDINAL’ was not declared in this scope >> ap.reset(new icu::RuleBasedNumberFormat(URBNF_ORDINAL,locale_,err)); >> ^ >>/Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: note: suggested alternative: >>In file included from /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: >>/usr/local/include/unicode/rbnf.h:50:5: note: ‘URBNF_ORDINAL’ >> URBNF_ORDINAL, >> ^ >>make[2]: *** [booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o] Error 1 >>make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 >>make: *** [all] Error 2 >> > >-- >Oloyede, Isaiah O >KC2SVH >"Gratitude is the currency of future demands." - Isaiah Oloyede > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Isaiah O. <isa...@gm...> - 2012-07-04 18:54:19
|
Building cppcms failed on my MacBook Pro. I have no idea what I am doing wrongly. I think I have all the requirements installed. - GCC version 4.8.0 20120704 (experimental) (GCC) - Cmake Version is 2.8-7 - Zlib library - PCRE library. - Python Version 2.7 - ICU Library - gcrypt I would appreciate any guidance on what I need to do differently. Thank you very much. This is the build log. Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ cmake > -DCMAKE_INCLUDE_PATH=/opt/local/include -DCMAKE_LIBRARY_PATH=/opt/local/lib > -DCMAKE_INSTALL_PREFIX=/opt/local .. > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Checking whether C compiler has -isysroot > -- Checking whether C compiler has -isysroot - yes > -- Checking whether C compiler supports OSX deployment target flag > -- Checking whether C compiler supports OSX deployment target flag - yes > -- Check for working C compiler: /opt/local/bin/gcc > -- Check for working C compiler: /opt/local/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Checking whether CXX compiler has -isysroot > -- Checking whether CXX compiler has -isysroot - yes > -- Checking whether CXX compiler supports OSX deployment target flag > -- Checking whether CXX compiler supports OSX deployment target flag - yes > -- Check for working CXX compiler: /opt/local/bin/c++ > -- Check for working CXX compiler: /opt/local/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > CMake Warning at /Applications/CMake > 2.8-7.app/Contents/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): > CPack.cmake has already been included!! > Call Stack (most recent call first): > booster/CMakeLists.txt:14 (include) > > > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test LIBC_ICONV > -- Performing Test LIBC_ICONV - Failed > -- Performing Test GCC_IS_GCC4 > -- Performing Test GCC_IS_GCC4 - Success > -- Looking for dlopen > -- Looking for dlopen - 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_EXECINFO > -- Performing Test BOOSTER_HAVE_EXECINFO - Success > -- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE > -- Performing Test BOOSTER_HAVE_UNWIND_BACKTRACE - Success > -- 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 - Success > -- 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 - 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 - not found > -- Configuring done > -- Generating done > -- Build files have been written to: > /Users/isaiaholoyede/Downloads/cppcms/build > Isaiah-Oloyedes-MacBook-Pro:build isaiaholoyede$ make > 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 > [ 2%] Building CXX object > booster/CMakeFiles/booster.dir/lib/system/src/windows_error.cpp.o > [ 2%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/aio_category.cpp.o > [ 2%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/deadline_timer.cpp.o > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.cpp.o > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/io_service.cpp.o > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cpp.o > [ 4%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/select_iterrupter.cpp.o > [ 4%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/basic_io_device.cpp.o > [ 4%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/basic_socket.cpp.o > [ 5%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/acceptor.cpp.o > [ 5%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/stream_socket.cpp.o > [ 5%] Building CXX object > booster/CMakeFiles/booster.dir/lib/smart_ptr/src/sp_counted_base.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/smart_ptr/src/atomic_counter.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/shared_object/src/shared_object.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/log/src/log.cpp.o > [ 6%] Building CXX object > booster/CMakeFiles/booster.dir/lib/iostreams/src/streambuf.cpp.o > [ 7%] Building CXX object > booster/CMakeFiles/booster.dir/lib/nowide/src/convert.cpp.o > [ 7%] Building CXX object > booster/CMakeFiles/booster.dir/lib/backtrace/src/backtrace.cpp.o > [ 7%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/encoding/codepage.cpp.o > [ 8%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/date_time.cpp.o > [ 8%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/format.cpp.o > [ 8%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/formatting.cpp.o > [ 9%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/generator.cpp.o > [ 9%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/ids.cpp.o > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, > from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/shared/ids.cpp:9: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: > In function ‘int > booster::locale::boundary::details::compare_text(LeftIterator, > LeftIterator, RightIterator, RightIterator)’: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: > warning: typedef ‘right_iterator’ locally defined but not used > [-Wunused-local-typedefs] > typedef RightIterator right_iterator; > ^ > [ 9%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/localization_backend.cpp.o > [ 10%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/message.cpp.o > [ 10%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/shared/mo_lambda.cpp.o > [ 10%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/codecvt_converter.cpp.o > [ 11%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/default_locale.cpp.o > [ 11%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/info.cpp.o > [ 11%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/util/locale_data.cpp.o > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/boundary.cpp.o > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary.h:13:0, > from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/boundary.cpp:9: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h: > In function ‘int > booster::locale::boundary::details::compare_text(LeftIterator, > LeftIterator, RightIterator, RightIterator)’: > /Users/isaiaholoyede/Downloads/cppcms/booster/./booster/locale/boundary/segment.h:30:35: > warning: typedef ‘right_iterator’ locally defined but not used > [-Wunused-local-typedefs] > typedef RightIterator right_iterator; > ^ > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/codecvt.cpp.o > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/collator.cpp.o > [ 12%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/conversion.cpp.o > [ 13%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/date_time.cpp.o > [ 13%] Building CXX object > booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h: > In member function ‘icu_49::NumberFormat* > booster::locale::impl_icu::icu_formatters_cache::number_format(booster::locale::impl_icu::icu_formatters_cache::fmt_type) > const’: > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: > error: ‘URBNF_SPELLOUT’ was not declared in this scope > ap.reset(new > icu::RuleBasedNumberFormat(URBNF_SPELLOUT,locale_,err)); > ^ > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:127:61: > note: suggested alternative: > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: > /usr/local/include/unicode/rbnf.h:49:5: note: ‘URBNF_SPELLOUT’ > URBNF_SPELLOUT, > ^ > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:25:0: > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: > error: ‘URBNF_ORDINAL’ was not declared in this scope > ap.reset(new > icu::RuleBasedNumberFormat(URBNF_ORDINAL,locale_,err)); > ^ > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/predefined_formatters.h:130:61: > note: suggested alternative: > In file included from > /Users/isaiaholoyede/Downloads/cppcms/booster/lib/locale/src/icu/formatter.cpp:16:0: > /usr/local/include/unicode/rbnf.h:50:5: note: ‘URBNF_ORDINAL’ > URBNF_ORDINAL, > ^ > make[2]: *** > [booster/CMakeFiles/booster.dir/lib/locale/src/icu/formatter.cpp.o] Error 1 > make[1]: *** [booster/CMakeFiles/booster.dir/all] Error 2 > make: *** [all] Error 2 > -- Oloyede, Isaiah O KC2SVH "Gratitude is the currency of future demands." - Isaiah Oloyede |
From: Artyom B. <art...@ya...> - 2012-07-04 04:00:18
|
Currently yes. There is an open feature request to support boolean in CppDB. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: "ele...@ex..." <ele...@ex...> >To: cpp...@li... >Sent: Wednesday, July 4, 2012 4:19 AM >Subject: [Cppcms-users] cppdb: fetching boolean type > >Hi, > >I'm using postgresql on current project. > >And the db table contains type boolean. > >Unfortunately there is no result::get<bool> and result::get<int> throws >cppdb::bad_value_cast > >Is the only way fetching it as string and manually converting it to bool? > >Petr > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: <ele...@ex...> - 2012-07-04 01:19:25
|
Hi, I'm using postgresql on current project. And the db table contains type boolean. Unfortunately there is no result::get<bool> and result::get<int> throws cppdb::bad_value_cast Is the only way fetching it as string and manually converting it to bool? Petr |
From: augustin <aug...@ov...> - 2012-07-03 07:52:09
|
Cool. I had wondered how to do precisely that, before. With thanks: http://cppcms.com/wikipp/en/page/cppcms_1x_reload_application > static cppcms::service *srv; > static bool got_sighup; This is in the global namespace, right? > handler() > { > got_sighup = true; > the_service->shutdown(); You probably mean: srv->shutdown() ? > And in main() > > > while(1) { > cppcms::service srv(...) > srv.run(); > if(got_sighup) { > got_sighup = false; > continue; > } > break; > } Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2012-07-03 07:36:41
|
On Monday, July 02, 2012 03:35:52 PM Artyom Beilis wrote: > >Do you think it's worthwhile creating a wiki page to collate all > >utf8/encoding FAQs? There was already a question on this list about > >cppdb and utf8. I can create one if you wish. > > > >Augustin. > > Not bad idea at all Here you are: http://cppcms.com/wikipp/en/page/cppcms_1x_encoding_and_utf8 The article can be completed as new problems and questions arise. Yours, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom B. <art...@ya...> - 2012-07-02 19:02:02
|
For this case I'd suggest to install signal handler for SIGHUP static cppcms::service *srv; static bool got_sighup; handler() { got_sighup = true; the_service->shutdown(); } And in main() while(1) { cppcms::service srv(...) srv.run(); if(got_sighup) { got_sighup = false; continue; } break; } So when application gets SIGHUP it restarts / reloads and upon SIGTERM exits. This is what SIGHUP is usually used - reload configuration. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Lee Elenbaas <lee...@gm...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Monday, July 2, 2012 12:12 PM >Subject: Re: [Cppcms-users] some graceful way to close the CppCMS app > > >This opens up a much better option - performing my loop inside the C++ code and no in the shell script running it. >And i can also return a shutdown reason using some static variable in order to control that loop - somewhat ugly this usage of static but works, and better then sending it over to the shell. > >the main will be something like below >and the usage will be something like: > > >runflag = 2; // reconfig >srv.shutdown(); > > >On Mon, Jul 2, 2012 at 11:57 AM, Artyom Beilis <art...@ya...> wrote: > >Like any other process: >> >> >> >>Do stuff like this: >> >> >static int runflag = 1; // 1 for initial run - enum will probably be a better solution in a real code > >int main(...) >>{ >> >> try { > while (runflag) { > runflag=0; > cppcms::service srv(...) >> srv.run(); > if (runflag == 2) { > // apply reconfiguration to disk > } > } > } >> catch(std::exception const &) { >> //Some problem >> return 1; >> >> } >> return 0; // exited normally >> >>} >> >> >>srv.run() returns upon srv.shutdown() (that is called by SIGTERM handler) >> >> >>Artyom Beilis >>-------------- >>CppCMS - C++ Web Framework: http://cppcms.com/ >>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> >> >> >>>________________________________ >>> From: Lee Elenbaas <lee...@gm...> >>>To: Artyom Beilis <art...@ya...>; cpp...@li... >>>Sent: Monday, July 2, 2012 10:53 AM >>>Subject: Re: [Cppcms-users] some graceful way to close the CppCMS app >>> >>> >>> >>>Is there some way to return an error code to the program that run the cppcms app? >>>i would like to provide some conditioned loop in my batch/shell script >>> >>> >>>thanks >>> >>> >>>On Mon, Jul 2, 2012 at 10:34 AM, Artyom Beilis <art...@ya...> wrote: >>> >>>Two options: >>>> >>>> >>>>1. Send a SIGTERM signal to the application service it will shutdown gracefully. >>>>2. >From the application itself, use cppcms::service::shutdown() >>>> >>>> >>>>The open requests that started processing .i.e. it is processed in the thread_pool >>>>would be completed. The connections that had not got to thread pool (not started processing) >>>> >>>>and asynchronous connections will be closed. >>>> >>>>Artyom Beilis >>>>-------------- >>>>CppCMS - C++ Web Framework: http://cppcms.com/ >>>>CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >>>> >>>> >>>> >>>>>________________________________ >>>>> From: Lee Elenbaas <lee...@gm...> >>>>>To: cpp...@li... >>>>>Sent: Monday, July 2, 2012 10:17 AM >>>>>Subject: [Cppcms-users] some graceful way to close the CppCMS app >>>>> >>>>> >>>>> >>>>>Hi All, >>>>> >>>>> >>>>>Is there some gracefull way to close the CppCMS so that it will stop accepting new requests, finish handle the currently open requests and then close down with a given error code. >>>>>In my situation i sometimes need to close the app change the configuration and then run it again. And i am looking for a gracefull way to perform that. >>>>>(Yes i know that the embeded web server is not for production - but for my case i think it is the best option right now. I would have to bundle a webserver with my app anyway, so using this and configuring it to answer only localhost seems like a good enough option for now) >>>>> >>>>>-- >>>>>-- >>>>>lee >>>>>Lee Elenbaas >>>>>lee...@gm... >>>>> >>>>> >>>>>------------------------------------------------------------------------------ >>>>>Live Security Virtual Conference >>>>>Exclusive live event will cover all the ways today's security and >>>>>threat landscape has changed and how IT managers can respond. Discussions >>>>>will include endpoint security, mobile security and the latest in malware >>>>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>>_______________________________________________ >>>>>Cppcms-users mailing list >>>>>Cpp...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>>>> >>>>> >>>>> >>>>------------------------------------------------------------------------------ >>>>Live Security Virtual Conference >>>>Exclusive live event will cover all the ways today's security and >>>>threat landscape has changed and how IT managers can respond. Discussions >>>>will include endpoint security, mobile security and the latest in malware >>>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>>_______________________________________________ >>>>Cppcms-users mailing list >>>>Cpp...@li... >>>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>>> >>>> >>> >>> >>> >>>-- >>>-- >>>lee >>>Lee Elenbaas >>>lee...@gm... >>> >>> >>>------------------------------------------------------------------------------ >>>Live Security Virtual Conference >>>Exclusive live event will cover all the ways today's security and >>>threat landscape has changed and how IT managers can respond. Discussions >>>will include endpoint security, mobile security and the latest in malware >>>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>_______________________________________________ >>>Cppcms-users mailing list >>>Cpp...@li... >>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>> >>> >>> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >> > > > >-- >-- >lee >Lee Elenbaas >lee...@gm... > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Lee E. <lee...@gm...> - 2012-07-02 11:28:58
|
done - thanks On Mon, Jul 2, 2012 at 1:41 PM, Artyom Beilis <art...@ya...> wrote: > Generally I put my cppcms apps settings in their own namespace i.e. blog, > wikipp, mb (message board) > > But I can add a guarantee that there will be no members used by CppCMS > that start with one of the following prefixes: > > - app > - data > - conf > - Any Capital letter (.i.e. MyApp) > - Underscore "_" > > So any name in format "(app|data|conf|[A-Z_]).*" will be reserved for > application use. > > Is it Ok? > > If so who adds this there: > http://cppcms.com/wikipp/en/page/cppcms_1x_config > > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Lee Elenbaas <lee...@gm...> > *To:* cpp...@li... > *Sent:* Monday, July 2, 2012 1:28 PM > *Subject:* Re: [Cppcms-users] App configuration section : namespace > question > > This is the other way around for solving the issue - but yes this is > exactly the issue > i think that moving all the CppCMS configurations into a namespace will > render all existing config files non working - so i prefered the other way > around. > > some guarantee that cppcms will not use the name: "app_config" for example > with that guarantee i can build config files that i am certain will never > conflict > > and as i said - an easi API to get to those settings will be a nice plus > > On Mon, Jul 2, 2012 at 12:13 PM, augustin <aug...@ov...>wrote: > > About this feature request: > > http://sourceforge.net/tracker/?func=detail&atid=1011838&aid=3539381&group_id=209965 > > I tried to log into sourceforge to comment there, but whenever I try to, I > get > a blank page with the simple message: "XSRF Attempt Detected!" > > I can't login so I comment here. > > If I understand the question correctly, I think it is about namespace > collision. > The user wants to make sure there will be no namespace collision now and in > the future between cppcms settings and his application's settings. > cppcms settings probably should have been placed in a single namespace like > this: > > "cppcms" : { > "localization" { > "locales" : [ "en_US.UTF-8" ] > } > } > etc. > > augustin. > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > -- > lee > Lee Elenbaas > lee...@gm... > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- -- lee Lee Elenbaas lee...@gm... |
From: Artyom B. <art...@ya...> - 2012-07-02 10:42:00
|
Generally I put my cppcms apps settings in their own namespace i.e. blog, wikipp, mb (message board) But I can add a guarantee that there will be no members used by CppCMS that start with one of the following prefixes: - app - data - conf - Any Capital letter (.i.e. MyApp) - Underscore "_" So any name in format "(app|data|conf|[A-Z_]).*" will be reserved for application use. Is it Ok? If so who adds this there: http://cppcms.com/wikipp/en/page/cppcms_1x_config Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Lee Elenbaas <lee...@gm...> >To: cpp...@li... >Sent: Monday, July 2, 2012 1:28 PM >Subject: Re: [Cppcms-users] App configuration section : namespace question > > >This is the other way around for solving the issue - but yes this is exactly the issue >i think that moving all the CppCMS configurations into a namespace will render all existing config files non working - so i prefered the other way around. > > >some guarantee that cppcms will not use the name: "app_config" for example >with that guarantee i can build config files that i am certain will never conflict > > >and as i said - an easi API to get to those settings will be a nice plus > > >On Mon, Jul 2, 2012 at 12:13 PM, augustin <aug...@ov...> wrote: > >About this feature request: >>http://sourceforge.net/tracker/?func=detail&atid=1011838&aid=3539381&group_id=209965 >> >>I tried to log into sourceforge to comment there, but whenever I try to, I get >>a blank page with the simple message: "XSRF Attempt Detected!" >> >>I can't login so I comment here. >> >>If I understand the question correctly, I think it is about namespace >>collision. >>The user wants to make sure there will be no namespace collision now and in >>the future between cppcms settings and his application's settings. >>cppcms settings probably should have been placed in a single namespace like >>this: >> >>"cppcms" : { >> "localization" { >> "locales" : [ "en_US.UTF-8" ] >> } >> } >>etc. >> >>augustin. >> >> >> >> >>-- >>Friends: http://www.reuniting.info/ >>My projects: >>http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >>http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >>http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >>http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >>. >> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > >-- >-- >lee >Lee Elenbaas >lee...@gm... > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Lee E. <lee...@gm...> - 2012-07-02 10:28:59
|
This is the other way around for solving the issue - but yes this is exactly the issue i think that moving all the CppCMS configurations into a namespace will render all existing config files non working - so i prefered the other way around. some guarantee that cppcms will not use the name: "app_config" for example with that guarantee i can build config files that i am certain will never conflict and as i said - an easi API to get to those settings will be a nice plus On Mon, Jul 2, 2012 at 12:13 PM, augustin <aug...@ov...>wrote: > About this feature request: > > http://sourceforge.net/tracker/?func=detail&atid=1011838&aid=3539381&group_id=209965 > > I tried to log into sourceforge to comment there, but whenever I try to, I > get > a blank page with the simple message: "XSRF Attempt Detected!" > > I can't login so I comment here. > > If I understand the question correctly, I think it is about namespace > collision. > The user wants to make sure there will be no namespace collision now and in > the future between cppcms settings and his application's settings. > cppcms settings probably should have been placed in a single namespace like > this: > > "cppcms" : { > "localization" { > "locales" : [ "en_US.UTF-8" ] > } > } > etc. > > augustin. > > > > > -- > Friends: http://www.reuniting.info/ > My projects: > http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- -- lee Lee Elenbaas lee...@gm... |
From: augustin <aug...@ov...> - 2012-07-02 09:14:14
|
About this feature request: http://sourceforge.net/tracker/?func=detail&atid=1011838&aid=3539381&group_id=209965 I tried to log into sourceforge to comment there, but whenever I try to, I get a blank page with the simple message: "XSRF Attempt Detected!" I can't login so I comment here. If I understand the question correctly, I think it is about namespace collision. The user wants to make sure there will be no namespace collision now and in the future between cppcms settings and his application's settings. cppcms settings probably should have been placed in a single namespace like this: "cppcms" : { "localization" { "locales" : [ "en_US.UTF-8" ] } } etc. augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |
From: Lee E. <lee...@gm...> - 2012-07-02 09:12:45
|
This opens up a much better option - performing my loop inside the C++ code and no in the shell script running it. And i can also return a shutdown reason using some static variable in order to control that loop - somewhat ugly this usage of static but works, and better then sending it over to the shell. the main will be something like below and the usage will be something like: runflag = 2; // reconfig srv.shutdown(); On Mon, Jul 2, 2012 at 11:57 AM, Artyom Beilis <art...@ya...> wrote: > Like any other process: > > Do stuff like this: > > static int runflag = 1; // 1 for initial run - enum will probably be a better solution in a real code > int main(...) > { > try { > while (runflag) { runflag=0; > cppcms::service srv(...) > srv.run(); > if (runflag == 2) { // apply reconfiguration to disk } } > } > catch(std::exception const &) { > //Some problem > return 1; > } > return 0; // exited normally > } > > srv.run() returns upon srv.shutdown() (that is called by SIGTERM handler) > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Lee Elenbaas <lee...@gm...> > *To:* Artyom Beilis <art...@ya...>; > cpp...@li... > *Sent:* Monday, July 2, 2012 10:53 AM > *Subject:* Re: [Cppcms-users] some graceful way to close the CppCMS app > > Is there some way to return an error code to the program that run the > cppcms app? > i would like to provide some conditioned loop in my batch/shell script > > thanks > > On Mon, Jul 2, 2012 at 10:34 AM, Artyom Beilis <art...@ya...>wrote: > > Two options: > > 1. Send a SIGTERM signal to the application service it will shutdown > gracefully. > 2. >From the application itself, use cppcms::service::shutdown() > > The open requests that started processing .i.e. it is processed in the > thread_pool > would be completed. The connections that had not got to thread pool (not > started processing) > and asynchronous connections will be closed. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > ------------------------------ > *From:* Lee Elenbaas <lee...@gm...> > *To:* cpp...@li... > *Sent:* Monday, July 2, 2012 10:17 AM > *Subject:* [Cppcms-users] some graceful way to close the CppCMS app > > Hi All, > > Is there some gracefull way to close the CppCMS so that it will stop > accepting new requests, finish handle the currently open requests and then > close down with a given error code. > In my situation i sometimes need to close the app change the configuration > and then run it again. And i am looking for a gracefull way to perform > that. > (Yes i know that the embeded web server is not for production - but for my > case i think it is the best option right now. I would have to bundle a > webserver with my app anyway, so using this and configuring it to answer > only localhost seems like a good enough option for now) > > -- > -- > lee > Lee Elenbaas > lee...@gm... > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > -- > -- > lee > Lee Elenbaas > lee...@gm... > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > -- -- lee Lee Elenbaas lee...@gm... |