[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-c-dev
Subject: Re: AttachmentHelper breaks Windows and AIX
From: "sanjaya singharage" <sanjayas () opensource ! lk>
Date: 2005-01-31 12:13:26
Message-ID: 037e01c5078e$4490fbf0$0665a8c0 () dfduc05cq64kja
[Download RAW message or body]
Ok. +1 for keeping attachments out of 1.5.
sanjaya.
----- Original Message -----
From: John Hawkins
To: Apache AXIS C Developers List
Sent: Monday, January 31, 2005 3:33 PM
Subject: Re: AttachmentHelper breaks Windows and AIX
Hi Folks,
AIX is broken and we do not have the resource to fix it if attachments are in - \
there is no guaranteee that the issue that we see now will be the last ! I would \
prefer (as I keep repeating!) to keep Attachments out of this release please?
Overall, I also think this is a hack fix (as I think others agree) and we should \
look for a better solution.
thankyou,
John.
John Hawkins
Samisa Abeysinghe <samisa.abeysinghe@gmail.com>
31/01/2005 07:57 Please respond to
"Apache AXIS C Developers List"
To Apache AXIS C Developers List <axis-c-dev@ws.apache.org>
cc
Subject Re: AttachmentHelper breaks Windows and AIX
Well, I think the problems are with platforms other than Windows and Linux.
AIX has been a major concern according to John.
There is limited access to this platform, hence the question is, would
those who have access would have enough time and energy to test this
within the set timelines?
We cannot ignore the platform factor as there could be planned
deployments on those platforms.
Thanks,
Samisa...
On 31 Jan 2005 12:14:27 +0600, Roshan Weerasuriya <roshan@opensource.lk> wrote:
> hi All,
>
> If the attachment support works on windows and linux, and if there is a
> sample as well, and if it is tested, then I would like to see it with
> 1.5. If we have a feature it is a good idea to provide it to the
> clients.
>
> +1 for supporting Attachments with 1.5 release.
>
> Roshan
>
> On Mon, 2005-01-31 at 12:10, Rangika Mendis wrote:
> > Hi Samisa,
> >
> > If there are no issues supporting ws-attachments for 1.5 then this can be
> > shipped with 1.5.
> >
> > Regards,
> > Rangika
> >
> >
> >
> > ----- Original Message -----
> > From: "Samisa Abeysinghe" <samisa.abeysinghe@gmail.com>
> > To: "Apache AXIS C Developers List" <axis-c-dev@ws.apache.org>
> > Sent: Monday, January 31, 2005 11:49 AM
> > Subject: Re: AttachmentHelper breaks Windows and AIX
> >
> >
> > > Hi Rangika,
> > > Please help me get this right.
> > > What you are saying is that all the implementations are in CVS,
> > > but attachments would not ship with 1.5. Am I correct?
> > >
> > > Regards,
> > > Samisa...
> > >
> > >
> > > On Mon, 31 Jan 2005 11:14:26 +0600, Rangika Mendis
> > > <rangika@opensource.lk> wrote:
> > > >
> > > > Hi all,
> > > >
> > > > Ws-attachments are working on windows & Linux. We tested with the
> > latest
> > > > checkout & it worked.
> > > > We have commited all the stuff (code, samples etc) to the CVS. (But
> > we
> > > > have just commented the places where it invokes attachment related
> > methods
> > > > in the CVS.)
> > > >
> > > > Regards,
> > > > Nithya & Rangika
> > > >
> > > > ----- Original Message -----
> > > > From: "Rangika Mendis" <rangika@opensource.lk>
> > > > To: "Apache AXIS C Developers List" <axis-c-dev@ws.apache.org>
> > > > Sent: Friday, January 28, 2005 5:25 PM
> > > > Subject: Re: AttachmentHelper breaks Windows and AIX
> > > >
> > > > > Hi Roshan,
> > > > >
> > > > > Thanx for the solution...... it works in windows.
> > > > >
> > > > > So sorry for the late reply.
> > > > >
> > > > > Regards,
> > > > > Rangika
> > > > > ----- Original Message -----
> > > > > From: "Roshan Weerasuriya" <roshan@opensource.lk>
> > > > > To: "Apache AXIS C Developers List" <axis-c-dev@ws.apache.org>
> > > > > 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<char,struct
> > > > > > > > > std::char_traits<char> > __thiscall
> > > > > > > > > std::num_get<char,class
> > > > > > > > > std::istreambuf_iterator<char,struct
> > > > > > > > > std::char_traits<char> > >::do_get(class
> > > > > > > > > std::istreambuf_iterator<char,struct
> > > > > > > > > std::char_traits<char> >,class
> > > > > > > > > std::istreambuf_iterator<char,struct
> > > > > > > > > std::char_traits<char> >,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<char,struct
> > > > > > > > > std::char_traits<char> > __thiscall
> > > > > > > > > std::num_get<char,class
> > > > > > > > > std::istreambuf_iterator<char,struct
> > > > > > > > > std::char_traits<char> > >::do_get(class
> > > > > > > > > std::istreambuf_iterator<char,struct
> > > > > > > > > std::char_traits<char> >,class
> > > > > > > > > std::istreambuf_iterator<char,struct
> > > > > > > > > std::char_traits<char> >,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
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ok. +1 for keeping attachments out of
1.5.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>sanjaya.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=HAWKINSJ@uk.ibm.com href="mailto:HAWKINSJ@uk.ibm.com">John
Hawkins</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=axis-c-dev@ws.apache.org
href="mailto:axis-c-dev@ws.apache.org">Apache AXIS C Developers List</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, January 31, 2005 3:33
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: AttachmentHelper breaks
Windows and AIX</DIV>
<DIV><BR></DIV><BR><FONT face=sans-serif size=2>Hi Folks,</FONT> <BR><BR><FONT
face=sans-serif size=2>AIX is broken and we do not have the resource to fix it
if attachments are in - there is no guaranteee that the issue that we see now
will be the last !</FONT> <BR><FONT face=sans-serif size=2>I would prefer (as
I keep repeating!) to keep Attachments out of this release please?</FONT>
<BR><BR><FONT face=sans-serif size=2>Overall, I also think this is a hack fix
(as I think others agree) and we should look for a better solution.</FONT>
<BR><BR><FONT face=sans-serif size=2>thankyou,</FONT> <BR><FONT
face=sans-serif size=2>John.</FONT> <BR><BR><FONT face=sans-serif size=2>John
Hawkins<BR><BR></FONT><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>Samisa Abeysinghe
<samisa.abeysinghe@gmail.com></B> </FONT>
<P><FONT face=sans-serif size=1>31/01/2005 07:57</FONT>
<TABLE border=1>
<TBODY>
<TR vAlign=top>
<TD bgColor=white>
<DIV align=center><FONT face=sans-serif size=1>Please respond
to<BR>"Apache AXIS C Developers
List"</FONT></DIV></TR></TBODY></TABLE><BR></P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR>
<TD>
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD vAlign=top><FONT face=sans-serif size=1>Apache AXIS C
Developers List <axis-c-dev@ws.apache.org></FONT>
<TR>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD vAlign=top>
<TR>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
<TD vAlign=top><FONT face=sans-serif size=1>Re: AttachmentHelper
breaks Windows and AIX</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT
size=2><TT>Well, I think the problems are with platforms other than Windows
and Linux.<BR><BR>AIX has been a major concern according to John.
<BR><BR>There is limited access to this platform, hence the question is,
would<BR>those who have access would have enough time and energy to test
this<BR>within the set timelines?<BR><BR>We cannot ignore the platform factor
as there could be planned<BR>deployments on those
platforms.<BR><BR>Thanks,<BR>Samisa...<BR><BR><BR>On 31 Jan 2005 12:14:27
+0600, Roshan Weerasuriya <roshan@opensource.lk> wrote:<BR>> hi
All,<BR>> <BR>> If the attachment support works on windows and linux,
and if there is a<BR>> sample as well, and if it is tested, then I would
like to see it with<BR>> 1.5. If we have a feature it is a good idea to
provide it to the<BR>> clients.<BR>> <BR>> +1 for supporting
Attachments with 1.5 release.<BR>> <BR>> Roshan<BR>> <BR>> On Mon,
2005-01-31 at 12:10, Rangika Mendis wrote:<BR>> > Hi
Samisa,<BR>> ><BR>> > If there are no issues supporting
ws-attachments for 1.5 then this can be<BR>> > shipped with 1.5.<BR>>
><BR>> > Regards,<BR>> > Rangika<BR>>
><BR>> ><BR>> ><BR>> > ----- Original Message
-----<BR>> > From: "Samisa Abeysinghe"
<samisa.abeysinghe@gmail.com><BR>> > To: "Apache AXIS C
Developers List" <axis-c-dev@ws.apache.org><BR>> > Sent:
Monday, January 31, 2005 11:49 AM<BR>> > Subject: Re:
AttachmentHelper breaks Windows and AIX<BR>> ><BR>> ><BR>> >
> Hi Rangika,<BR>> > > Please
help me get this right.<BR>> > > What you
are saying is that all the implementations are in CVS,<BR>> >
> but attachments would not ship with 1.5. Am I correct?<BR>> >
><BR>> > > Regards,<BR>> > >
Samisa...<BR>> > ><BR>> > ><BR>> >
> On Mon, 31 Jan 2005 11:14:26 +0600, Rangika Mendis<BR>> >
> <rangika@opensource.lk> wrote:<BR>> > >
><BR>> > > > Hi all,<BR>> > >
><BR>> > > > Ws-attachments are working on windows
& Linux. We tested with the<BR>> > latest<BR>> > >
> checkout & it worked.<BR>> > > > We have
commited all the stuff (code, samples etc) to the CVS. (But<BR>> >
we<BR>> > > > have just commented the places where it
invokes attachment related<BR>> > methods<BR>> > > >
in the CVS.)<BR>> > > ><BR>> > > >
Regards,<BR>> > > > Nithya &
Rangika<BR>> > > ><BR>> > > >
----- Original Message -----<BR>> > > > From:
"Rangika Mendis" <rangika@opensource.lk><BR>> > > >
To: "Apache AXIS C Developers List"
<axis-c-dev@ws.apache.org><BR>> > > > Sent:
Friday, January 28, 2005 5:25 PM<BR>> > > > Subject:
Re: AttachmentHelper breaks Windows and AIX<BR>> > >
><BR>> > > > > Hi Roshan,<BR>> >
> > ><BR>> > > > >
Thanx for the solution...... it works in windows.<BR>> > >
> ><BR>> > > > > So sorry for
the late reply.<BR>> > > > ><BR>> >
> > > Regards,<BR>> > > > >
Rangika<BR>> > > > > ----- Original
Message -----<BR>> > > > > From: "Roshan
Weerasuriya" <roshan@opensource.lk><BR>> > > >
> To: "Apache AXIS C Developers List"
<axis-c-dev@ws.apache.org><BR>> > > > >
Sent: Tuesday, January 25, 2005 3:07 PM<BR>> > > >
> Subject: Re: AttachmentHelper breaks Windows and AIX<BR>>
> > > ><BR>> > > >
><BR>> > > > > > hi
All,<BR>> > > > > ><BR>> >
> > > > The following hack will make the code work.
If you add this in<BR>> > the<BR>> > > > >
> AttachmentHelper.h then it builds fine.<BR>> > >
> > ><BR>> > > > >
> //-----add this code to AttachmentHelper.h-----<BR>> > >
> > > #ifdef strtoul<BR>> > > >
> > #undef strtoul<BR>> > > > >
> #endif<BR>> > > > > >
#define strtoul strtoul<BR>> > > > > >
//-----end add this code to AttachmentHelper.h-----<BR>> > >
> > ><BR>> > > > >
> But I doubt whether using this hack is OK simple because apache<BR>>
> > > doesn't<BR>> > > > >
> like this "strtoul" function. What we do is going against<BR>> >
apache.<BR>> > > > But<BR>> > > >
> > there is no other solution as I see when you look at
the<BR>> > following<BR>> > > > >
> summary.<BR>> > > > > ><BR>>
> > > > > Summary:<BR>> > >
> > > Rangika or Nithya is not using this "strtoul"
function at all<BR>> > in any<BR>> > > > of<BR>>
> > > > > the files including
AttachmentHelper.h. It is that when VC++ 6<BR>> > > >
buids,<BR>> > > > > > one of its files
which is "program files\microsoft visual<BR>> > > >
> > studio\vc98\include\xlocnum" is the which is using
this<BR>> > function, so<BR>> > > > it<BR>> >
> > > > is totaly out of our control.<BR>>
> > > > ><BR>> > > >
> > I tried to define strtol instead of strtoul but it
didn't<BR>> > compile in<BR>> > > > >
> windows/VC++<BR>> > > > > ><BR>>
> > > > > //-----add this code to
AttachmentHelper.h but doesn't<BR>> > build-----<BR>> >
> > > > #ifdef strtoul<BR>> > > >
> > #undef strtoul<BR>> > > > >
> #endif<BR>> > > > > >
#define strtoul strtol<BR>> > > > > >
//-----end add this code to AttachmentHelper.h-----<BR>> > >
> > ><BR>> > > > >
> Roshan<BR>> > > > > ><BR>> >
> > > ><BR>> > > >
> > On Tue, 2005-01-25 at 10:35, Roshan Weerasuriya
wrote:<BR>> > > > > > > hi
All,<BR>> > > > > > ><BR>> >
> > > > > I checked the same in Linux. The
linux apache version<BR>> > (apache2)<BR>> > > >
also<BR>> > > > > has<BR>> > >
> > > > the same entry in its httpd.h include file.
But in linux the<BR>> > > > module<BR>> > >
> > > > builds fine.<BR>> > > >
> > ><BR>> > > > >
> > I think when you build the "Axis C++ Apache2 module" in<BR>> >
windows,<BR>> > > > VC++<BR>> > > >
> 6<BR>> > > > > > > uses
the following file in the compilation process:<BR>> > > >
> > > "program files\microsoft visual
studio\vc98\include\xlocnum"<BR>> > > > >
> ><BR>> > > > > > > This file
has funcation calls to the "strtoul" function which<BR>> > >
> Apache<BR>> > > > > > > doesn't
like for some reason (as Apache says it is not a<BR>> > portable<BR>>
> > > > > > function)<BR>> >
> > > > ><BR>> > > >
> > > But probably in linux there are no function calls
to<BR>> > "strtoul" so<BR>> > > > it<BR>> >
> > > > > builds fine in linux.<BR>>
> > > > > ><BR>> > >
> > > > Any ideas abt solving this problem???<BR>>
> > > > > ><BR>> > >
> > > > Roshan<BR>> > > >
> > ><BR>> > > > >
> > On Tue, 2005-01-25 at 10:28, Roshan Weerasuriya wrote:<BR>> >
> > > > > > hi All,<BR>> >
> > > > > ><BR>> > > >
> > > > When I investigated this problem I found the
following. In<BR>> > the<BR>> > > > >
> > > apache2_0\httpd.h include file the following is there:<BR>>
> > > > > > ><BR>> >
> > > //-----from apache2_0\httpd.h ------<BR>> >
> > > > > > ..<BR>> > > >
> > > > ....<BR>> > > > >
> > > /** strtoul does not exist on sunos4. */<BR>> >
> > > > > > #ifdef strtoul<BR>> >
> > > > > > #undef strtoul<BR>> >
> > > > > > #endif<BR>> >
> > > > > > #define strtoul<BR>> >
> > >
strtoul_is_not_a_portable_function_use_strtol_instead<BR>> > >
> > > > > ...<BR>> > > >
> > > > ......<BR>> > > >
> > > > //-----end from apache2_0\httpd.h
------<BR>> > > > > > > ><BR>>
> > > > > > > This causes this
compile error in windows. I just commented<BR>> > > >
above<BR>> > > > > from<BR>> > >
> > > > > the httpd.h file and then the Axis C++
Apache2 module<BR>> > started to<BR>> > > >
> compile<BR>> > > > > > >
> fine. But this is not the soulution since we can't comment<BR>> >
> > Apache's<BR>> > > > > >
> > httpd.h file entries.<BR>> > > > >
> > ><BR>> > > > > >
> > Any idea???<BR>> > > > > >
> ><BR>> > > > > > > >
Roshan<BR>> > > > > > > ><BR>>
> > > > > > ><BR>> >
> > > > > > On Tue, 2005-01-25 at 10:07,
Rangika Mendis wrote:<BR>> > > > > >
> > > Hi John,<BR>> > >
> > > > > ><BR>> > > >
> > > > > When I tried
to compile the Apache2Transport with<BR>> > > > >
> > > > AttachmentHelper class
included I also got the<BR>> > linking<BR>> > > >
> errors<BR>> > > > > > >
> > that you mentioned. Then I renamed
strtoul with<BR>> > > > strtol in<BR>> > >
> > the<BR>> > > > > > >
> > xlocnum file. That solved the
compilation<BR>> > problems.<BR>> > > > >
> > > ><BR>> > > > >
> > > > We tested all the classes
related to<BR>> > ws-attachments in<BR>> > > >
> windows<BR>> > > > > > >
> > before committing and it worked.<BR>>
> > > > > > > ><BR>> >
> > > > > > >
Well I guess we'll have to test again.<BR>> > > >
> > > > ><BR>> > > > >
> > > > Regards,<BR>> >
> > > > > > >
Rangika<BR>> > > > > > > >
><BR>> > > > > > > >
><BR>> > > > > > > > >
----- Original Message -----<BR>> >
> > > > > > >
From: John Hawkins<BR>> > > >
> > > > >
To: axis-c-dev@ws.apache.org<BR>> > >
> > > > > >
Sent: Tuesday, January 25, 2005 2:55 AM<BR>> >
> > > > > > >
Subject: AttachmentHelper breaks
Windows<BR>> > and<BR>> > > > AIX<BR>> >
> > > > > > ><BR>> > > >
> > > > >
Hi Folks,<BR>> > > > >
> > > ><BR>> > > > > > >
> > Attachments
appear to have broken the<BR>> > builds<BR>> > > >
again<BR>> > > > > I'm<BR>> > >
> > > > > >
afraid. It broke on Windows and AIX. It<BR>> >
> > appears,<BR>> > > > >
after<BR>> > > > > > > > >
some investigation,
that AttachmentHelper<BR>> > is<BR>> > > >
the<BR>> > > > > > > > >
offending class. It appears
to compile<BR>> > fine on<BR>> > > > >
Linux<BR>> > > > > > > > >
but not on the other
platforms. The<BR>> > errors<BR>> > > > below<BR>>
> > > > are<BR>> > > > >
> > > >
what we see in the ANT (windows) build.<BR>> > > >
Perhaps<BR>> > > > > this<BR>> > >
> > > > > >
is an ANT build issue only? The issues on<BR>> >
AIX<BR>> > > > are<BR>> > > > >
> > > >
similar.<BR>> > > > > > > >
><BR>> > > > > > > > >
We've been struggling
to fix this and we<BR>> > > > really<BR>> >
> > > need a<BR>> > > > >
> > > >
stable build. So I'm sorry but the best<BR>> > that I<BR>> >
> > > could<BR>> > > > >
> > > >
do was remove the offending Objects from<BR>> > CVS<BR>> >
> > until<BR>> > > > > we<BR>>
> > > > > > > >
can discuss it on the mailing list.
If<BR>> > this is<BR>> > > > an<BR>> >
> > > ANT<BR>> > > > > >
> > > build
issue only when please could you<BR>> > explain<BR>> > >
> > what<BR>> > > > > > >
> > the scripts
need to include/exclude and<BR>> > we'll<BR>> > > >
be<BR>> > > > > happy<BR>> > >
> > > > > >
to fix it.<BR>> > > > >
> > > ><BR>> > > > >
> > > ><BR>> > > > > > >
> ><BR>> > > > > > > >
><BR>> > > > > > > > >
compileApache20Module:<BR>> > > > > >
> > >
[copy] Copying 102 files to<BR>> > > > >
> > > ><BR>> > > >
F:\build\nw00_PA\src\ws-axis\c\include\apache2_0<BR>> > > >
> > > > >
Suspicious library name starting with<BR>> >
"lib":<BR>> > > > > libapr<BR>> >
> > > > > > >
Suspicious library name starting with<BR>> >
"lib":<BR>> > > > > libhttpd<BR>> >
> > > > > > >
[cc] 3 total files to be
compiled.<BR>> > > > > > > > >
[cc] Apache2Transport.cpp<BR>> > > > > >
> > >
[cc]<BR>> > D:\msdev6\VC98\INCLUDE\xlocnum(155)<BR>>
> > > :<BR>> > > > > error<BR>>
> > > > > > > >
C2065:<BR>> > > >
> > > > ><BR>> > > > >
'strtoul_is_not_a_portable_function_use_strtol_instead' :<BR>> >
undeclared<BR>> > > > > identifier<BR>> >
> > > > > > >
[cc]<BR>> >
> > > D:\msdev6\VC98\INCLUDE\xlocnum(144)<BR>> >
> > > > > > >
: while compiling class-template
member<BR>> > > > function<BR>> > > >
> > > > >
'class<BR>> >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> > __thiscall<BR>> >
> > > > > > >
std::num_get<char,class<BR>> >
> > > > > > >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> >
>::do_get(class<BR>> > > > > > >
> >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> >,class<BR>> >
> > > > > > >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> >,class<BR>> >
std::ios_base<BR>> > > > &,int<BR>> > >
> > > > > >
&,bool &) const'<BR>> > > >
> > > > >
[cc] mod_axis2.cpp<BR>> >
> > > > > > >
[cc]<BR>> >
D:\msdev6\VC98\INCLUDE\xlocnum(155)<BR>> > > > :<BR>>
> > > > error<BR>> > > >
> > > > >
C2065:<BR>> > > > >
> > > ><BR>> > > > >
'strtoul_is_not_a_portable_function_use_strtol_instead' :<BR>> >
undeclared<BR>> > > > > identifier<BR>> >
> > > > > > >
[cc]<BR>> >
> > > D:\msdev6\VC98\INCLUDE\xlocnum(144)<BR>> >
> > > > > > >
: while compiling class-template
member<BR>> > > > function<BR>> > > >
> > > > >
'class<BR>> >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> > __thiscall<BR>> >
> > > > > > >
std::num_get<char,class<BR>> >
> > > > > > >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> >
>::do_get(class<BR>> > > > > > >
> >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> >,class<BR>> >
> > > > > > >
std::istreambuf_iterator<char,struct<BR>> > > >
> > > > >
std::char_traits<char> >,class<BR>> >
std::ios_base<BR>> > > > &,int<BR>> > >
> > > > > >
&,bool &) const'<BR>> > > >
> > > > ><BR>> > > > >
> > > >
The changes I've made are to remove<BR>> > > >
> AttachmentHelper<BR>> > > > >
> > > >
from being included in<BR>> > > > > >
> > ><BR>> > > > > > > >
> Modified:
c/src/server/apache2<BR>> > > > >
AttachmentHelper.h<BR>> > > > > > >
> >
Apache2Transport.cpp<BR>> > > > > > >
> >
Apache2Transport.h<BR>> > > > > >
> > ><BR>> > > > > > > >
> sorry for any
inconvenience.<BR>> > > > > > > >
> John.<BR>>
> > > > > > > ><BR>> >
> > > > > > >
John Hawkins<BR>> > > >
> > > > ><BR>> > > > >
> > ><BR>> > > > > >
> ><BR>> > > > > > ><BR>>
> > > > > ><BR>> > >
> > ><BR>> > > > >
><BR>> > > > > ><BR>> >
> > ><BR>> > > > ><BR>> >
> > ><BR>> > > ><BR>> >
> ><BR>> > ><BR>> > ><BR>>
><BR>> ><BR>> ><BR>>
<BR>><BR></TT></FONT><BR></BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic