cppcms-users Mailing List for CppCMS C++ Web Framework (Page 119)
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: Cristian O. <one...@gm...> - 2011-01-20 11:53:16
|
On Thu, Jan 20, 2011 at 1:34 PM, Artyom <art...@ya...> wrote: >> From: Cristian Oneț <one...@gm...> >> >> Sorry I have one more patch that I forgot about. When running with >> apache+mod_fastcgi the application runs in context of >> NTAUTHORITY\SYSTEM which can't use CryptAcquireContext the way it's >> used by a normal user (so it's failing) see [1] but from the msdn docs >> [2] it seems that cppcms should call CryptAcquireContext with >> CRYPT_VERIFYCONTEXT flag (see the flag's description). >> >> [1] >>http://www.eggheadcafe.com/software/aspnet/32785121/how-to-prevent-microsoft-csps-from-using-dpapi.aspx >> >> [2] http://msdn.microsoft.com/en-us/library/aa379886%28v=vs.85%29.aspx >> > > Ok > > I'll commit this as well. > > As you understand I'm mostly Linux/Unix developer > with good background in Windows. > so such things are quite hard to catch them for me. Sure, I understand, I also work on both Linux and Windows and from what info I got on the project I imagined that this is the case. Thanks for taking care of the problems found so far, I'll keep reporting stuff that I find. > Thanks! > Artyom Regards, Cristian |
From: Artyom <art...@ya...> - 2011-01-20 11:34:46
|
> From: Cristian Oneț <one...@gm...> > > Sorry I have one more patch that I forgot about. When running with > apache+mod_fastcgi the application runs in context of > NTAUTHORITY\SYSTEM which can't use CryptAcquireContext the way it's > used by a normal user (so it's failing) see [1] but from the msdn docs > [2] it seems that cppcms should call CryptAcquireContext with > CRYPT_VERIFYCONTEXT flag (see the flag's description). > > [1] >http://www.eggheadcafe.com/software/aspnet/32785121/how-to-prevent-microsoft-csps-from-using-dpapi.aspx > > [2] http://msdn.microsoft.com/en-us/library/aa379886%28v=vs.85%29.aspx > Ok I'll commit this as well. As you understand I'm mostly Linux/Unix developer with good background in Windows. so such things are quite hard to catch them for me. Thanks! Artyom |
From: Artyom <art...@ya...> - 2011-01-20 11:30:42
|
First of all thanks for contributions they are very important! > Hi, > > I'm currently testing cppcms from svn trunk compiled with msvc2005 (I > know that the wiki states that only MSVC9 and MSVC10 are supported but > MSVC8 works just as fine). > As a first impression I would like to say that the lib looks really > good > I intend to use it in combination with apache+mod_fastcgi. > After a few days of working with it I found the following issues and I > want to share them with you: Basically I just had no chance to test in on MSVC8 so I published what I could test. If it works fine I'll add it to the supported platforms list (even thou it wouldn't be used in nightly builds and tests) > 1. The application does not handle shutdown requests sent by > mod_fastcgi; a simple solution would be to add the mechanism used in > libfcgi (the fastcgi client implementation provided by > www.fastcgi.com) see the attached > apache_mod_fastcgi_nice_shutdown.patch - nothe that the implementation > could be improved to use a cppcms thread instead of _beginthread. Ok this is good because I hadn't tested it with Apache on Windows. Few points: 1. Why and how does this work? HANDLE shutdownEvent = (HANDLE) atoi(val); Isn't handle has meaning inside process only? Or it can be shared between processes this way? 2. I think there should be better handling of shutdown: It should wait for multiple objects because process may go down for other reason and the thread should be stopped as well. BTW: booster::thread can be used for this purpose. it should be something like a special class that stops its thread in destructor or something like that. I'll take a look on this. > 2. When trying the hello/form example I was getting an infinite loop > in the application due to the fact that an input stream was tested > only for eof and not for validity see > http_request_infinite_loop.patch. Thanks, you are right, I'll commit it. > These two where critical issues that I would like to see solved > somehow in cppcms. The following two patches are just insignificant > improvements: > 3. Enable using external boost lib while running cmake configure and > add an extra name for the zlib library on Windows > cmake_permit_using_external_boost_and_zlib_on_win_name.patch Actually CppCMS no longer supports external boost and this is for ABI stability reason - I don't want users to have programs to fail because he uses boost_1_43 in their program and CppCMS was compiled against 1_44 or 1_36. The internal boost is not only subset of boost but rather renamed version of it (namespace boost -> namespace cppcms_boost) These ifdefs should go in any case. > 4. This fixes the only code incompatibility I have found on msvc2005 > (mscv_2005_compatibility.patch) but googleing revealed that this can > be fixed using a never winsdk so this is only important if upgrading > is not an option > This is all for now. > Thanks I'll commit this as well. Thank you very much, Artyom |
From: Cristian O. <one...@gm...> - 2011-01-20 11:09:52
|
On Thu, Jan 20, 2011 at 12:37 PM, Cristian Oneț <one...@gm...> wrote: > Hi, > > I'm currently testing cppcms from svn trunk compiled with msvc2005 (I > know that the wiki states that only MSVC9 and MSVC10 are supported but > MSVC8 works just as fine). > As a first impression I would like to say that the lib looks really > good. I intend to use it in combination with apache+mod_fastcgi. > After a few days of working with it I found the following issues and I > want to share them with you: > 1. The application does not handle shutdown requests sent by > mod_fastcgi; a simple solution would be to add the mechanism used in > libfcgi (the fastcgi client implementation provided by > www.fastcgi.com) see the attached > apache_mod_fastcgi_nice_shutdown.patch - nothe that the implementation > could be improved to use a cppcms thread instead of _beginthread. > 2. When trying the hello/form example I was getting an infinite loop > in the application due to the fact that an input stream was tested > only for eof and not for validity see > http_request_infinite_loop.patch. > These two where critical issues that I would like to see solved > somehow in cppcms. The following two patches are just insignificant > improvements: > 3. Enable using external boost lib while running cmake configure and > add an extra name for the zlib library on Windows > cmake_permit_using_external_boost_and_zlib_on_win_name.patch > 4. This fixes the only code incompatibility I have found on msvc2005 > (mscv_2005_compatibility.patch) but googleing revealed that this can > be fixed using a never winsdk so this is only important if upgrading > is not an option > This is all for now. > > Regards, > Cristian Oneț > Sorry I have one more patch that I forgot about. When running with apache+mod_fastcgi the application runs in context of NTAUTHORITY\SYSTEM which can't use CryptAcquireContext the way it's used by a normal user (so it's failing) see [1] but from the msdn docs [2] it seems that cppcms should call CryptAcquireContext with CRYPT_VERIFYCONTEXT flag (see the flag's description). [1] http://www.eggheadcafe.com/software/aspnet/32785121/how-to-prevent-microsoft-csps-from-using-dpapi.aspx [2] http://msdn.microsoft.com/en-us/library/aa379886%28v=vs.85%29.aspx Regards, Cristian Oneț |
From: Cristian O. <one...@gm...> - 2011-01-20 10:37:39
|
Hi, I'm currently testing cppcms from svn trunk compiled with msvc2005 (I know that the wiki states that only MSVC9 and MSVC10 are supported but MSVC8 works just as fine). As a first impression I would like to say that the lib looks really good. I intend to use it in combination with apache+mod_fastcgi. After a few days of working with it I found the following issues and I want to share them with you: 1. The application does not handle shutdown requests sent by mod_fastcgi; a simple solution would be to add the mechanism used in libfcgi (the fastcgi client implementation provided by www.fastcgi.com) see the attached apache_mod_fastcgi_nice_shutdown.patch - nothe that the implementation could be improved to use a cppcms thread instead of _beginthread. 2. When trying the hello/form example I was getting an infinite loop in the application due to the fact that an input stream was tested only for eof and not for validity see http_request_infinite_loop.patch. These two where critical issues that I would like to see solved somehow in cppcms. The following two patches are just insignificant improvements: 3. Enable using external boost lib while running cmake configure and add an extra name for the zlib library on Windows cmake_permit_using_external_boost_and_zlib_on_win_name.patch 4. This fixes the only code incompatibility I have found on msvc2005 (mscv_2005_compatibility.patch) but googleing revealed that this can be fixed using a never winsdk so this is only important if upgrading is not an option This is all for now. Regards, Cristian Oneț |
From: Artyom <art...@ya...> - 2011-01-19 11:51:29
|
Hello All, I've posted request for FOSS ad at meta.stackoverlow.com: http://meta.stackoverflow.com/questions/74983/open-source-advertising-sidebar-1h-2011/75443#75443 If you have an **active** account at Stackoverflow please vote for this project. Also I would like to remind you that there is a page where you may write about your use cases of CppCMS: http://art-blog.no-ip.info/wikipp/en/page/who_uses Thanks, Artyom |
From: Artyom <art...@ya...> - 2011-01-12 22:20:47
|
Hello All, CppCMS 0.99.6 and 0.0.8 released they include security related bug fixes. If you are using session storage based on AES encrypted cookies you are encouraged to update to latest version or switch to alternative session storage as workaround. For more details read this: http://art-blog.no-ip.info/cppcms/blog/post/74 Artyom |
From: augustin <aug...@ov...> - 2011-01-12 10:30:15
|
On Wednesday 12 January 2011 05:34:05 pm Artyom wrote: > Fixed in 1631 in CppCMS 1.x.x and in 1632 in CppCMS 0.0.x Yep, it works now. :) > Thanks a lot for reporting this bug. Well, it's nice to be useful, for a change. I usually ask very beginner questions. Thanks for the quick fix. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-12 09:34:12
|
> > base64_urlencode seems to be working now, but I still experience random (?) > crashes with urlencode. I'll investigate more and let you know if I can narrow > > it down with a small example code. > Ok... That was really embarrassing as three was a bug in urlencode for long time. char c = ...; char buf[4]; sprintf(buf,"%%%02x",(unsigned)c); // <- BUG HERE! Together with the fact that I forgot include <cppcms/config.h> to get CPPCMS_HAVE_SNPRINTF so it hadn't used protected version of snprintf(buf,sizeof(buf),"%%%02x",(unsigned)c); // Which is not correct as well, but not crashes. and finally got buffer overflow... Fixed in 1631 in CppCMS 1.x.x and in 1632 in CppCMS 0.0.x P.S. Now I know why Unicode user names didn't worked in Wikipp.... Thanks a lot for reporting this bug. Artyom |
From: augustin <aug...@ov...> - 2011-01-12 09:01:02
|
On Wednesday 12 January 2011 04:28:42 pm Artyom wrote: > First of all base64_urlencode indeed had a bug, fixed in trunk changeset > 1630. > > Thanks for reporting this! > > > I don't see any issues with urlencode filter seems to work. > base64_urlencode seems to be working now, but I still experience random (?) crashes with urlencode. I'll investigate more and let you know if I can narrow it down with a small example code. thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-12 08:28:49
|
> > Hello, > > Referring to the template filters: > > http://art-blog.no-ip.info/cppcms_ref_v0_99_1/namespacecppcms_1_1filters.html > http://art-blog.no- > ip.info/wikipp/en/page/cppcms_1x_templates_comm#Variable.with.filters > > In my template, all the following filters work as expected: > <% my_var | to_title %> > <% my_var | raw %> > <% my_var | to_upper %> > <% my_var | escape %> > > But if I use one of the two urlencode filters, the application crashes at run > time: > <% my_var | urlencode %> > <% my_var | base64_urlencode %> > > Is their use different? First of all base64_urlencode indeed had a bug, fixed in trunk changeset 1630. Thanks for reporting this! I don't see any issues with urlencode filter seems to work. Also small notice: "escape" is the **default** filter no need to specify it explicitly, if you want to pass the string "as-is" you need to use "raw" filter - which bypasses the escaping. Artyom |
From: augustin <aug...@ov...> - 2011-01-12 04:02:18
|
Hello, Referring to the template filters: http://art-blog.no-ip.info/cppcms_ref_v0_99_1/namespacecppcms_1_1filters.html http://art-blog.no- ip.info/wikipp/en/page/cppcms_1x_templates_comm#Variable.with.filters In my template, all the following filters work as expected: <% my_var | to_title %> <% my_var | raw %> <% my_var | to_upper %> <% my_var | escape %> But if I use one of the two urlencode filters, the application crashes at run time: <% my_var | urlencode %> <% my_var | base64_urlencode %> Is their use different? But I see in wikipp that you don't use any filters for URLs, e.g.: <a href="<% c.diff_url %>"><% gt "Diff to previous" %></a> What's the best (safest) way to handle links? my_var is a std::string. Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Mario P. <mp...@us...> - 2011-01-11 11:38:00
|
El 10/01/11 15:14, Artyom escribió: > Hello, > > First of all this is great contribution! > > Few notes or issues I had found in this configuration: > > 1. I would recommend include by default the recommended dependencies: > > a) ICU - is very important part of the library. > b) Gcrypt or OpenSSL - I'd recommended gcrypt as it has GPL compatible > license (unlike OpenSSL) > > There are should be included in default builds as they provide very valuable > features. > First of all I must say that I am not an official Debian Developer, but I want to get in touch with official Debian Developers in the near future, to propose my package in the official repositories. I agree I should include the recommended dependencies (ICU and Gcrypt), and I will do so in a new version of the package. The reason for not building with this dependencies is that lately I was creating a minimal version for an embedded device that had no such dependencies. > 2. May be I do not understand but according to the files it seems to me not > include: > > a) cppcms_tmpl_cc - templates compiler > b) cppcms_run - the script for running cppcms applications with different web > servers easily > > I think they both should be either in libcppcms1-dev or in the some package > like cppcms1-tools > Ok, in the new version of the package I will consider this. At first I'll put these binaries in the package libcppcms1-dev (but I have to review the Debian Policy). > 3. I don't know what is the policy of Debian, but wouldn't it be better to have > libbooster and libcppcms > as separate packages as, libbooster is very useful outside scope of CppCMS > and can be seen as > ABI stable boost subset. > > But this is rather minor and optional thing. > > I have to review the policy of Debian on this, although it is clear that if the library has entity itself, it should be in another package. Another thing is that currently is only used in conjunction with CppCMS, and could be separated in the future as another package, if necessary. > Thank you once again. > Do you want debian build files to be included in the > official SVN distribution. > I really don't know: from what I know, most Debian packagers have their own tree with the "debian" directory, and the original software does not contain this, but if someone wants to build a Debian package from the latest version of the software in the repository, it will be easy if they already have available these files directly en the official SVN distribution. I leave to you the decision on this. > One additional notice, CppCMS is officially beta version and its ABI is not > stabilized, however > I do not update SOVERSION as I expect that first official - non-beta release > would have > SOVERSION 1. > > Artyom > > Thanks for your words of support for my work, that encourages me to continue to support and assist wherever possible to this great software. Thanks to you, Artyom, for sharing this as free software with everyone. Mario |
From: Artyom <art...@ya...> - 2011-01-11 11:11:16
|
> > I understand the security implications. > I was simply looking for something convenient, to use locally on my > development platform. > See cppcms_run script documentation: http://art-blog.no-ip.info/wikipp/en/page/ref_utils#run It is little bit not updated but you only need to replace -c config.txt with -c config.js It is very useful for debugging with specific web server. Artyom |
From: augustin <aug...@ov...> - 2011-01-11 08:28:32
|
On Tuesday 11 January 2011 04:14:39 pm Artyom wrote: > You likely need to run the Apache and CppCMS under same group, > This is very good idea for security reasons. > > Now setting the socket to a+w is bad... If you really > want to do this (which I do not suggest) > > Put at the main() of your progam > > umask(0777) > I understand the security implications. I was simply looking for something convenient, to use locally on my development platform. The problem is, on a Debian system, apache runs as www-data, and even if my app has the group www-data, the group does not have write access to the socket, so I still need to sudo to fix it after each compile and restart: I was trying to find a way to lazy my way out of this ;) Never mind about this. I'll find an acceptable solution, both convenient and secure. Thanks. A. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2011-01-11 08:22:24
|
That's was it! I usually do: cmake .. to install in /usr/local/ But a few months ago, when I just started using cppcms, I may have done an install using the prefix /usr. I deleted everything *cppcms* and *booster* that was installed, and reinstalled: it now works. Thanks you Artyom. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-11 08:14:47
|
Hi, You likely need to run the Apache and CppCMS under same group, This is very good idea for security reasons. Now setting the socket to a+w is bad... If you really want to do this (which I do not suggest) Put at the main() of your progam umask(0777) If you can't run them in same group: use TCP/IP sockets. Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Tue, January 11, 2011 5:43:42 AM > Subject: [Cppcms-users] Apache2/FCgi external server: socket ownership problems > > > Hello, > > I recently finally managed to set up Apache2 with FastCGI, start by the web > server: > http://art-blog.no- >ip.info/wikipp/en/page/cppcms_1x_tut_web_server_config#Apache..FastCGI..Start.by.Web.Server >r > > I documented the solution to some problems I came across : > http://art-blog.no- > ip.info/wikipp/en/page/cppcms_1x_server_configuration_troubleshooting > > > Now, I am trying to configure Apache, FastCGI, Independent start for easier > development. > It's working, but FastCGI has a socket permission problem: > When I start the application, the socket has only write access for my user > (me) but not for the web server user www-data. > I can fix this easily by chmod a+w the socket. > Is there any way to configure the socket (or config.js) so that by default the > > www-data user has write access to it? > > > Augustin. > > > > > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom <art...@ya...> - 2011-01-11 08:08:57
|
1. Mare sure you have no two versions installed: For example cmake .. would install CppCMS to /usr/local/(lib|bin|include) But you may used: cmake -DCMAKE_INSTALL_PREFIX=/usr .. which would install CppCMS to /usr/(lib|bin|include) 2. Make sure you had headers and compilation scripts installed. 3. Make sure you rebuild your own application from the scratch with new cppcms. Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Tue, January 11, 2011 9:13:49 AM > Subject: [Cppcms-users] Problems after upgrading cppcms with booster > > I was using a much older version of cppcms (from the temporary branch, before > it was moved to trunk). > > I downloaded from svn a fresh copy of cppcms from the trunk. > cmake .. > make > make test > sudo make install > All without any problem. > > But now, my own application won't compile anymore. I deleted the build > directory of my app, and rebuild from scratch, but I get the following errors: > > > > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::generator::get(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&) const' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::ext_value(std::ios_base&, > booster::locale::flags::value_type)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::info::encoding() const' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::ext_setf(std::ios_base&, > booster::locale::flags::display_flags_type, > booster::locale::flags::display_flags_type)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `void booster::locale::ext_pattern<char>(std::ios_base&, > booster::locale::flags::pattern_type, std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to > `booster::locale::impl::convert(booster::locale::impl::conversion_type, char > const*, char const*, int, std::locale const*)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to > `booster::locale::generator::octet_encoding(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::generator::preload(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > collect2: ld returned 1 exit status > > > libbooster.so.0.0.0 > and > libcppcms.so.1.0.0 > are all properly installed in /usr/local/lib as before, but with today's > timestamp. > > > Actually, I had tried to upgrade cppcms earlier, but got a similar error and > reverted to using the older cppcms. > > > I added 'booster' to my target_link_libraries() in CMakeLists.txt (it seems it > > was not required in earlier versions of cppcms). > I deleted the build directory and started again... > But now, there are compiler errors about the template object: > > > Linking CXX executable ../my_app.fcgi > CMakeFiles/../my_app.fcgi.dir/view.cpp.o: In function `void > booster::locale::message::write<char>(std::basic_ostream<char, > std::char_traits<char> >&) const': > view.cpp: >(.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void >d > > booster::locale::message::write<char>(std::basic_ostream<char, > std::char_traits<char> >&) const]+0x59): undefined reference to > `booster::locale::ios_info::get(std::ios_base&)' > view.cpp: >(.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void >d > > booster::locale::message::write<char>(std::basic_ostream<char, > std::char_traits<char> >&) const]+0x61): undefined reference to > `booster::locale::ios_info::domain_id() const' > collect2: ld returned 1 exit status > > where view.cpp is generated by cppcms_tmpl_cc from my template. > > > > > Augustin. > > > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2011-01-11 07:13:28
|
I was using a much older version of cppcms (from the temporary branch, before it was moved to trunk). I downloaded from svn a fresh copy of cppcms from the trunk. cmake .. make make test sudo make install All without any problem. But now, my own application won't compile anymore. I deleted the build directory of my app, and rebuild from scratch, but I get the following errors: /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::get(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::ext_value(std::ios_base&, booster::locale::flags::value_type)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::info::encoding() const' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::ext_setf(std::ios_base&, booster::locale::flags::display_flags_type, booster::locale::flags::display_flags_type)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `void booster::locale::ext_pattern<char>(std::ios_base&, booster::locale::flags::pattern_type, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::impl::convert(booster::locale::impl::conversion_type, char const*, char const*, int, std::locale const*)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::octet_encoding(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::preload(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2: ld returned 1 exit status libbooster.so.0.0.0 and libcppcms.so.1.0.0 are all properly installed in /usr/local/lib as before, but with today's timestamp. Actually, I had tried to upgrade cppcms earlier, but got a similar error and reverted to using the older cppcms. I added 'booster' to my target_link_libraries() in CMakeLists.txt (it seems it was not required in earlier versions of cppcms). I deleted the build directory and started again... But now, there are compiler errors about the template object: Linking CXX executable ../my_app.fcgi CMakeFiles/../my_app.fcgi.dir/view.cpp.o: In function `void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const': view.cpp: (.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const]+0x59): undefined reference to `booster::locale::ios_info::get(std::ios_base&)' view.cpp: (.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const]+0x61): undefined reference to `booster::locale::ios_info::domain_id() const' collect2: ld returned 1 exit status where view.cpp is generated by cppcms_tmpl_cc from my template. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2011-01-11 03:43:17
|
Hello, I recently finally managed to set up Apache2 with FastCGI, start by the web server: http://art-blog.no- ip.info/wikipp/en/page/cppcms_1x_tut_web_server_config#Apache..FastCGI..Start.by.Web.Server I documented the solution to some problems I came across : http://art-blog.no- ip.info/wikipp/en/page/cppcms_1x_server_configuration_troubleshooting Now, I am trying to configure Apache, FastCGI, Independent start for easier development. It's working, but FastCGI has a socket permission problem: When I start the application, the socket has only write access for my user (me) but not for the web server user www-data. I can fix this easily by chmod a+w the socket. Is there any way to configure the socket (or config.js) so that by default the www-data user has write access to it? Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-10 18:36:21
|
> >From: Baptiste Ducatel <bip...@gm...> >To: cpp...@li... >Sent: Mon, January 10, 2011 6:00:46 PM >Subject: [Cppcms-users] language specifies in sub-domains > >Hi, > > >I would like to know how to manage sub-domains with cppcms, >because our sub-domains contain the language of the website >they look like: > en.tatoeba.org > fr.tatoeba.org > > >They are "virtual" sub-domains, just to stock the language. > > >Do you have any idea to configure cppcms and how can I get the language with >urls. > > You should use HTTP_HOST variable to get the domain. See: http://art-blog.no-ip.info/cppcms_ref_v0_99/classcppcms_1_1http_1_1request.html#0dc145f6fb337cd352c64a7011bd2142 Then you can extract it with regular expression or something like that. I would overload cppcms::application::main and set the language there and the "dispatch" urls as I need. See for example how wikipp handles this: http://cppcms.svn.sourceforge.net/viewvc/cppcms/wikipp/branches/for_cppcms_v100/wiki.cpp?revision=1615&view=markup Just in your case you should do something like: static const booster::regex lang_regex("([a-z]+)\\.tatoeba\\.org"); void your_app::main(std::string url) { // set language globally before dispatching booster::smatchres; std::string domain = request().http_host(); if(booster::regex_match(domain,res,lang_regex)){ std::string lang = res[1]; set_current_language(lang); } // now execute regular url dispatching. cppcms::application::main(url); } >Thanks, >Baptiste Regards, Artyom P.S.: I also would be glad to hear how does it goes with converting tatoeba.org to CppCMS. |
From: Baptiste D. <bip...@gm...> - 2011-01-10 16:26:42
|
Hi, I would like to know how to manage sub-domains with cppcms, because our sub-domains contain the language of the website they look like: en.tatoeba.org fr.tatoeba.org They are "virtual" sub-domains, just to stock the language. Do you have any idea to configure cppcms and how can I get the language with urls. Thanks, Baptiste |
From: Artyom <art...@ya...> - 2011-01-10 14:14:49
|
Hello, First of all this is great contribution! Few notes or issues I had found in this configuration: 1. I would recommend include by default the recommended dependencies: a) ICU - is very important part of the library. b) Gcrypt or OpenSSL - I'd recommended gcrypt as it has GPL compatible license (unlike OpenSSL) There are should be included in default builds as they provide very valuable features. 2. May be I do not understand but according to the files it seems to me not include: a) cppcms_tmpl_cc - templates compiler b) cppcms_run - the script for running cppcms applications with different web servers easily I think they both should be either in libcppcms1-dev or in the some package like cppcms1-tools 3. I don't know what is the policy of Debian, but wouldn't it be better to have libbooster and libcppcms as separate packages as, libbooster is very useful outside scope of CppCMS and can be seen as ABI stable boost subset. But this is rather minor and optional thing. Thank you once again. Do you want debian build files to be included in the official SVN distribution. One additional notice, CppCMS is officially beta version and its ABI is not stabilized, however I do not update SOVERSION as I expect that first official - non-beta release would have SOVERSION 1. Artyom ----- Original Message ---- > From: Mario Palomo <mp...@us...> > To: cpp...@li... > Sent: Mon, January 10, 2011 1:57:02 PM > Subject: [Cppcms-users] Debian packaging for CppCMS > > Hello Artyom, > > I attach a tarball of a "debian" directory to put in the source's root > directory of CppCMS for generate two Debian packages: "libcppcms1" and > "libcppcms1-dev". With this code, in a Debian system with packages > "build-essential" and "debhelper" installed, we can generate the CppCMS DEBs > with the command "dpkg-buildpackage". > > I've build the Debian packages for i386 and amd64 architectures for CppCMS > 0.99.5, and can be downloaded from this URL: > > http://mpalomo.users.sourceforge.net/cppcms/ > > I hope to build packages for each new official version of CppCMS, which can be > > found at the URL above. Later I hope to also create packages for other > architectures, and I also want to create packages of CppDB. > > I hope this helps for those who work with Debian or Ubuntu. If you see > something wrong let me know. Greetings, > > Mario > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2011-01-10 13:45:16
|
On Monday 10 January 2011 07:57:02 pm Mario Palomo wrote: > I hope this helps for those who work with Debian or Ubuntu. If you see > something wrong let me know. Greetings, > As a Kubuntu user, I'd like to thank you :) Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Mario P. <mp...@us...> - 2011-01-10 11:57:30
|
Hello Artyom, I attach a tarball of a "debian" directory to put in the source's root directory of CppCMS for generate two Debian packages: "libcppcms1" and "libcppcms1-dev". With this code, in a Debian system with packages "build-essential" and "debhelper" installed, we can generate the CppCMS DEBs with the command "dpkg-buildpackage". I've build the Debian packages for i386 and amd64 architectures for CppCMS 0.99.5, and can be downloaded from this URL: http://mpalomo.users.sourceforge.net/cppcms/ I hope to build packages for each new official version of CppCMS, which can be found at the URL above. Later I hope to also create packages for other architectures, and I also want to create packages of CppDB. I hope this helps for those who work with Debian or Ubuntu. If you see something wrong let me know. Greetings, Mario |