cppcms-users Mailing List for CppCMS C++ Web Framework (Page 95)
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: Marcel H. <ke...@co...> - 2012-02-23 15:01:39
|
Sorry, that my last paragraph wasn't that clear as I wanted it. Your reload code isn't wrong, I forgot the cache mechanism. After I commented the caching part out, it worked like charm. Is there any way, that the reload thing will be "signal safe"? I don't see any reason why not. But thanks for your reply and the review. (oh, "your code is wrong" sound so hard ): ) Regards Am 23.02.2012 15:51, schrieb Artyom Beilis: > Few points before I reply in detains. > > 1. What is wrong with current reload code? > > If the so changed it would be reloaded on the first access... > > Remind me :-) > > 2. Your code is wrong, you can't call "reload" function from signal handler. > > This may lead to undefined behavior. In fact there are very few > functions you can call. And shutdown() is explicitly created > as signal safe function. > > 3. If you want to implement your own "skin" reloader you can just > unload all the skin shared object and load them once again > upon signal. > > You don't really need CppCMS for - just don't list > the skins in the skins list. > > I'll take a look on it in more details later. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > >> ________________________________ From: Marcel Hellwig <ke...@co... [1]> To: cpp...@li... [2] Sent: Thursday, February 23, 2012 4:42 PM Subject: [Cppcms-users] reloading skins I hope this will will not be ugly tu read. A lot of code may be inside of this. So hold on (: Hi everyone, first: congrats for v1.0 artyom. You still haven't announced it, but svn already knows it :) It is such a great framework. I never want to miss it and never go back to PHP or similar. Now my request. I am not happy with the solution of the auto reload skin function atm. As I mentioned long long time ago, I'd like to control it over Signals, and that's why I searched in your code and found this: src/service.cpp:366 void handler(int /*nothing*/) > > { if(the_service) the_service->shutdown(); > } > >> so I changed it a bit and now it looks like this: void handler(int sig) { BOOSTER_DEBUG("cppcms") << "Signal " << sig << " received."; if (the_service) switch (sig) { case 10: the_service->views_pool().reloadSkins(); break; default: the_service->shutdown(); } } signal 10 is, aymk, the USR1 sig and if you send that sig to the prog, it should reload all the skins, no matter if they are outdated or not. So I changed: cppcms/views_pool.h:192 (reloadSkins() is public) /// /// Reload the Skins, when they are loaded via library. /// void reloadSkins(); and also src/views_pool.cpp:336 // reload all if needed reloadSkins(); pool::instance().render(skin_name,template_name,out,content); //as far as I see, render don't need a mutex lock return; ...... void manager::reloadSkins() { booster::unique_locklock(d->lock); for(size_t i=0;iskins.size();i++) { impl::skin ¤t = d->skins[i]; time_t mtime = impl::get_mtime(current.file_name); //skip time checking BOOSTER_DEBUG("cppcms") << "Reloading shared object/dll " << current.file_name; current.so.reset(); current.mtime = mtime; current.so.reset(new impl::shared_object(current.file_name,true)); } return; } What I did is to outsource the whole block, what is now inside of reloadSkins(), nothing more. Now the signal handler can access the method. Next step was to build cppcms again and run the messageboard example. I edited the config.js a bit, namely: added "auto_reload" to views (just for testing) and changed the logging level to debug. Make the example will run, and work as expected. Now, to my changes. Here is the output: 2012-02-23 15:20:43; cppcms_http, info: GET / (http_api.cpp:251) 2012-02-23 15:20:43; cppcms_http, info: GET /media/style.css (http_api.cpp:251) 2012-02-23 15:20:43; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) now editing the template and compile it again, without restarting the prog 2012-02-23 15:21:23; cppcms_http, info: GET / (http_api.cpp:251) 2012-02-23 15:21:23; cppcms_http, info: GET /media/style.css (http_api.cpp:251) 2012-02-23 15:21:23; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) nothing happens, as you see. Now the signal 2012-02-23 15:21:45; cppcms, debug: Signal 10 received. (service.cpp:368) 2012-02-23 15:21:45; cppcms, debug: Reloading shared object/dll .//libsimple.so (views_pool.cpp:351) Arrived and reloaded 2012-02-23 15:21:55; cppcms_http, info: GET / (http_api.cpp:251) 2012-02-23 15:21:55; cppcms_http, info: GET /media/style.css (http_api.cpp:251) 2012-02-23 15:21:55; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) but still there isn't any change Okay I thought, it is my fault and checked out the svn repo again and build the example again, but still there is the same error. So whats next. I started to figure out, if the prog really uses the library I override. lsof examples/message_board/build/libsimple.so Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mb 11567 xxx mem REG 8,6 154864 5636786 ./examples/message_board/build/libsimple.so so yes, it loads the right library and uses it. And I checked it twice, that the time of the library is newer than the date of the program so that he should reload the lib. So two major things: - I think your implementation of the time checking is invalid (it should load it before I'll give him the signal - there is a huge mistake anywhere, so that he does not reload the skin and print that out. Maybe a caching error? When I wrote the last sentence I had an idea and tried to prove that. And bäm, I was right. It was an "error" with the caching mechanism. I would suggest, that if you reload the skins, the whole cache should be reset. I'd like you (artyom) to implement the following into cppcms with cache resetting, of cource. Oh and don't forget my "patch" ticket in sourceforge. (just two missing whitespaces) Regards Marcel Hellwig ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ [3] _______________________________________________ Cppcms-users mailing list Cpp...@li... [4] https://lists.sourceforge.net/lists/listinfo/cppcms-users [5] > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users Links: ------ [1] mailto:ke...@co... [2] mailto:cpp...@li... [3] http://www.accelacomm.com/jaw/sfnl/114/51521223/ [4] mailto:Cpp...@li... [5] https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2012-02-23 14:51:33
|
Few points before I reply in detains. 1. What is wrong with current reload code? If the so changed it would be reloaded on the first access... Remind me :-) 2. Your code is wrong, you can't call "reload" function from signal handler. This may lead to undefined behavior. In fact there are very few functions you can call. And shutdown() is explicitly created as signal safe function. 3. If you want to implement your own "skin" reloader you can just unload all the skin shared object and load them once again upon signal. You don't really need CppCMS for - just don't list the skins in the skins list. I'll take a look on it in more details later. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Marcel Hellwig <ke...@co...> >To: cpp...@li... >Sent: Thursday, February 23, 2012 4:42 PM >Subject: [Cppcms-users] reloading skins > > >I hope this will will not be ugly tu read. A lot of code may be inside of this. So hold on (: >Hi everyone, >first: congrats for v1.0 artyom. You still haven't announced it, but svn already knows it :) >It is such a great framework. I never want to miss it and never go back to PHP or similar. >Now my request. >I am not happy with the solution of the auto reload skin function atm. As I mentioned long long time ago, I'd like to control it over Signals, and that's why I searched in your code and found this: >src/service.cpp:366 >void handler(int /*nothing*/) { if(the_service) the_service->shutdown(); } > >so I changed it a bit and now it looks like this: > >void handler(int sig) >{ > BOOSTER_DEBUG("cppcms") << "Signal " << sig << " received."; > if (the_service) > switch (sig) { > case 10: the_service->views_pool().reloadSkins(); break; > default: the_service->shutdown(); > } > >} > >signal 10 is, aymk, the USR1 sig and if you send that sig to the prog, it should reload all the skins, no matter if they are outdated or not. >So I changed: > >cppcms/views_pool.h:192 (reloadSkins() is public) >/// > /// Reload the Skins, when they are loaded via library. > /// > void reloadSkins(); > >and also >src/views_pool.cpp:336 > // reload all if needed > reloadSkins(); > pool::instance().render(skin_name,template_name,out,content); //as far as I see, render don't need a mutex lock > return; >...... > >void manager::reloadSkins() >{ > booster::unique_lock<booster::recursive_shared_mutex> lock(d->lock); > for(size_t i=0;i<d->skins.size();i++) { > impl::skin ¤t = d->skins[i]; > time_t mtime = impl::get_mtime(current.file_name); > //skip time checking > BOOSTER_DEBUG("cppcms") << "Reloading shared object/dll " << current.file_name; > current.so.reset(); > current.mtime = mtime; > current.so.reset(new impl::shared_object(current.file_name,true)); > } > return; >} > >What I did is to outsource the whole block, what is now inside of reloadSkins(), nothing more. Now the signal handler can access the method. > >Next step was to build cppcms again and run the messageboard example. I edited the config.js a bit, namely: >added "auto_reload" to views (just for testing) and changed the logging level to debug. > >Make the example will run, and work as expected. >Now, to my changes. >Here is the output: > >2012-02-23 15:20:43; cppcms_http, info: GET / (http_api.cpp:251) >2012-02-23 15:20:43; cppcms_http, info: GET /media/style.css (http_api.cpp:251) >2012-02-23 15:20:43; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) >now editing the template and compile it again, without restarting the prog >2012-02-23 15:21:23; cppcms_http, info: GET / (http_api.cpp:251) >2012-02-23 15:21:23; cppcms_http, info: GET /media/style.css (http_api.cpp:251) >2012-02-23 15:21:23; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) >nothing happens, as you see. Now the signal >2012-02-23 15:21:45; cppcms, debug: Signal 10 received. (service.cpp:368) >2012-02-23 15:21:45; cppcms, debug: Reloading shared object/dll .//libsimple.so (views_pool.cpp:351) >Arrived and reloaded >2012-02-23 15:21:55; cppcms_http, info: GET / (http_api.cpp:251) >2012-02-23 15:21:55; cppcms_http, info: GET /media/style.css (http_api.cpp:251) >2012-02-23 15:21:55; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) >but still there isn't any change > >Okay I thought, it is my fault and checked out the svn repo again and build the example again, but still there is the same error. >So whats next. I started to figure out, if the prog really uses the library I override. >lsof examples/message_board/build/libsimple.so > > Output information may be incomplete. >COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME >mb 11567 xxx mem REG 8,6 154864 5636786 ./examples/message_board/build/libsimple.so > >so yes, it loads the right library and uses it. And I checked it twice, that the time of the library is newer than the date of the program so that he should reload the lib. > >So two major things: >- I think your implementation of the time checking is invalid (it should load it before I'll give him the signal >- there is a huge mistake anywhere, so that he does not reload the skin and print that out. Maybe a caching error? > > > >When I wrote the last sentence I had an idea and tried to prove that. And bäm, I was right. >It was an "error" with the caching mechanism. I would suggest, that if you reload the skins, the whole cache should be reset. >I'd like you (artyom) to implement the following into cppcms with cache resetting, of cource. Oh and don't forget my "patch" ticket in sourceforge. (just two missing whitespaces) > > >Regards > >Marcel Hellwig > >------------------------------------------------------------------------------ >Virtualization & Cloud Management Using Capacity Planning >Cloud computing makes use of virtualization - but cloud computing >also focuses on allowing computing to be delivered as a service. >http://www.accelacomm.com/jaw/sfnl/114/51521223/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Marcel H. <ke...@co...> - 2012-02-23 14:42:53
|
I hope this will will not be ugly tu read. A lot of code may be inside of this. So hold on (: Hi everyone, first: congrats for v1.0 artyom. You still haven't announced it, but svn already knows it :) It is such a great framework. I never want to miss it and never go back to PHP or similar. Now my request. I am not happy with the solution of the auto reload skin function atm. As I mentioned long long time ago, I'd like to control it over Signals, and that's why I searched in your code and found this: src/service.cpp:366 void handler(int /*nothing*/) { if(the_service) the_service->shutdown(); } so I changed it a bit and now it looks like this: void handler(int sig) { BOOSTER_DEBUG("cppcms") << "Signal " << sig << " received."; if (the_service) switch (sig) { case 10: the_service->views_pool().reloadSkins(); break; default: the_service->shutdown(); } } signal 10 is, aymk, the USR1 sig and if you send that sig to the prog, it should reload all the skins, no matter if they are outdated or not. So I changed: cppcms/views_pool.h:192 (reloadSkins() is public) /// /// Reload the Skins, when they are loaded via library. /// void reloadSkins(); and also src/views_pool.cpp:336 // reload all if needed reloadSkins(); pool::instance().render(skin_name,template_name,out,content); //as far as I see, render don't need a mutex lock return; ...... void manager::reloadSkins() { booster::unique_lock<booster::recursive_shared_mutex> lock(d->lock); for(size_t i=0;i<d->skins.size();i++) { impl::skin ¤t = d->skins[i]; time_t mtime = impl::get_mtime(current.file_name); //skip time checking BOOSTER_DEBUG("cppcms") << "Reloading shared object/dll " << current.file_name; current.so.reset(); current.mtime = mtime; current.so.reset(new impl::shared_object(current.file_name,true)); } return; } What I did is to outsource the whole block, what is now inside of reloadSkins(), nothing more. Now the signal handler can access the method. Next step was to build cppcms again and run the messageboard example. I edited the config.js a bit, namely: added "auto_reload" to views (just for testing) and changed the logging level to debug. Make the example will run, and work as expected. Now, to my changes. Here is the output: 2012-02-23 15:20:43; cppcms_http, info: GET / (http_api.cpp:251) 2012-02-23 15:20:43; cppcms_http, info: GET /media/style.css (http_api.cpp:251) 2012-02-23 15:20:43; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) now editing the template and compile it again, without restarting the prog 2012-02-23 15:21:23; cppcms_http, info: GET / (http_api.cpp:251) 2012-02-23 15:21:23; cppcms_http, info: GET /media/style.css (http_api.cpp:251) 2012-02-23 15:21:23; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) nothing happens, as you see. Now the signal 2012-02-23 15:21:45; cppcms, debug: Signal 10 received. (service.cpp:368) 2012-02-23 15:21:45; cppcms, debug: Reloading shared object/dll .//libsimple.so (views_pool.cpp:351) Arrived and reloaded 2012-02-23 15:21:55; cppcms_http, info: GET / (http_api.cpp:251) 2012-02-23 15:21:55; cppcms_http, info: GET /media/style.css (http_api.cpp:251) 2012-02-23 15:21:55; cppcms_http, info: GET /media/style-ltr.css (http_api.cpp:251) but still there isn't any change Okay I thought, it is my fault and checked out the svn repo again and build the example again, but still there is the same error. So whats next. I started to figure out, if the prog really uses the library I override. lsof examples/message_board/build/libsimple.so Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mb 11567 xxx mem REG 8,6 154864 5636786 ./examples/message_board/build/libsimple.so so yes, it loads the right library and uses it. And I checked it twice, that the time of the library is newer than the date of the program so that he should reload the lib. So two major things: - I think your implementation of the time checking is invalid (it should load it before I'll give him the signal - there is a huge mistake anywhere, so that he does not reload the skin and print that out. Maybe a caching error? When I wrote the last sentence I had an idea and tried to prove that. And bäm, I was right. It was an "error" with the caching mechanism. I would suggest, that if you reload the skins, the whole cache should be reset. I'd like you (artyom) to implement the following into cppcms with cache resetting, of cource. Oh and don't forget my "patch" ticket in sourceforge. (just two missing whitespaces) Regards Marcel Hellwig |
From: Artyom B. <art...@ya...> - 2012-02-23 08:17:14
|
Hello, Yes it is Ok, I don't see any specific problems with this. Mount point gives you large flexibility, this it was designed for - mount multiple applications Note: please register to this mailing list so I would not have to approve your messages and you will receive replays. Artyom Beilis ------------- Support CppCMS by donating money: https://sourceforge.net/donate/index.php?group_id=20996 >________________________________ > From: Joffrey Romero <jof...@ya...> >To: cpp...@li... >Sent: Thursday, February 23, 2012 8:33 AM >Subject: [Cppcms-users] Question about multiples mount_point > > >Hello, > >I'm working on a cppcms project with asynchronous classes : > >Is that the right way to create my asynchronous modules ? > ><code> >int main(int argc, char **argv, char **env) >{ > try { > cppcms::service srv(argc,argv); > > booster::intrusive_ptr<ad_connection> c > = new ad_connection(srv); > srv.applications_pool().mount( > c, cppcms::mount_point("/ad_connection/(.*)",1) ); > > srv.applications_pool().mount( > cppcms::applications_factory<program>(), > cppcms::mount_point("^/((?:(?!ad_connection/).)*)",1) ); > > srv.run(); > } > catch(std::exception const &e) { > std::cerr<<e.what()<<std::endl; > } >} ></code> > >The code works well, but just for curiosity, I wondered if it was the right way.. > >Thanks, > >Joffrey > > >------------------------------------------------------------------------------ >Virtualization & Cloud Management Using Capacity Planning >Cloud computing makes use of virtualization - but cloud computing >also focuses on allowing computing to be delivered as a service. >http://www.accelacomm.com/jaw/sfnl/114/51521223/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Marcel H. <ke...@co...> - 2012-02-23 08:13:57
|
look at the chat example. what you are doing looks.. .. interesting (: regards -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Joffrey Romero <jof...@ya...> schrieb: Hello, I'm working on a cppcms project with asynchronous classes : Is that the right way to create my asynchronous modules ? <code> int main(int argc, char **argv, char **env) { try { cppcms::service srv(argc,argv); booster::intrusive_ptr<ad_connection> c = new ad_connection(srv); srv.applications_pool().mount( c, cppcms::mount_point("/ad_connection/(.*)",1) ); srv.applications_pool().mount( cppcms::applications_factory<program>(), cppcms::mount_point("^/((?:(?!ad_connection/).)*)",1) ); srv.run(); } catch(std::exception const &e) { std::cerr<<e.what()<<std::endl; } } </code> The code works well, but just for curiosity, I wondered if it was the right way.. Thanks, Joffrey |
From: Joffrey R. <jof...@ya...> - 2012-02-23 07:15:10
|
Hello, I'm working on a cppcms project with asynchronous classes : Is that the right way to create my asynchronous modules ? <code> *int main(int argc, char **argv, char **env)* { try { * cppcms::service srv(argc,argv); booster::intrusive_ptr<ad_connection> c = new ad_connection(srv); srv.applications_pool().mount( c, cppcms::mount_point("/ad_connection/(.*)",1) ); srv.applications_pool().mount( cppcms::applications_factory<program>(), cppcms::mount_point("^/((?:(?!ad_connection/).)*)",1) ); srv.run();* } catch(std::exception const &e) { * std::cerr<<e.what()<<std::endl;* } } </code> The code works well, but just for curiosity, I wondered if it was the right way.. Thanks, Joffrey |
From: Artyom B. <art...@ya...> - 2012-02-21 21:37:35
|
Hello, As all you know I had benchmarked CppCMS not once: <http://cppcms.com/wikipp/en/page/benchmarks> And I'm aware of the potential of this library. However all benchmarks look synthetic and if you compare real applications like say Blog then there is always a difference in architecture and in features so if I compare to applications one CppCMS based and another based on different kind of technology I may be biased. I'm looking for a Case Study of real application or real web site that was ported to CppCMS and I'd like to know the gain this application had received for using CppCMS. I'm asking not because I can't do my own benchmarks and my own measurements but rather because an opinion of someone neutral or non-synthetic measurements may be very valuable. So if you have such experience can you please share this information and tell us (or me directly) about it. Thanks You Very Much Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |
From: Vizcayno <viz...@gm...> - 2012-02-21 16:31:33
|
Artyom: The next worked for me, thank you very much!! > I'd suggest first of all try to build the library as "RelWithDebInfo" instead > of Release. It is fully optimized version that uses release run-time but > comes with debug information. It is actually recommended build configuration. > Then I could execute command "nmake test" and got the next final result: . . . 76/79 Test #76: test_locale_std_collate ................. Passed 0.09 sec Start 77: test_locale_winapi_formatting 77/79 Test #77: test_locale_winapi_formatting ........... Passed 0.05 sec Start 78: test_locale_winapi_collate 78/79 Test #78: test_locale_winapi_collate .............. Passed 0.04 sec Start 79: test_locale_winapi_convert 79/79 Test #79: test_locale_winapi_convert .............. Passed 0.08 sec 100% tests passed, 0 tests failed out of 79 Total Test time (real) = 465.65 sec I then executed "nmake install", it was necessary to force the DCMAKE_INSTALL_PREFIX in the two cmake_install.cmake files in spite of assigning this in the cmake option. Now I am very motivated to go ahead. You made my day!! My best regards. Vizcayno. |
From: Artyom B. <art...@ya...> - 2012-02-21 13:50:34
|
> From: Vizcayno <viz...@gm...> > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp > p.obj > reactor.cpp > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) > : fatal error > C1001 > : An internal error has occurred in the compiler. > (compiler file > 'f:\dd\vctools\compiler\utc\src\p2\main.c > [0x6CC138D3:0x00000008]' > , line 183) > To work around this problem, try simplifying or changing the program near the > l > ocations listed above. > Please choose the Technical Support command on the Visual C++ > Help menu, or open the Technical Support help file for more information > Internal Compiler Error in > c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be > pr > ompted to send an error report to Microsoft later. > NMAKE : fatal error U1077: > 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code > '0x1' > Stop. OMG o_O, I hadn't expected such thing... Start from there: http://msdn.microsoft.com/en-us/library/y19zxzb2.aspx I'd suggest first of all try to build the library as "RelWithDebInfo" instead of Release. It is fully optimized version that uses release run-time but comes with debug information. It is actually recommended build configuration. Tell me if it builds or not. If it works I'll try to reproduce the problem on my PC. I don't know if I'll be able to as I don't have 64 bit MSVC10. Only 32 bit. Small note try to "play" with the flags... You can find CMAKE_CXX_FLAGS_RELEASE Variable in CMakeCache.txt try to change it. And see if there is a particular flags that causes the problem Best Regards and update me on what happens. Artyom |
From: Artyom B. <art...@ya...> - 2012-02-21 13:39:30
|
> > Off topic, CppDB, anyway that will be added to the repo? Yes. when I'll get to it... > > Anyway fantastic work. This is going to be fun! I wish this > project the best of luck and will do my best to contribute. > I'm glad to hear. Artyom Beilis ------------- Support CppCMS by donating money: https://sourceforge.net/donate/index.php?group_id=209965 |
From: Peter N. <cou...@gm...> - 2012-02-21 13:21:59
|
Sorry to get back to you so late. Perfect thank you this worked like a charm. Off topic, CppDB, anyway that will be added to the repo? Anyway fantastic work. This is going to be fun! I wish this project the best of luck and will do my best to contribute. On Sun, Feb 19, 2012 at 11:46 PM, Artyom Beilis <art...@ya...> wrote: > You do not link with cppcms library. You need to pass parameters > > -L/usr/local/lib -lcppcms > > Alternatively you may also install CppCMS to /usr instead of /usr/local by > passing -DCMAKE_INSTALL_PREFIX=/usr > when building CppCMS and then you'll need -lcppcms flag only. > > Artyom Beilis > > ------------------------------ > *From:* Peter N. <cou...@gm...> > *To:* cpp...@li... > *Sent:* Monday, February 20, 2012 7:21 AM > *Subject:* [Cppcms-users] Compiling Help > > I'm running Ubuntu and I'm trying to setup KDevelop so onc I click build > everything runs. I'm having just basic setup issues... > > main.cpp:(.text+0x23): undefined reference to > `cppcms::service::service(int, char**)' > main.cpp:(.text+0x59): undefined reference to > `cppcms::service::applications_pool()' > main.cpp:(.text+0x68): undefined reference to > `cppcms::applications_pool::mount(std::auto_ptr<cppcms::applications_pool::factory>)' > main.cpp:(.text+0x8c): undefined reference to `cppcms::service::run()' > main.cpp:(.text+0x98): undefined reference to `cppcms::service::~service()' > main.cpp:(.text+0xe0): undefined reference to `cppcms::service::~service()' > /tmp/ccE58iHq.o: In function `post::post(cppcms::service&)': > main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x1f): > undefined reference to `cppcms::application::application(cppcms::service&)' > main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x2a): > undefined reference to `vtable for post' > collect2: ld returned 1 exit status > > It looks like it's not linking right to the library... -l /home/user... is > where I initially built them all from the latest source (0.999.1 at this > time). > > I did a make install as well, it did copy them to /usr/local/lib/ > > I added /usr/local/lib/ to my PATH env as well and did relog. > > Any other suggestions? It looks like it just isn't able to refeernce the > libraries > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Vizcayno <viz...@gm...> - 2012-02-21 13:13:38
|
Artyom Beilis <artyomtnk@...> writes: > > > > > >Thanks for your answer and help. > >I could not solve the problem yet,so let me send you the errors I have: > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$ > >The cmake command and options I used are: > >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ > >apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include - DPCRE_LIB=C:/ap > >ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/pcre/include - DZLIB=C:/ap > >ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. > > > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$ > > First of all you should specify: > > - DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/extApps/pcre/include" > -DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extApps/zlib/lib" > > This were cmake would search the libraries. > > You also don't need to specify: > > -DPYTHON=C:/apps/extApps/Python27 > > But rather set environment variable PATH in cmd > > SET PATH=c:\apps\extapps\python27;%PATH% > > And let CMake find the libraries and executables. Also if you want to specify "PCRE_LIB" and > ZLIB directly (which is not recommended) you need to specify a full path to the > import library and not to the directory. > > Take a look on your warnings they tell everything. > > Regards, > Artyom > > ----------------------------------------------------------------------------- - > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > Artyom, Again, thanks for your help. It looks much better now as you can see below. However, the error about the program reactor.cpp (at the end) remains, I am not including all the objects indicated in the "recommended dependencies" and "suggested" because I understand they are optional, is that right?: Thanks. cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ apps\extApps\cppcms - DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/e xtApps/zlib/include" - DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extA pps/zlib/lib" .. -- The C compiler identification is MSVC -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1600 -- Check if this is a free VC compiler -- Check if this is a free VC compiler - no -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for ICU libraries -- ICU not found, disabling ICU localization backend -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Failed -- 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 - Failed -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Failed -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Failed -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Failed -- 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 - Failed -- Looking for atoll -- Looking for atoll - not found -- Looking for _atoi64 -- Looking for _atoi64 - found -- Looking for snprintf -- Looking for snprintf - not found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - 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 - Failed -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Success -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Success -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Failed -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Failed -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - not found GNU-TLS Gcrypt or OpenSSL librarys are not found, disabling AES encryption suppo rt -- Configuring done -- Generating done -- Build files have been written to: C:/apps/instApps/cppcms/build :nmake Microsoft (R) Program Maintenance Utility Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Scanning dependencies of target booster [ 0%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/posix_ti me.cpp.obj posix_time.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/ctime.cp p.obj ctime.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/regex/src/pcre_reg ex.cpp.obj pcre_regex.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/posix_e rror.cpp.obj posix_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows _error.cpp.obj windows_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_catego ry.cpp.obj aio_category.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_t imer.cpp.obj deadline_timer.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.c pp.obj endpoint.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service .cpp.obj io_service.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp p.obj reactor.cpp c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) : fatal error C1001 : An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c [0x6CC138D3:0x00000008]' , line 183) To work around this problem, try simplifying or changing the program near the l ocations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Internal Compiler Error in c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be pr ompted to send an error report to Microsoft later. NMAKE : fatal error U1077: 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. |
From: kpeo <sla...@ya...> - 2012-02-21 09:27:18
|
yes, it good for performance, but not so well for reading of big template (ideally - all in one line). Shure - performance is the main goal. my first thought - skip any spaces (including newlines) between reserved word and first symbol (not reserved word) and skip it before reserved word in cppcms_tmpl_cc processing. anyway, thank you for answer! > > Or write the code like this: > > <% template call3() %><%= text %><% end template %> > > <% template call2() %><% include call3() %><% end template %> > > <% template call1() %><% include call2() %><% end template %> > > <% template render() %> > <html> > <body> > <h1><% include call1() %></h1> > </body> > </html> > > <% end template %> > > ---------------- > > Everything withing the template tags rendered as-is that is why you see many "newlines" > but they are actually in your sources. > > Artyom > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@ya...> - 2012-02-21 09:12:59
|
> >Thanks for your answer and help. >I could not solve the problem yet,so let me send you the errors I have: >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ >The cmake command and options I used are: >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ >apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include -DPCRE_LIB=C:/ap >ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/pcre/include -DZLIB=C:/ap >ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ First of all you should specify: -DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/extApps/pcre/include" -DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extApps/zlib/lib" This were cmake would search the libraries. You also don't need to specify: -DPYTHON=C:/apps/extApps/Python27 But rather set environment variable PATH in cmd SET PATH=c:\apps\extapps\python27;%PATH% And let CMake find the libraries and executables. Also if you want to specify "PCRE_LIB" and ZLIB directly (which is not recommended) you need to specify a full path to the import library and not to the directory. Take a look on your warnings they tell everything. Regards, Artyom |
From: Artyom B. <art...@ya...> - 2012-02-21 09:02:58
|
>I found that every time you include template inside of template, like: > ><% template call3() %> ><%= text %> ><% end template %> > ><% template call2() %> > <% include call3() %> ><% end template %> > ><% template call1() %> > <% include call2() %> ><% end template %> > ><% template render() %> ><html><body><h1> ><% include call1() %> ></h1></body></html> ><% end template %> > >cppcms_tmpl_cc wrapping it with empty newline (comments skipped): > > [snip] > >this results in newline on every "subtemplate" in output html-file: > > [snip] > >Easy workaround for now - edit generated source file after cppcms_tmpl_cc. > Or write the code like this: <% template call3() %><%= text %><% end template %> <% template call2() %><% include call3() %><% end template %> <% template call1() %><% include call2() %><% end template %> <% template render() %> <html> <body> <h1><% include call1() %></h1> </body> </html> <% end template %> ---------------- Everything withing the template tags rendered as-is that is why you see many "newlines" but they are actually in your sources. Artyom |
From: kpeo <sla...@ya...> - 2012-02-21 08:29:21
|
Hello! It's not a bug actually, just remark for possible future cosmetic changes. I found that every time you include template inside of template, like: <% template call3() %> <%= text %> <% end template %> <% template call2() %> <% include call3() %> <% end template %> <% template call1() %> <% include call2() %> <% end template %> <% template render() %> <html><body><h1> <% include call1() %> </h1></body></html> <% end template %> cppcms_tmpl_cc wrapping it with empty newline (comments skipped): virtual void call2() { out()<<"\n" " "; call3(); out()<<"\n" ""; } this results in newline on every "subtemplate" in output html-file: 1. <html><body><h1> 2. 3. 4. 5. Hello! 6. 7. 8. 9. </h1></body></html> So output html don't looks so readable and formatted. Easy workaround for now - edit generated source file after cppcms_tmpl_cc. |
From: Vizcayno T. <viz...@gm...> - 2012-02-21 00:35:40
|
Thanks for your answer and help. I could not solve the problem yet,so let me send you the errors I have: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The cmake command and options I used are: cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include -DPCRE_LIB=C:/ap ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/zlib/include -DZLIB=C:/ap ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The result of the command is: -- The C compiler identification is MSVC -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1600 -- Check if this is a free VC compiler -- Check if this is a free VC compiler - no -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at c:/apps/extApps/cmake/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 not found, disabling ICU localization backend -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Failed -- 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 - Failed -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Failed -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Failed -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Failed -- 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 - Failed -- Looking for atoll -- Looking for atoll - not found -- Looking for _atoi64 -- Looking for _atoi64 - found -- Looking for snprintf -- Looking for snprintf - not found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - 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 - Failed -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Success -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Success -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Failed -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Failed -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - not found GNU-TLS Gcrypt or OpenSSL librarys are not found, disabling AES encryption suppo rt -- Configuring done WARNING: Target "base64_test" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "base64_test" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cache_backend_test" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cache_backend_test" requests linking to directory "C:/apps/extA pps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cache_frontend_test" requests linking to directory "C:/apps/ext Apps/pcre/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "cache_frontend_test" requests linking to directory "C:/apps/ext Apps/zlib/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "content_type_parser_test" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "content_type_parser_test" requests linking to directory "C:/app s/extApps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cookie_test" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cookie_test" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "copy_filter_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "copy_filter_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms" requests linking to directory "C:/apps/extApps/zlib/lib ". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms" requests linking to directory "C:/apps/extApps/pcre/lib ". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms-static" requests linking to directory "C:/apps/extApps/z lib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms-static" requests linking to directory "C:/apps/extApps/p cre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_config_find_param" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_make_key" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_make_key" requests linking to directory "C:/apps/extApps /zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_scale" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_scale" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "disco_test" requests linking to directory "C:/apps/extApps/pcre /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "disco_test" requests linking to directory "C:/apps/extApps/zlib /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "encryptor_test" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "encryptor_test" requests linking to directory "C:/apps/extApps/ zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "file_server_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "file_server_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "form_test" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "form_test" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "forwarder_test" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "forwarder_test" requests linking to directory "C:/apps/extApps/ zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "gzip_test" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "gzip_test" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "hello_world" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "hello_world" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "http_timeouts_test" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "http_timeouts_test" requests linking to directory "C:/apps/extA pps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "json_test" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "json_test" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "jsonrpc_test" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "jsonrpc_test" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "loadable_storage" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "loadable_storage" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "loadable_storage_test" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "loadable_storage_test" requests linking to directory "C:/apps/e xtApps/zlib/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "mount_point_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "mount_point_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "multipart_parser_test" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "multipart_parser_test" requests linking to directory "C:/apps/e xtApps/zlib/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "proto_test" requests linking to directory "C:/apps/extApps/pcre /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "proto_test" requests linking to directory "C:/apps/extApps/zlib /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "rewrite_test" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "rewrite_test" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "secure_post_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "secure_post_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "serialization_test" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "serialization_test" requests linking to directory "C:/apps/extA pps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "session_interface_test" requests linking to directory "C:/apps/ extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "session_interface_test" requests linking to directory "C:/apps/ extApps/zlib/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "skin3" requests linking to directory "C:/apps/extApps/pcre/lib" . Targets may link only to libraries. CMake is dropping the item. WARNING: Target "skin3" requests linking to directory "C:/apps/extApps/zlib/lib" . Targets may link only to libraries. CMake is dropping the item. WARNING: Target "status_test" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "status_test" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "storage_test" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "storage_test" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin" requests linking to directory "C:/apps/extApps/pcre/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin" requests linking to directory "C:/apps/extApps/zlib/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_a" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_a" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_b" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_b" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_test" requests linking to directory "C:/apps/extApps/pcre/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_test" requests linking to directory "C:/apps/extApps/zlib/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "url_mapper_test" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "url_mapper_test" requests linking to directory "C:/apps/extApps /zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "xss_test" requests linking to directory "C:/apps/extApps/pcre/l ib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "xss_test" requests linking to directory "C:/apps/extApps/zlib/l ib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "booster" requests linking to directory "C:/apps/extApps/pcre/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "booster-static" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_endpoint" requests linking to directory "C:/apps/extAp ps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_event_loop" requests linking to directory "C:/apps/ext Apps/pcre/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "test_aio_reactor" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_socket" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_timer" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_backtrace_backtrace" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_function_callback" requests linking to directory "C:/apps/ extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "test_function_function" requests linking to directory "C:/apps/ extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "test_iostreams_streambuf" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_codepage" requests linking to directory "C:/apps/ex tApps/pcre/lib". Targets may link only to libraries. CMake is dropping the ite m. WARNING: Target "test_locale_codepage_converter" requests linking to directory " C:/apps/extApps/pcre/lib". Targets may link only to libraries. CMake is droppi ng the item. WARNING: Target "test_locale_config" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_date_time" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "test_locale_generator" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "test_locale_ios_prop" requests linking to directory "C:/apps/ex tApps/pcre/lib". Targets may link only to libraries. CMake is dropping the ite m. WARNING: Target "test_locale_message" requests linking to directory "C:/apps/ext Apps/pcre/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "test_locale_std_collate" requests linking to directory "C:/apps /extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_std_convert" requests linking to directory "C:/apps /extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_std_formatting" requests linking to directory "C:/a pps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping t he item. WARNING: Target "test_locale_utf" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_winapi_collate" requests linking to directory "C:/a pps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping t he item. WARNING: Target "test_locale_winapi_convert" requests linking to directory "C:/a pps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping t he item. WARNING: Target "test_locale_winapi_formatting" requests linking to directory "C :/apps/extApps/pcre/lib". Targets may link only to libraries. CMake is droppin g the item. WARNING: Target "test_log_log" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_nowide_nowide" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_ptime_posix_time" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "test_regex_regex" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_smart_ptr_atomic_counter" requests linking to directory "C :/apps/extApps/pcre/lib". Targets may link only to libraries. CMake is droppin g the item. WARNING: Target "test_smart_ptr_shared_ptr" requests linking to directory "C:/ap ps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping th e item. WARNING: Target "test_smart_ptr_sp_counter" requests linking to directory "C:/ap ps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping th e item. WARNING: Target "test_thread_thread" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: C:/apps/instApps/cppcms/build $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Then I execute the "nmake" command i get the next error: Microsoft (R) Program Maintenance Utility Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Scanning dependencies of target booster [ 0%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/posix_ti me.cpp.obj posix_time.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/ctime.cp p.obj ctime.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/regex/src/pcre_reg ex.cpp.obj pcre_regex.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/posix_e rror.cpp.obj posix_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows _error.cpp.obj windows_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_catego ry.cpp.obj aio_category.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_t imer.cpp.obj deadline_timer.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.c pp.obj endpoint.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service .cpp.obj io_service.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp p.obj reactor.cpp c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) : fatal error C1001 : An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x68F438D3:0x00000008]' , line 183) To work around this problem, try simplifying or changing the program near the l ocations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Internal Compiler Error in c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be pr ompted to send an error report to Microsoft later. NMAKE : fatal error U1077: 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The content of C:\apps\instApps\cppcms\build\cppcms\config.h is: /////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <art...@ya...> // // See accompanying file COPYING.TXT file for licensing details. // /////////////////////////////////////////////////////////////////////////////// #ifndef CPPCMS_CONFIG_H #define CPPCMS_CONFIG_H /* Have stdint.h */ #define CPPCMS_HAVE_STDINT_H /* Have _atol64 */ #define CPPCMS_HAVE_ATOI64 /* Have atoll */ /* #undef CPPCMS_HAVE_ATOLL */ #if !defined(CPPCMS_HAVE_ATOLL) && defined(CPPCMS_HAVE_ATOI64) #define atoll _atoi64 #endif /* Have stat */ #define CPPCMS_HAVE_STAT /* Have _stat */ #define CPPCMS_HAVE__STAT /* Have tm.tm_zone */ /* #undef CPPCMS_HAVE_BSD_TM */ /* Have snprintf */ /* #undef CPPCMS_HAVE_SNPRINTF */ /* Have inttypes.h */ /* #undef CPPCMS_HAVE_INTTYPES_H */ /* "Have C++0x std::uXXstring" */ #define CPPCMS_HAVE_CPP0X_UXSTRING #ifdef CPPCMS_HAVE_CPP0X_UXSTRING # define CPPCMS_HAS_CHAR16_T # define CPPCMS_HAS_CHAR32_T #endif /* "Have C++0x auto" */ #define CPPCMS_HAVE_CPP_0X_AUTO /* "Have C++0x decltype" */ #define CPPCMS_HAVE_CPP_0X_DECLTYPE /* "Have g++ typeof" */ /* #undef CPPCMS_HAVE_GCC_TYPEOF */ /* "Enable ICU support" */ /* #undef CPPCMS_HAVE_ICU */ /* Use STD locales instead of ICU ones */ /* #undef CPPCMS_DISABLE_ICU_LOCALIZATION */ /* "Enable ICONV support" */ /* #undef CPPCMS_HAVE_ICONV */ /* "Enable GNU GCrypt library */ /* #undef CPPCMS_HAVE_GCRYPT */ /* "Enable OpenSSL library */ /* #undef CPPCMS_HAVE_OPENSSL */ /* "Have std::wstring" */ #define CPPCMS_HAVE_STD_WSTRING #ifndef CPPCMS_HAVE_STD_WSTRING # define CPPCMS_NO_STD_WSTRING #endif /* Have canonicalize_file_name */ /* #undef CPPCMS_HAVE_CANONICALIZE_FILE_NAME */ /* "Have g++ typeof" */ /* #undef CPPCMS_HAVE_UNDERSCORE_TYPEOF */ /* Define to the full name of this package. */ #define CPPCMS_PACKAGE_NAME "CppCMS" /* Define to the full name and version of this package. */ #define CPPCMS_PACKAGE_STRING "CppCMS/0.999.1" /* Define to the version of this package. */ #define CPPCMS_PACKAGE_VERSION "0.999.1" /* Define to module suffix. */ #define CPPCMS_LIBRARY_SUFFIX ".dll" /* Define to module suffix. */ /* #undef CPPCMS_LIBRARY_PREFIX */ #define CPPCMS_HAS_FCGI #define CPPCMS_HAS_SCGI #define CPPCMS_HAS_HTTP /* #undef CPPCMS_NO_TCP_CACHE */ /* #undef CPPCMS_NO_CACHE */ /* #undef CPPCMS_NO_PREFOK_CACHE */ /* #undef CPPCMS_NO_GZIP */ /* #undef CPPCMS_SQLITE_LINK_STATIC */ #endif $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ And the content of C:\apps\instApps\cppcms\build\booster\booster\build_config.h is: // // Copyright (C) 2009-2012 Artyom Beilis (Tonkikh) // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOSTER_BUILD_CONFIG_H #define BOOSTER_BUILD_CONFIG_H // // GCC's __sync_* operations // /* #undef BOOSTER_HAS_GCC_SYNC */ // // STDC++ library atomic ops in <bits/atomicity.h> // /* #undef BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD */ // // STDC++ library atomic ops in <ext/atomicity.h> // /* #undef BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD */ // // FreeBSD atomic operations // /* #undef BOOSTER_HAVE_FREEBSD_ATOMIC */ // // Solaris atomic operations // /* #undef BOOSTER_HAVE_SOLARIS_ATOMIC */ // // Mac OS X atomic operations // /* #undef BOOSTER_HAVE_MAC_OS_X_ATOMIC */ // // Have <stdint.h> // #define BOOSTER_HAVE_STDINT_H // // Have <inttypes.h> // /* #undef BOOSTER_HAVE_INTTYPES_H */ // // Have IPv6 support // /* #undef BOOSTER_AIO_HAVE_PF_INET6 */ /* #undef BOOSTER_HAVE_EXECINFO */ /* Define to module suffix. */ #define BOOSTER_LIBRARY_SUFFIX ".dll" /* Define to module suffix. */ /* #undef BOOSTER_LIBRARY_PREFIX */ #endif My best regards. On Sun, Feb 19, 2012 at 5:59 PM, Artyom Beilis <art...@ya...> wrote: > Hello, > > How do you build? I've tested the latest release with MSVC 2010 > and it worked fine. > > Few points: > > 1. Make sure you are using nmake make files and **not** visual studio > projects! VS projects for building CppCMS library > ARE NOT SUPPORTED. > > If it still fails: > > 1. Please provide a full output of the cmake and then nmake runs. > 2. Give the content of autogenerated cppcms/config.h and > booster/build_config.h (it seems that something wrong with them) > > > Artyom Beilis > ------------- > > Support CppCMS by donating money: > https://sourceforge.net/donate/index.php?group_id=209965 > > >________________________________ > > From: Vizcayno <viz...@gm...> > >To: cpp...@li... > >Sent: Saturday, February 18, 2012 8:14 PM > >Subject: [Cppcms-users] Some compilation errors when trying to build > cppCms > > > >Hello: > >I downloaded last version of cppCms (using svn). > >The cmake 2.8.7 configured and generated the necessary elements for > compiling. > >When trying to build using MS-VC++ 2010 the next initial errors do not > let me > >continue, it is not the intention that you solve everything, but to > receive > >some guidelines on how to solve them; may be I am loosing something in the > >cmake configuration: > > > >IntelliSense: identifier "snprintf" is undefined > > c:\apps\instapps\cppcms\src\json.cpp line:240 col:7 cppcms > > > >error C3861: 'atoll': identifier not found > > C:\apps\instApps\cppcms\src\http_request.cpp Line:233 col:1 > cppcms > > > >error C1001: An internal error has occurred in the compiler. > > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp 710 1 > > booster > > > >error C3861: 'inet_ntop': identifier not found > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 189 > > 1 booster > > > >error C2228: left of '.sin6_port' must have class/struct/union > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 157 > > 1 booster > >error C2065: 'INET6_ADDRSTRLEN' : undeclared identifier > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 188 > > 1 booster > > > >error C2039: 'inet_pton' : is not a member of '`global namespace'' > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 104 > > 1 booster > > > >My best regards. > > > > > > > > >------------------------------------------------------------------------------ > >Virtualization & Cloud Management Using Capacity Planning > >Cloud computing makes use of virtualization - but cloud computing > >also focuses on allowing computing to be delivered as a service. > >http://www.accelacomm.com/jaw/sfnl/114/51521223/ > >_______________________________________________ > >Cppcms-users mailing list > >Cpp...@li... > >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-02-20 07:47:11
|
You do not link with cppcms library. You need to pass parameters -L/usr/local/lib -lcppcms Alternatively you may also install CppCMS to /usr instead of /usr/local by passing -DCMAKE_INSTALL_PREFIX=/usr when building CppCMS and then you'll need -lcppcms flag only. Artyom Beilis >________________________________ > From: Peter N. <cou...@gm...> >To: cpp...@li... >Sent: Monday, February 20, 2012 7:21 AM >Subject: [Cppcms-users] Compiling Help > > >I'm running Ubuntu and I'm trying to setup KDevelop so onc I click build everything runs. I'm having just basic setup issues... > >main.cpp:(.text+0x23): undefined reference to `cppcms::service::service(int, char**)' >main.cpp:(.text+0x59): undefined reference to `cppcms::service::applications_pool()' >main.cpp:(.text+0x68): undefined reference to `cppcms::applications_pool::mount(std::auto_ptr<cppcms::applications_pool::factory>)' >main.cpp:(.text+0x8c): undefined reference to `cppcms::service::run()' >main.cpp:(.text+0x98): undefined reference to `cppcms::service::~service()' >main.cpp:(.text+0xe0): undefined reference to `cppcms::service::~service()' >/tmp/ccE58iHq.o: In function `post::post(cppcms::service&)': >main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x1f): undefined reference to `cppcms::application::application(cppcms::service&)' >main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x2a): undefined reference to `vtable for post' >collect2: ld returned 1 exit status > >It looks like it's not linking right to the library... -l /home/user... is where I initially built them all from the latest source (0.999.1 at this time). > >I did a make install as well, it did copy them to /usr/local/lib/ > >I added /usr/local/lib/ to my PATH env as well and did relog. > >Any other suggestions? It looks like it just isn't able to refeernce the libraries > > > > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Artyom B. <art...@ya...> - 2012-02-20 07:45:18
|
This is a common problem rather related to ICU issue. It is not too critical, even though it requires some user attention. Take a look on this thread: http://thread.gmane.org/gmane.comp.lib.cppcms.user/1056 Artyom >________________________________ > From: Peter N. <cou...@gm...> > > >On Ubuntu installing CppCms 0.999.1 it fails on 'make test' > >99% tests passed, 1 tests failed out of 93 > >Total Test time (real) = 282.14 sec > >The following tests FAILED: > 87 - test_locale_icu_vs_os_timezone (Failed) >Errors while running CTest >make: *** [test] Error 8 > > >Thanks! > >------------------------------------------------------------------------------ >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Marcel H. <ke...@co...> - 2012-02-20 06:59:37
|
do you have icu installed? some time ago there was a similar mistake because of an package. look for it. has to be in a seperate thread. Am 20.02.2012 02:43, schrieb Peter N.: > On Ubuntu installing CppCms 0.999.1 it fails on 'make test' > > 99% tests passed, 1 tests failed out of 93 > > Total Test time (real) = 282.14 sec > > The following tests FAILED: > 87 - test_locale_icu_vs_os_timezone > Errors while running CTest > make: *** [test] Error 8 > > Thanks! |
From: Peter N. <cou...@gm...> - 2012-02-20 05:22:02
|
I'm running Ubuntu and I'm trying to setup KDevelop so onc I click build everything runs. I'm having just basic setup issues... main.cpp:(.text+0x23): undefined reference to `cppcms::service::service(int, char**)' main.cpp:(.text+0x59): undefined reference to `cppcms::service::applications_pool()' main.cpp:(.text+0x68): undefined reference to `cppcms::applications_pool::mount(std::auto_ptr<cppcms::applications_pool::factory>)' main.cpp:(.text+0x8c): undefined reference to `cppcms::service::run()' main.cpp:(.text+0x98): undefined reference to `cppcms::service::~service()' main.cpp:(.text+0xe0): undefined reference to `cppcms::service::~service()' /tmp/ccE58iHq.o: In function `post::post(cppcms::service&)': main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x1f): undefined reference to `cppcms::application::application(cppcms::service&)' main.cpp:(.text._ZN4postC2ERN6cppcms7serviceE[_ZN4postC5ERN6cppcms7serviceE]+0x2a): undefined reference to `vtable for post' collect2: ld returned 1 exit status It looks like it's not linking right to the library... -l /home/user... is where I initially built them all from the latest source (0.999.1 at this time). I did a make install as well, it did copy them to /usr/local/lib/ I added /usr/local/lib/ to my PATH env as well and did relog. Any other suggestions? It looks like it just isn't able to refeernce the libraries |
From: Peter N. <cou...@gm...> - 2012-02-20 01:43:43
|
On Ubuntu installing CppCms 0.999.1 it fails on 'make test' 99% tests passed, 1 tests failed out of 93 Total Test time (real) = 282.14 sec The following tests FAILED: 87 - test_locale_icu_vs_os_timezone (Failed) Errors while running CTest make: *** [test] Error 8 Thanks! |
From: Artyom B. <art...@ya...> - 2012-02-19 22:06:05
|
Hello, How do you build? I've tested the latest release with MSVC 2010 and it worked fine. Few points: 1. Make sure you are using nmake make files and **not** visual studio projects! VS projects for building CppCMS library ARE NOT SUPPORTED. If it still fails: 1. Please provide a full output of the cmake and then nmake runs. 2. Give the content of autogenerated cppcms/config.h and booster/build_config.h (it seems that something wrong with them) Artyom Beilis ------------- Support CppCMS by donating money: https://sourceforge.net/donate/index.php?group_id=209965 >________________________________ > From: Vizcayno <viz...@gm...> >To: cpp...@li... >Sent: Saturday, February 18, 2012 8:14 PM >Subject: [Cppcms-users] Some compilation errors when trying to build cppCms > >Hello: >I downloaded last version of cppCms (using svn). >The cmake 2.8.7 configured and generated the necessary elements for compiling. >When trying to build using MS-VC++ 2010 the next initial errors do not let me >continue, it is not the intention that you solve everything, but to receive >some guidelines on how to solve them; may be I am loosing something in the >cmake configuration: > >IntelliSense: identifier "snprintf" is undefined > c:\apps\instapps\cppcms\src\json.cpp line:240 col:7 cppcms > >error C3861: 'atoll': identifier not found > C:\apps\instApps\cppcms\src\http_request.cpp Line:233 col:1 cppcms > >error C1001: An internal error has occurred in the compiler. > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp 710 1 > booster > >error C3861: 'inet_ntop': identifier not found > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 189 > 1 booster > >error C2228: left of '.sin6_port' must have class/struct/union > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 157 > 1 booster >error C2065: 'INET6_ADDRSTRLEN' : undeclared identifier > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 188 > 1 booster > >error C2039: 'inet_pton' : is not a member of '`global namespace'' > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 104 > 1 booster > >My best regards. > > > >------------------------------------------------------------------------------ >Virtualization & Cloud Management Using Capacity Planning >Cloud computing makes use of virtualization - but cloud computing >also focuses on allowing computing to be delivered as a service. >http://www.accelacomm.com/jaw/sfnl/114/51521223/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Vizcayno <viz...@gm...> - 2012-02-19 21:35:15
|
Hello: I downloaded last version of cppCms (using svn). The cmake 2.8.7 configured and generated the necessary elements for compiling. When trying to build using MS-VC++ 2010 the next initial errors do not let me continue, it is not the intention that you solve everything, but to receive some guidelines on how to solve them; may be I am loosing something in the cmake configuration: IntelliSense: identifier "snprintf" is undefined c:\apps\instapps\cppcms\src\json.cpp line:240 col:7 cppcms error C3861: 'atoll': identifier not found C:\apps\instApps\cppcms\src\http_request.cpp Line:233 col:1 cppcms error C1001: An internal error has occurred in the compiler. c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp 710 1 booster error C3861: 'inet_ntop': identifier not found C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 189 1 booster error C2228: left of '.sin6_port' must have class/struct/union C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 157 1 booster error C2065: 'INET6_ADDRSTRLEN' : undeclared identifier C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 188 1 booster error C2039: 'inet_pton' : is not a member of '`global namespace'' C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 104 1 booster My best regards. |
From: 陈抒 <csf...@gm...> - 2012-02-19 14:46:13
|
Hello, I remembered I checked 8081 and 8080 ports and closed the process using my script before testing. But maybe my script didn't close the process correctly. Now all your tests passed. Thank you. 陈抒 Best regards http://blog.csdn.net/sheismylife On Sun, Feb 19, 2012 at 10:17 PM, Artyom Beilis <art...@ya...> wrote: > Hello, > > - Do you accidentally have any processes listening on port 8080 or 8081? > - Do you use any non-standard compilation flags? > > Can you give me an output of the Testing log (you can find it under > Testing subdirectory. > > If it still gets stuck, can you please run the test from command line as > > strace -f ./forwarder_test -c ../tests/forwarder_test.js > --test-exec=../tests/forwarder_test.py --test-internal=true > > And give me an output of it. > > Thanks, > > Artyom Beilis > > ------------------------------ > *From:* 陈抒 <csf...@gm...> > *To:* Artyom Beilis <art...@ya...>; > cpp...@li... > *Sent:* Sunday, February 19, 2012 4:00 PM > *Subject:* Re: [Cppcms-users] CppCMS 0.999.1 - RC2 - and (hopefuly) last > RC was released > > > No response when testing 19th case on Ubuntu 10.04(amd64) server. > It works on UBuntu 11.10(amd64) Desktop. > Why? > > > * Start 19: internal_forwarder_test* > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > On Sat, Feb 18, 2012 at 5:26 AM, Artyom Beilis <art...@ya...>wrote: > > All CppCMS 1.0.0 milestone tasks had completed and thus > the second release candidate was released. It contains mostly bug fixes > including > several security bug fixes. It is expected to be the last RC before the > stable version would be delivered. > > All CppCMS users please download the RC2 and test it. If no critical > problems would > be found the stable version would be announced in a week or two. > > Full Release notes can be found there: > > http://blog.cppcms.com/post/100 > > > Artyom Beilis > ------------- > > Support CppCMS by donating money: > https://sourceforge.net/donate/index.php?group_id=209965 > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |