Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 66805 invoked from network); 29 Jan 2005 02:53:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Jan 2005 02:53:41 -0000 Received: (qmail 16867 invoked by uid 500); 29 Jan 2005 02:53:41 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 16850 invoked by uid 500); 29 Jan 2005 02:53:41 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 16826 invoked by uid 99); 29 Jan 2005 02:53:40 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.opensource.lk (HELO squid.cmb.ac.lk) (202.51.147.3) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 28 Jan 2005 18:53:39 -0800 Received: from rangika ([220.247.223.158]) by squid.cmb.ac.lk (8.12.9/8.12.9) with ESMTP id j0T3528a094302 for ; Sat, 29 Jan 2005 09:05:06 +0600 (LKT) (envelope-from rangika@opensource.lk) Message-ID: <000801c505ae$d1cb7ef0$0265a8c0@rangika> From: "Rangika Mendis" To: "Apache AXIS C Developers List" References: <000e01c50293$5fc1c670$0265a8c0@rangika> <1106627310.1114.26.camel@localhost.localdomain> <1106627721.1114.32.camel@localhost.localdomain> <1106644025.1114.42.camel@localhost.localdomain> Subject: Re: AttachmentHelper breaks Windows and AIX Date: Fri, 28 Jan 2005 17:25:46 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Roshan, Thanx for the solution...... it works in windows. So sorry for the late reply. Regards, Rangika ----- Original Message ----- From: "Roshan Weerasuriya" To: "Apache AXIS C Developers List" Sent: Tuesday, January 25, 2005 3:07 PM Subject: Re: AttachmentHelper breaks Windows and AIX > hi All, > > The following hack will make the code work. If you add this in the > AttachmentHelper.h then it builds fine. > > //-----add this code to AttachmentHelper.h----- > #ifdef strtoul > #undef strtoul > #endif > #define strtoul strtoul > //-----end add this code to AttachmentHelper.h----- > > But I doubt whether using this hack is OK simple because apache doesn't > like this "strtoul" function. What we do is going against apache. But > there is no other solution as I see when you look at the following > summary. > > Summary: > Rangika or Nithya is not using this "strtoul" function at all in any of > the files including AttachmentHelper.h. It is that when VC++ 6 buids, > one of its files which is "program files\microsoft visual > studio\vc98\include\xlocnum" is the which is using this function, so it > is totaly out of our control. > > I tried to define strtol instead of strtoul but it didn't compile in > windows/VC++ > > //-----add this code to AttachmentHelper.h but doesn't build----- > #ifdef strtoul > #undef strtoul > #endif > #define strtoul strtol > //-----end add this code to AttachmentHelper.h----- > > Roshan > > > On Tue, 2005-01-25 at 10:35, Roshan Weerasuriya wrote: > > hi All, > > > > I checked the same in Linux. The linux apache version (apache2) also has > > the same entry in its httpd.h include file. But in linux the module > > builds fine. > > > > I think when you build the "Axis C++ Apache2 module" in windows, VC++ 6 > > uses the following file in the compilation process: > > "program files\microsoft visual studio\vc98\include\xlocnum" > > > > This file has funcation calls to the "strtoul" function which Apache > > doesn't like for some reason (as Apache says it is not a portable > > function) > > > > But probably in linux there are no function calls to "strtoul" so it > > builds fine in linux. > > > > Any ideas abt solving this problem??? > > > > Roshan > > > > On Tue, 2005-01-25 at 10:28, Roshan Weerasuriya wrote: > > > hi All, > > > > > > When I investigated this problem I found the following. In the > > > apache2_0\httpd.h include file the following is there: > > > //-----from apache2_0\httpd.h ------ > > > .. > > > .... > > > /** strtoul does not exist on sunos4. */ > > > #ifdef strtoul > > > #undef strtoul > > > #endif > > > #define strtoul strtoul_is_not_a_portable_function_use_strtol_instead > > > ... > > > ...... > > > //-----end from apache2_0\httpd.h ------ > > > > > > This causes this compile error in windows. I just commented above from > > > the httpd.h file and then the Axis C++ Apache2 module started to compile > > > fine. But this is not the soulution since we can't comment Apache's > > > httpd.h file entries. > > > > > > Any idea??? > > > > > > Roshan > > > > > > > > > On Tue, 2005-01-25 at 10:07, Rangika Mendis wrote: > > > > Hi John, > > > > > > > > When I tried to compile the Apache2Transport with > > > > AttachmentHelper class included I also got the linking errors > > > > that you mentioned. Then I renamed strtoul with strtol in the > > > > xlocnum file. That solved the compilation problems. > > > > > > > > We tested all the classes related to ws-attachments in windows > > > > before committing and it worked. > > > > > > > > Well I guess we'll have to test again. > > > > > > > > Regards, > > > > Rangika > > > > > > > > > > > > ----- Original Message ----- > > > > From: John Hawkins > > > > To: axis-c-dev@ws.apache.org > > > > Sent: Tuesday, January 25, 2005 2:55 AM > > > > Subject: AttachmentHelper breaks Windows and AIX > > > > > > > > Hi Folks, > > > > > > > > Attachments appear to have broken the builds again I'm > > > > afraid. It broke on Windows and AIX. It appears, after > > > > some investigation, that AttachmentHelper is the > > > > offending class. It appears to compile fine on Linux > > > > but not on the other platforms. The errors below are > > > > what we see in the ANT (windows) build. Perhaps this > > > > is an ANT build issue only? The issues on AIX are > > > > similar. > > > > > > > > We've been struggling to fix this and we really need a > > > > stable build. So I'm sorry but the best that I could > > > > do was remove the offending Objects from CVS until we > > > > can discuss it on the mailing list. If this is an ANT > > > > build issue only when please could you explain what > > > > the scripts need to include/exclude and we'll be happy > > > > to fix it. > > > > > > > > > > > > > > > > > > > > compileApache20Module: > > > > [copy] Copying 102 files to > > > > F:\build\nw00_PA\src\ws-axis\c\include\apache2_0 > > > > Suspicious library name starting with "lib": libapr > > > > Suspicious library name starting with "lib": libhttpd > > > > [cc] 3 total files to be compiled. > > > > [cc] Apache2Transport.cpp > > > > [cc] D:\msdev6\VC98\INCLUDE\xlocnum(155) : error > > > > C2065: > > > > 'strtoul_is_not_a_portable_function_use_strtol_instead' : undeclared identifier > > > > [cc] D:\msdev6\VC98\INCLUDE\xlocnum(144) > > > > : while compiling class-template member function > > > > 'class std::istreambuf_iterator > > > std::char_traits > __thiscall > > > > std::num_get > > > std::istreambuf_iterator > > > std::char_traits > >::do_get(class > > > > std::istreambuf_iterator > > > std::char_traits >,class > > > > std::istreambuf_iterator > > > std::char_traits >,class std::ios_base &,int > > > > &,bool &) const' > > > > [cc] mod_axis2.cpp > > > > [cc] D:\msdev6\VC98\INCLUDE\xlocnum(155) : error > > > > C2065: > > > > 'strtoul_is_not_a_portable_function_use_strtol_instead' : undeclared identifier > > > > [cc] D:\msdev6\VC98\INCLUDE\xlocnum(144) > > > > : while compiling class-template member function > > > > 'class std::istreambuf_iterator > > > std::char_traits > __thiscall > > > > std::num_get > > > std::istreambuf_iterator > > > std::char_traits > >::do_get(class > > > > std::istreambuf_iterator > > > std::char_traits >,class > > > > std::istreambuf_iterator > > > std::char_traits >,class std::ios_base &,int > > > > &,bool &) const' > > > > > > > > The changes I've made are to remove AttachmentHelper > > > > from being included in > > > > > > > > Modified: c/src/server/apache2 AttachmentHelper.h > > > > Apache2Transport.cpp > > > > Apache2Transport.h > > > > > > > > sorry for any inconvenience. > > > > John. > > > > > > > > John Hawkins > > > > > > > > > > > > > > > > >