You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by sanjaya singharage <sa...@opensource.lk> on 2004/11/30 11:50:00 UTC

Axis2Transport does not build on windows

--------------------Configuration: Axis2Transport - Win32 Debug--------------------
Compiling...
SecureChannel.cpp
d:\san\works\checkouts\head5\ws-axis\c\include\axis\axisexception.hpp(164) : warning C4275: non dll-interface class 'exception' used as base for dll-interface class 'axiscpp::AxisException'
        c:\program files\microsoft visual studio\vc98\include\exception(50) : see declaration of 'exception'
d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexception.h(51) : warning C4251: 'm_sMessage' : class 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' needs to have dll-interface to be used 
by clients of class 'AxisTransportException'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(83) : see previous definition of 'FD_SET'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(212) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(219) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(226) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(310) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(368) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(378) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(430) : warning C4005: 'SO_DONTLINGER' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(391) : see previous definition of 'SO_DONTLINGER'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(483) : warning C4005: 'AF_IPX' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(449) : see previous definition of 'AF_IPX'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(506) : warning C4005: 'AF_MAX' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(468) : see previous definition of 'AF_MAX'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(512) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(521) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(560) : error C2011: 'linger' : 'struct' type redefinition
c:\program files\microsoft visual studio\vc98\include\winsock2.h(573) : warning C4005: 'SOMAXCONN' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(533) : see previous definition of 'SOMAXCONN'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(598) : warning C4005: 'FD_READ' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(551) : see previous definition of 'FD_READ'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(601) : warning C4005: 'FD_WRITE' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(552) : see previous definition of 'FD_WRITE'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(604) : warning C4005: 'FD_OOB' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(553) : see previous definition of 'FD_OOB'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(607) : warning C4005: 'FD_ACCEPT' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(554) : see previous definition of 'FD_ACCEPT'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(610) : warning C4005: 'FD_CONNECT' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(555) : see previous definition of 'FD_CONNECT'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(613) : warning C4005: 'FD_CLOSE' : macro redefinition
        c:\program files\microsoft visual studio\vc98\include\winsock.h(556) : see previous definition of 'FD_CLOSE'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1427) : error C2375: 'accept' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(707) : see declaration of 'accept'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1448) : error C2375: 'bind' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(710) : see declaration of 'bind'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2375: 'closesocket' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(712) : see declaration of 'closesocket'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1486) : error C2375: 'connect' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(714) : see declaration of 'connect'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1507) : error C2375: 'ioctlsocket' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(716) : see declaration of 'ioctlsocket'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1528) : error C2375: 'getpeername' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(718) : see declaration of 'getpeername'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1549) : error C2375: 'getsockname' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(721) : see declaration of 'getsockname'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1572) : error C2375: 'getsockopt' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(724) : see declaration of 'getsockopt'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1593) : error C2375: 'htonl' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(727) : see declaration of 'htonl'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1610) : error C2375: 'htons' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(729) : see declaration of 'htons'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1627) : error C2375: 'inet_addr' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(731) : see declaration of 'inet_addr'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1644) : error C2375: 'inet_ntoa' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(733) : see declaration of 'inet_ntoa'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1662) : error C2375: 'listen' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(735) : see declaration of 'listen'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1680) : error C2375: 'ntohl' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(737) : see declaration of 'ntohl'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1697) : error C2375: 'ntohs' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(739) : see declaration of 'ntohs'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1717) : error C2375: 'recv' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(741) : see declaration of 'recv'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1742) : error C2375: 'recvfrom' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(743) : see declaration of 'recvfrom'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1768) : error C2375: 'select' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(746) : see declaration of 'select'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1792) : error C2375: 'send' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(749) : see declaration of 'send'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1817) : error C2375: 'sendto' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(751) : see declaration of 'sendto'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1843) : error C2375: 'setsockopt' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(754) : see declaration of 'setsockopt'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1865) : error C2375: 'shutdown' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(757) : see declaration of 'shutdown'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1885) : error C2375: 'socket' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(759) : see declaration of 'socket'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1908) : error C2375: 'gethostbyaddr' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(763) : see declaration of 'gethostbyaddr'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1927) : error C2375: 'gethostbyname' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(766) : see declaration of 'gethostbyname'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1945) : error C2375: 'gethostname' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(768) : see declaration of 'gethostname'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1964) : error C2375: 'getservbyport' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(770) : see declaration of 'getservbyport'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(1983) : error C2375: 'getservbyname' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(772) : see declaration of 'getservbyname'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2001) : error C2375: 'getprotobynumber' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(775) : see declaration of 'getprotobynumber'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2018) : error C2375: 'getprotobyname' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(777) : see declaration of 'getprotobyname'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2038) : error C2375: 'WSAStartup' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(781) : see declaration of 'WSAStartup'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2056) : error C2375: 'WSACleanup' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(783) : see declaration of 'WSACleanup'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2073) : error C2375: 'WSASetLastError' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(785) : see declaration of 'WSASetLastError'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2090) : error C2375: 'WSAGetLastError' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(787) : see declaration of 'WSAGetLastError'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2107) : error C2375: 'WSAIsBlocking' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(789) : see declaration of 'WSAIsBlocking'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2124) : error C2375: 'WSAUnhookBlockingHook' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(791) : see declaration of 'WSAUnhookBlockingHook'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2141) : error C2375: 'WSASetBlockingHook' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(793) : see declaration of 'WSASetBlockingHook'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2158) : error C2375: 'WSACancelBlockingCall' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(795) : see declaration of 'WSACancelBlockingCall'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2180) : error C2375: 'WSAAsyncGetServByName' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(797) : see declaration of 'WSAAsyncGetServByName'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2207) : error C2375: 'WSAAsyncGetServByPort' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(802) : see declaration of 'WSAAsyncGetServByPort'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2233) : error C2375: 'WSAAsyncGetProtoByName' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(806) : see declaration of 'WSAAsyncGetProtoByName'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2258) : error C2375: 'WSAAsyncGetProtoByNumber' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(810) : see declaration of 'WSAAsyncGetProtoByNumber'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2283) : error C2375: 'WSAAsyncGetHostByName' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(814) : see declaration of 'WSAAsyncGetHostByName'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2310) : error C2375: 'WSAAsyncGetHostByAddr' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(818) : see declaration of 'WSAAsyncGetHostByAddr'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2333) : error C2375: 'WSACancelAsyncRequest' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(822) : see declaration of 'WSACancelAsyncRequest'
c:\program files\microsoft visual studio\vc98\include\winsock2.h(2353) : error C2375: 'WSAAsyncSelect' : redefinition; different linkage
        c:\program files\microsoft visual studio\vc98\include\winsock.h(824) : see declaration of 'WSAAsyncSelect'
Error executing cl.exe.

AxisTransport2_D.dll - 58 error(s), 13 warning(s)

Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi Damitha,

On Tue, 30 Nov 2004 04:44:47 -0800 (PST), Samisa Abeysinghe wrote
>> Hi Damitha,
>> Can we move all the SSL specific stuff into ssl sub folder?
>I think I have already done so. Other solution is to completely creating a new
> ssl transport without making code redundant
 
We have SSLChannel class in src/tranpost/
This should be in src/transport/axis2/ssl
 
We have  SSLChannelFactory in src/transport/axis2
That should be in src/transport/axis2/ssl
 
Only SecureChannel should be part of non-SSL axis2 transport.
 
>> I got the feeling that there is some level of tight coupling 
>> here with the non-SSL stuff.
>I don't think so. Window building problem is due to some yet to unseen
>problem. Once it is solved 
 
Once the header file problem was solved on windows, We needed to add SSLChannelFactory to axis2tranpost project to get the stuff compiled. This is coupling SSL stuff with non SSL stuff.
Additonally, it was because of the coupling, that we got to know that there was a problem - So coupling was helpful in a way initially ;-)
 
Thanks,
Samisa...
 


Damitha Kumarage <da...@opensource.lk> wrote:
Hi Samisa,
On Tue, 30 Nov 2004 04:44:47 -0800 (PST), Samisa Abeysinghe wrote
> Hi Damitha,
> Can we move all the SSL specific stuff into ssl sub folder?
I think I have already done so. Other solution is to completely creating a new
ssl transport without making code redundant

> I got the feeling that there is some level of tight coupling 
> here with the non-SSL stuff.
I don't think so. Window building problem is due to some yet to unseen
problem. Once it is solved 

thanks 
damitha
(It is annoying that I cannot compile a 
> module because of something that I am not going to use)
> 
> Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> in an early mail. If so, does any one know how to override an 
> already included file so that we could override winsock.h with 
> winsock2.h (or does it sound silly :( ? ) In other words, is there 
> any way to enfoce the Win platform header to include winsock2.h all 
> the time?
> 
> Thanks,
> Samisa...
> 
> Damitha Kumarage wrote:
> Hi Samisa,
> The only different with the older ones is that now it does not 
> contain ssl speicfic header files. Using a SSLChannelFactory it 
> dyanmically load the ssl channel library and call its methods. The 
> problem causing could be from including PlatformAutoSense.hpp in
SSLChannelFactory.hpp
> 
> damitha
> 
> On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > > Was the vc project for Axis2Transport changed to include the new files? If
> > > not what are the files that need to be included in this project?
> > 
> > I have no idea on this. I think the files have not been added.
> > 
> > Just to let you know:
> > To help find a solution, I copied older versions of 
> > SecureChannel.cpp and SecureChannel.h into the folder and built the 
> > project and the build was successful.
> > 
> > I am not sure why the latest SecureChannel.cpp and SecureChannel.h 
> > are causing problems.
> > 
> > Samisa...
> > 
> > sanjaya singharage wrote:
> > Was the vc project for Axis2Transport changed to include the new 
> > files? If not what are the files that need to be included in this project?
> > 
> > sanjaya.
> > ----- Original Message -----
> > From: "Samisa Abeysinghe" 
> > To: "Apache AXIS C Developers List" 
> > Sent: Tuesday, November 30, 2004 5:32 PM
> > Subject: Re: Axis2Transport does not build on windows
> > 
> > > Yes; AxisSocketUtils is not used anywhere.
> > >
> > > Looking at the email list, if I say changes to SecureChannel has started
> > causing problems, am I
> > > correct? If so I could revert back and try.
> > >
> > > Thanks,
> > > Samisa...
> > >
> > > --- sanjaya singharage wrote:
> > >
> > > > winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> > > > used anywhere.
> > > >
> > > > sanjaya.
> > > >
> > > > ----- Original Message -----
> > > > From: "Samisa Abeysinghe" 
> > > > To: "Apache AXIS C Developers List" 
> > > > Sent: Tuesday, November 30, 2004 5:02 PM
> > > > Subject: Re: Axis2Transport does not build on windows
> > > >
> > > >
> > > > > None of the source files include winsock.h but winsock2.h.
> > > > > However, windows.h included in
> > > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > > > > compiler run into confusion.
> > > > > I still could not find a solution.
> > > > >
> > > > > Waht are we doing wrong here? I think before using platform headers it
> > > > worked. I am not sure if
> > > > > this problem came to life with platform headers.
> > > > >
> > > > > Samisa...
> > > > >
> > > > > --- sanjaya singharage wrote:
> > > > >
> > > > > > --------------------Configuration: Axis2Transport - Win32
> > > > Debug--------------------
> > > > > > Compiling...
> > > > > > SecureChannel.cpp
> > > > > >
> > > >
> > 
> > d:\san\works\checkouts\head5\ws-
> > axis\c\include\axis\axisexception.hpp(164) :
> > > > warning C4275: non
> > > > > > dll-interface class 'exception' used as base for dll-interface class
> > > > 'axiscpp::AxisException'
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\exception(50) : see declaration of
> > > > > > 'exception'
> > > > > >
> > > >
> > 
> > d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > > > ption.h(51) :
> > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> std::char_traits,class
> > > > > > std::allocator >' needs to have dll-interface to be used
> > > > > > by clients of class 'AxisTransportException'
> > > > > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99)
> > :
> > > > error C2011: 'fd_set' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(134) :
> > > > warning C4005: 'FD_SET'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(83) : see previous
> > > > > > definition of 'FD_SET'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(143) :
> > > > error C2011: 'timeval' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(199) :
> > > > error C2011: 'hostent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(212) :
> > > > error C2011: 'netent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(219) :
> > > > error C2011: 'servent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(226) :
> > > > error C2011: 'protoent'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(310) :
> > > > error C2011: 'in_addr' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(368) :
> > > > error C2011:
> > > > > > 'sockaddr_in' : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(378) :
> > > > error C2011: 'WSAData' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(430) :
> > > > warning C4005:
> > > > > > 'SO_DONTLINGER' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(391) : see previous
> > > > > > definition of 'SO_DONTLINGER'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(483) :
> > > > warning C4005: 'AF_IPX'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(449) : see previous
> > > > > > definition of 'AF_IPX'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(506) :
> > > > warning C4005: 'AF_MAX'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(468) : see previous
> > > > > > definition of 'AF_MAX'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(512) :
> > > > error C2011: 'sockaddr'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(521) :
> > > > error C2011: 'sockproto'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(560) :
> > > > error C2011: 'linger' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(573) :
> > > > warning C4005:
> > > > > > 'SOMAXCONN' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(533) : see previous
> > > > > > definition of 'SOMAXCONN'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(598) :
> > > > warning C4005: 'FD_READ'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(551) : see previous
> > > > > > definition of 'FD_READ'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(601) :
> > > > warning C4005:
> > > > > > 'FD_WRITE' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(552) : see previous
> > > > > > definition of 'FD_WRITE'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(604) :
> > > > warning C4005: 'FD_OOB'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(553) : see previous
> > > > > > definition of 'FD_OOB'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(607) :
> > > > warning C4005:
> > > > > > 'FD_ACCEPT' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(554) : see previous
> > > > > > definition of 'FD_ACCEPT'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(610) :
> > > > warning C4005:
> > > > > > 'FD_CONNECT' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(555) : see previous
> > > > > > definition of 'FD_CONNECT'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(613) :
> > > > warning C4005:
> > > > > > 'FD_CLOSE' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(556) : see previous
> > > > > > definition of 'FD_CLOSE'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1427) :
> > > > error C2375: 'accept' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(707) : see declaration
> > > > > > of 'accept'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1448) :
> > > > error C2375: 'bind' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(710) : see declaration
> > > > > > of 'bind'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1467) :
> > > > error C2375:
> > > > > > 'closesocket' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(712) : see declaration
> > > > > > of 'closesocket'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1486) :
> > > > error C2375: 'connect'
> > > > > > : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(714) : see declaration
> > > > > > of 'connect'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1507) :
> > > > error C2375:
> > > > > > 'ioctlsocket' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(716) : see declaration
> > > > > > of 'ioctlsocket'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1528) :
> > > > error C2375:
> > > > > > 'getpeername' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(718) : see declaration
> > > > > > of 'getpeername'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1549) :
> > > > error C2375:
> > > > > > 'getsockname' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(721) : see declaration
> > > > > > of 'getsockname'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1572) :
> > > > error C2375:
> > > > > > 'getsockopt' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(724) : see declaration
> > > > > > of 'getsockopt'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1593) :
> > > > error C2375: 'htonl' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(727) : see declaration
> > > > > > of 'htonl'
> > > >
> > > === message truncated ===
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The all-new My Yahoo! - What will yours do?
> > > http://my.yahoo.com
> > >
> > 
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > Meet the all-new My Yahoo! � Try it today!
> 
> --
> Damitha Kumarage
> hSenid Software International (PVT) Ltd
> damitha@hSenid.lk
> 
> Lanka Software Foundation (http://www.opensource.lk)
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Meet the all-new My Yahoo! � Try it today!


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


		
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! � Try it today! 

Re: Axis2Transport does not build on windows

Posted by Damitha Kumarage <da...@opensource.lk>.
Hi Samisa,
On Tue, 30 Nov 2004 04:44:47 -0800 (PST), Samisa Abeysinghe wrote
> Hi Damitha,
>     Can we move all the SSL specific stuff into ssl sub folder?
I think I have already done so. Other solution is to completely creating a new
ssl transport without making code redundant

>     I got the feeling that there is some level of tight coupling 
> here with the non-SSL stuff.
I don't think so. Window building problem is due to some yet to unseen
problem. Once it is solved 

thanks 
damitha
 (It is annoying that I cannot compile a 
> module because of something that I am not going to use)
> 
>     Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> in an early mail. If so, does any one know how to override an 
> already included file so that we could override winsock.h with 
> winsock2.h (or does it sound silly :( ?  ) In other words, is there 
> any way to enfoce the Win platform header to include winsock2.h all 
> the time?
> 
> Thanks,
> Samisa...
> 
> Damitha Kumarage <da...@opensource.lk> wrote:
> Hi Samisa,
> The only different with the older ones is that now it does not 
> contain ssl speicfic header files. Using a SSLChannelFactory it 
> dyanmically load the ssl channel library and call its methods. The 
> problem causing could be from including PlatformAutoSense.hpp in
SSLChannelFactory.hpp
> 
> damitha
> 
> On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > > Was the vc project for Axis2Transport changed to include the new files? If
> > > not what are the files that need to be included in this project?
> > 
> > I have no idea on this. I think the files have not been added.
> > 
> > Just to let you know:
> > To help find a solution, I copied older versions of 
> > SecureChannel.cpp and SecureChannel.h into the folder and built the 
> > project and the build was successful.
> > 
> > I am not sure why the latest SecureChannel.cpp and SecureChannel.h 
> > are causing problems.
> > 
> > Samisa...
> > 
> > sanjaya singharage wrote:
> > Was the vc project for Axis2Transport changed to include the new 
> > files? If not what are the files that need to be included in this project?
> > 
> > sanjaya.
> > ----- Original Message -----
> > From: "Samisa Abeysinghe" 
> > To: "Apache AXIS C Developers List" 
> > Sent: Tuesday, November 30, 2004 5:32 PM
> > Subject: Re: Axis2Transport does not build on windows
> > 
> > > Yes; AxisSocketUtils is not used anywhere.
> > >
> > > Looking at the email list, if I say changes to SecureChannel has started
> > causing problems, am I
> > > correct? If so I could revert back and try.
> > >
> > > Thanks,
> > > Samisa...
> > >
> > > --- sanjaya singharage wrote:
> > >
> > > > winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> > > > used anywhere.
> > > >
> > > > sanjaya.
> > > >
> > > > ----- Original Message -----
> > > > From: "Samisa Abeysinghe" 
> > > > To: "Apache AXIS C Developers List" 
> > > > Sent: Tuesday, November 30, 2004 5:02 PM
> > > > Subject: Re: Axis2Transport does not build on windows
> > > >
> > > >
> > > > > None of the source files include winsock.h but winsock2.h.
> > > > > However, windows.h included in
> > > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > > > > compiler run into confusion.
> > > > > I still could not find a solution.
> > > > >
> > > > > Waht are we doing wrong here? I think before using platform headers it
> > > > worked. I am not sure if
> > > > > this problem came to life with platform headers.
> > > > >
> > > > > Samisa...
> > > > >
> > > > > --- sanjaya singharage wrote:
> > > > >
> > > > > > --------------------Configuration: Axis2Transport - Win32
> > > > Debug--------------------
> > > > > > Compiling...
> > > > > > SecureChannel.cpp
> > > > > >
> > > >
> > 
> > d:\san\works\checkouts\head5\ws-
> > axis\c\include\axis\axisexception.hpp(164) :
> > > > warning C4275: non
> > > > > > dll-interface class 'exception' used as base for dll-interface class
> > > > 'axiscpp::AxisException'
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\exception(50) : see declaration of
> > > > > > 'exception'
> > > > > >
> > > >
> > 
> > d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > > > ption.h(51) :
> > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> std::char_traits,class
> > > > > > std::allocator >' needs to have dll-interface to be used
> > > > > > by clients of class 'AxisTransportException'
> > > > > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99)
> > :
> > > > error C2011: 'fd_set' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(134) :
> > > > warning C4005: 'FD_SET'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(83) : see previous
> > > > > > definition of 'FD_SET'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(143) :
> > > > error C2011: 'timeval' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(199) :
> > > > error C2011: 'hostent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(212) :
> > > > error C2011: 'netent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(219) :
> > > > error C2011: 'servent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(226) :
> > > > error C2011: 'protoent'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(310) :
> > > > error C2011: 'in_addr' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(368) :
> > > > error C2011:
> > > > > > 'sockaddr_in' : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(378) :
> > > > error C2011: 'WSAData' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(430) :
> > > > warning C4005:
> > > > > > 'SO_DONTLINGER' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(391) : see previous
> > > > > > definition of 'SO_DONTLINGER'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(483) :
> > > > warning C4005: 'AF_IPX'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(449) : see previous
> > > > > > definition of 'AF_IPX'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(506) :
> > > > warning C4005: 'AF_MAX'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(468) : see previous
> > > > > > definition of 'AF_MAX'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(512) :
> > > > error C2011: 'sockaddr'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(521) :
> > > > error C2011: 'sockproto'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(560) :
> > > > error C2011: 'linger' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(573) :
> > > > warning C4005:
> > > > > > 'SOMAXCONN' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(533) : see previous
> > > > > > definition of 'SOMAXCONN'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(598) :
> > > > warning C4005: 'FD_READ'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(551) : see previous
> > > > > > definition of 'FD_READ'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(601) :
> > > > warning C4005:
> > > > > > 'FD_WRITE' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(552) : see previous
> > > > > > definition of 'FD_WRITE'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(604) :
> > > > warning C4005: 'FD_OOB'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(553) : see previous
> > > > > > definition of 'FD_OOB'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(607) :
> > > > warning C4005:
> > > > > > 'FD_ACCEPT' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(554) : see previous
> > > > > > definition of 'FD_ACCEPT'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(610) :
> > > > warning C4005:
> > > > > > 'FD_CONNECT' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(555) : see previous
> > > > > > definition of 'FD_CONNECT'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(613) :
> > > > warning C4005:
> > > > > > 'FD_CLOSE' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(556) : see previous
> > > > > > definition of 'FD_CLOSE'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1427) :
> > > > error C2375: 'accept' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(707) : see declaration
> > > > > > of 'accept'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1448) :
> > > > error C2375: 'bind' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(710) : see declaration
> > > > > > of 'bind'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1467) :
> > > > error C2375:
> > > > > > 'closesocket' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(712) : see declaration
> > > > > > of 'closesocket'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1486) :
> > > > error C2375: 'connect'
> > > > > > : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(714) : see declaration
> > > > > > of 'connect'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1507) :
> > > > error C2375:
> > > > > > 'ioctlsocket' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(716) : see declaration
> > > > > > of 'ioctlsocket'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1528) :
> > > > error C2375:
> > > > > > 'getpeername' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(718) : see declaration
> > > > > > of 'getpeername'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1549) :
> > > > error C2375:
> > > > > > 'getsockname' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(721) : see declaration
> > > > > > of 'getsockname'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1572) :
> > > > error C2375:
> > > > > > 'getsockopt' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(724) : see declaration
> > > > > > of 'getsockopt'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1593) :
> > > > error C2375: 'htonl' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(727) : see declaration
> > > > > > of 'htonl'
> > > >
> > > === message truncated ===
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The all-new My Yahoo! - What will yours do?
> > > http://my.yahoo.com
> > >
> > 
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > Meet the all-new My Yahoo! – Try it today!
> 
> --
> Damitha Kumarage
> hSenid Software International (PVT) Ltd
> damitha@hSenid.lk
> 
> Lanka Software Foundation (http://www.opensource.lk)
> 
> 		
> ---------------------------------
> Do you Yahoo!?
>  Meet the all-new My Yahoo! – Try it today!


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


Codefrozen on HEAD! (tag is - release1-4-alpha-cand1)

Posted by sanjaya singharage <sa...@opensource.lk>.
I have tagged the HEAD with "release1-4-alpha-cand1" and please note that codefreeze is in effect. 
No new features will be allowed on HEAD and only bugfixes for the 1.4 release are expected.


(As per earlier practice we will not branch with this tag, but branch off at the final release to maintain a bugfixes branch)

sanjaya.

Re: Axis2Transport does not build on windows

Posted by sanjaya singharage <sa...@opensource.lk>.
Yes, it seems a better solution. Since this change also makes it work and runs I will make this change before codefreeze.

sanjaya.
  ----- Original Message ----- 
  From: Samisa Abeysinghe 
  To: Apache AXIS C Developers List 
  Sent: Wednesday, December 01, 2004 1:18 PM
  Subject: Re: Axis2Transport does not build on windows


  I had a look at this lat night and I think, as the problem is with inclusion of both winsock.h and winsock2,h, the best is to eliminate the inclusion of winsock.h as all the sources related to channel is using winsock2.h.

  This can be done by having 
  #define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */

  line before #include <windows.h> in PlatformSpecificWindows.hpp.

  I think it is better than using _WIN32_WINNT, because that will have other possible side effects.

  Thanks,
  Samisa...

  Steve Hardy <st...@connectux.com> wrote:
    I think the main problem is that _WIN32_WINNT is not defined when
    is included in PlatformAutoSense. This makes windows.h
    fallback to winsock.h instead of winsock2.h

    adding #define _WIN32_WINNT 0x0400 before include fixes most
    compile errors, although I still get some link errors

    On Tue, 30 Nov 2004, Damitha Kumarage wrote:

    > Hi John,
    > On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
    > > +1 loose coupling for compile time pls.
    > I don't think that there is such comile time tight coupling. Once the existing
    > window problem solved this should be ok
    > 
    > > 
    > > IBM has its own implementation of ssl so we don't want to confuse 
    > > the two
    > > (I can imagine some other software shops might also want to use 
    > > their own impl.)
    > I think SSLChannel.hpp is for that. I have given just one implementation for
    > that. Others could give an different impl. If this interface is not flexible
    > enough suggestions are accepted
    > 
    > thanks
    > damitha
    > > 
    > > John Hawkins
    > > 
    > > Samisa Abeysinghe 
    > > > > e@yahoo.com> 
    > > To Apache AXIS 
    > > C Developers List 30/11/2004 12:44 > > c-dev@ws.apache.org> 
    > > cc
    > > 
    > > Please respond to 
    > > Subject "Apache AXIS C Re: Axis2Transport 
    > > does not build Developers List" on windows
    > > 
    > > Hi Damitha,
    > > Can we move all the SSL specific stuff into ssl sub folder?
    > > I got the feeling that there is some level of tight coupling 
    > > here with the non-SSL stuff. (It is annoying that I cannot compile a 
    > > module because of something that I am not going to use)
    > > 
    > > Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
    > > in an early mail. If so, does any one know how to override an 
    > > already included file so that we could override winsock.h with 
    > > winsock2.h (or does it sound silly :( ? ) In other words, is there 
    > > any way to enfoce the Win platform header to include winsock2.h all 
    > > the time?
    > > 
    > > Thanks,
    > > Samisa...
    > > 
    > > Damitha Kumarage wrote:
    > > Hi Samisa,
    > > The only different with the older ones is that now it does not 
    > > contain ssl speicfic header files. Using a SSLChannelFactory it 
    > > dyanmically load the ssl channel library and call its methods. The 
    > > problem causing could be from including PlatformAutoSense.hpp in
    > SSLChannelFactory.hpp
    > > 
    > > damitha
    > > 
    > > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
    > > > > Was the vc project for Axis2Transport changed to include the new
    > > files? If
    > > > > not what are the files that need to be included in this project?
    > > >
    > > > I have no idea on this. I think the files have not been added.
    > > >
    > > > Just to let you know:
    > > > To help find a solution, I copied older versions of
    > > > SecureChannel.cpp and SecureChannel.h into the folder and built 
    > > the > project and the build was successful. > > I am n! ot sure why 
    > > the latest SecureChannel.cpp and SecureChannel.h > are causing problems.
    > > >
    > > > Samisa...
    > > >
    > > > sanjaya singharage wrote:
    > > > Was the vc project for Axis2Transport changed to include the new
    > > > files? If not what are the files that need to be included in this
    > > project?
    > > >
    > > > sanjaya.
    > > > ----- Original Message -----
    > > > From: "Samisa Abeysinghe"
    > > > To: "Apache AXIS C Developers List"
    > > > Sent: Tuesday, November 30, 2004 5:32 PM
    > > > Subject: Re: Axis2Transport does not build on windows
    > > >
    > > > > Yes; AxisSocketUtils is not used anywhere.
    > > > >
    > > > > Looking at the email list, if I say changes to SecureChannel has
    > > started
    > > > causing problems, am I
    > > > > correct? If so I could revert back and try.
    > > > >
    > > > > Thanks,
    > > > > Samisa...
    > > > >
    > > > > --- sanjaya singharage wrote:
    > > > >
    > > > > > win! sock.h is included in xisSocketUtils.cpp, but this 
    > > doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > > 
    > > > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > > 
    > > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November 
    > > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on 
    > > windows > > > > > > > > > > None of the source files include 
    > > winsock.h but winsock2.h. > > > > However, windows.h included in > > 
    > > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make 
    > > the > > > > compiler run into confusion. > > > > I still could not 
    > > find a solution. > > > > > > > > Waht are we doing wrong here? I 
    > > think before using platform headers it > > > worked. I am not sure 
    > > if > > > > thi! s problem came to life with platform headers. > > > 
    > > > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: > 
    > > > > > > > > > > --------------------Configuration: Axis2Transport - Win32
    > > > > > Debug--------------------
    > > > > > > > Compiling...
    > > > > > > > SecureChannel.cpp
    > > > > > > >
    > > > > >
    > > >
    > > > d:\san\works\checkouts\head5\ws-
    > > > axis\c\include\axis\axisexception.hpp(164) :
    > > > > > warning C4275: non
    > > > > > > > dll-interface class 'exception' used as base for dll-interface
    > > class
    > > > > > 'axiscpp::AxisException'
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\exception(50) : see declaration of
    > > > > > > > 'exception'
    > > > > > > >
    > > > > >
    > > >
    > > >
    > > 
    > > d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
    > > 
    > > > > > ption.h(51) :
    > > > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
    > > std::char_traits,class
    > > > > > > > std::allocator >' needs to have dll-interface to be used
    > > > > > > > by clients of class 'AxisTransportException'
    > > > > > > > c:\program files\microsoft visual
    > > studio\vc98\include\winsock2.h(99)
    > > > :
    > > > > > error C2011: 'fd_set' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(134) :
    > > > > > warning C4005: 'FD_SET'
    > > > > > > > : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(83) : see previous
    > > > > > > > definition of 'FD_SET'
    > > > > >! > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(143) :
    > > > > > error C2011: 'timeval' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(199) :
    > > > > > error C2011: 'hostent' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(212) :
    > > > > > error C2011: 'netent' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(219) :
    > > > > > error C2011: 'servent' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(226) :
    > > > > > error C2011: 'protoent'
    > > > > > > > : 'struct'! type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(310) :
    > > > > > error C2011: 'in_addr' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(368) :
    > > > > > error C2011:
    > > > > > > > 'sockaddr_in' : 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(378) :
    > > > > > error C2011: 'WSAData' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(430) :
    > > > > > warning C4005:
    > > > > > > > 'SO_DONTLINGER' : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(391) : see previous
    > > > > >! > > definition of 'SO_DONTLINGER'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(483) :
    > > > > > warning C4005: 'AF_IPX'
    > > > > > > > : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(449) : see previous
    > > > > > > > definition of 'AF_IPX'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(506) :
    > > > > > warning C4005: 'AF_MAX'
    > > > > > > > : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(468) : see previous
    > > > > > > > definition of 'AF_MAX'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(512) :
    > > > > > error C2011: 'sockaddr'
    > > > > > > > : 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(521) :
    > > > > > error C2011: 'sockproto'
    > > > > > > > : 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(560) :
    > > > > > error C2011: 'linger' :
    > > > > > > > 'struct' type redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(573) :
    > > > > > warning C4005:
    > > > > > > > 'SOMAXCONN' : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(533) : see previous
    > > > > > > > definition of 'SOMAXCONN'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(598) :
    > > > > > warning C4005: 'FD_READ'
    > > > > > > &g! t; : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(551) : see previous
    > > > > > > > definition of 'FD_READ'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(601) :
    > > > > > warning C4005:
    > > > > > > > 'FD_WRITE' : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(552) : see previous
    > > > > > > > definition of 'FD_WRITE'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(604) :
    > > > > > warning C4005: 'FD_OOB'
    > > > > > > > : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(553) : see previous
    > > > > > > > definition of 'FD_OOB'
    > > > > > > ! > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(607) :
    > > > > > warning C4005:
    > > > > > > > 'FD_ACCEPT' : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(554) : see previous
    > > > > > > > definition of 'FD_ACCEPT'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(610) :
    > > > > > warning C4005:
    > > > > > > > 'FD_CONNECT' : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(555) : see previous
    > > > > > > > definition of 'FD_CONNECT'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(613) :
    > > > > > warning C4005:
    > > > > > > > 'FD_CLOSE' : macro redefinition
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(556) : see previous
    > > > > > > > definition of 'FD_CLOSE'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1427) :
    > > > > > error C2375: 'accept' :
    > > > > > > > redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(707) : see declaration
    > > > > > > > of 'accept'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1448) :
    > > > > > error C2375: 'bind' :
    > > > > > > > redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(710) : see declaration
    > > > > > > > of 'bind'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1467) :
    > > > > > error C2375:
    > > > > > > > 'closesocket' : redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(712) : see declaration
    > > > > > > > of 'closesocket'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1486) :
    > > > > > error C2375: 'connect'
    > > > > > > > : redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(714) : see declaration
    > > > > > > > of 'connect'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1507) :
    > > > > > error C2375:
    > > > > > > > 'ioctlsocket' : redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual> > >
    > > studio\vc98\include\winsock.h(716) : see declaration
    > > > > > > > of 'ioctlsocket'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1528) :
    > > > > > error C2375:
    > > > > > > > 'getpeername' : redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(718) : see declaration
    > > > > > > > of 'getpeername'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1549) :
    > > > > > error C2375:
    > > > > > > > 'getsockname' : redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(721) : see declaration
    > > > > > > > of 'getsockname'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1572) :
    > > > > > error C2375:
    > > > > > > > 'getsockopt' : redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(724) : see declaration
    > > > > > > > of 'getsockopt'
    > > > > > > > c:\program files\microsoft visual
    > > > studio\vc98\include\winsock2.h(1593) :
    > > > > > error C2375: 'htonl' :
    > > > > > > > redefinition; different linkage
    > > > > > > > c:\program files\microsoft visual
    > > > > > studio\vc98\include\winsock.h(727) : see declaration
    > > > > > > > of 'htonl'
    > > > > >
    > > > > === message truncated ===
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > __________________________________
    > > > > Do you Yahoo!?
    > > > > The all-new My Yahoo! - What will yours do?
    > > > > http://my.yahoo.com
    > > > >
    > > >
    > > >
    > > > ---------------------------------
    > > > Do you Yahoo!?
    > [UTF-8?]> > Meet the all-new My Yahoo! â?" Try it today!
    > > 
    > > --
    > > Damitha Kumarage
    > > hSenid Software International (PVT) Ltd
    > > damitha@hSenid.lk
    > > 
    > > Lanka Software Foundation (http://www.opensource.lk)
    > > 
    > > Do you Yahoo!?
    > [UTF-8?]> Meet the all-new My Yahoo! â?" Try it today!
    > 
    > 
    > --
    > Damitha Kumarage
    > hSenid Software International (PVT) Ltd
    > damitha@hSenid.lk
    > 
    > Lanka Software Foundation (http://www.opensource.lk)
    > 
    > 




------------------------------------------------------------------------------
  Do you Yahoo!?
  Meet the all-new My Yahoo! - Try it today! 

Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
I had a look at this lat night and I think, as the problem is with inclusion of both winsock.h and winsock2,h, the best is to eliminate the inclusion of winsock.h as all the sources related to channel is using winsock2.h.
 
This can be done by having 

#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
line before #include <windows.h> in PlatformSpecificWindows.hpp.
 
I think it is better than using _WIN32_WINNT, because that will have other possible side effects.
 
Thanks,
Samisa...

Steve Hardy <st...@connectux.com> wrote:
I think the main problem is that _WIN32_WINNT is not defined when
is included in PlatformAutoSense. This makes windows.h
fallback to winsock.h instead of winsock2.h

adding #define _WIN32_WINNT 0x0400 before include fixes most
compile errors, although I still get some link errors

On Tue, 30 Nov 2004, Damitha Kumarage wrote:

> Hi John,
> On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> > +1 loose coupling for compile time pls.
> I don't think that there is such comile time tight coupling. Once the existing
> window problem solved this should be ok
> 
> > 
> > IBM has its own implementation of ssl so we don't want to confuse 
> > the two
> > (I can imagine some other software shops might also want to use 
> > their own impl.)
> I think SSLChannel.hpp is for that. I have given just one implementation for
> that. Others could give an different impl. If this interface is not flexible
> enough suggestions are accepted
> 
> thanks
> damitha
> > 
> > John Hawkins
> > 
> > Samisa Abeysinghe 
> > > > e@yahoo.com> 
> > To Apache AXIS 
> > C Developers List 30/11/2004 12:44 > > c-dev@ws.apache.org> 
> > cc
> > 
> > Please respond to 
> > Subject "Apache AXIS C Re: Axis2Transport 
> > does not build Developers List" on windows
> > 
> > Hi Damitha,
> > Can we move all the SSL specific stuff into ssl sub folder?
> > I got the feeling that there is some level of tight coupling 
> > here with the non-SSL stuff. (It is annoying that I cannot compile a 
> > module because of something that I am not going to use)
> > 
> > Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> > in an early mail. If so, does any one know how to override an 
> > already included file so that we could override winsock.h with 
> > winsock2.h (or does it sound silly :( ? ) In other words, is there 
> > any way to enfoce the Win platform header to include winsock2.h all 
> > the time?
> > 
> > Thanks,
> > Samisa...
> > 
> > Damitha Kumarage wrote:
> > Hi Samisa,
> > The only different with the older ones is that now it does not 
> > contain ssl speicfic header files. Using a SSLChannelFactory it 
> > dyanmically load the ssl channel library and call its methods. The 
> > problem causing could be from including PlatformAutoSense.hpp in
> SSLChannelFactory.hpp
> > 
> > damitha
> > 
> > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > > > Was the vc project for Axis2Transport changed to include the new
> > files? If
> > > > not what are the files that need to be included in this project?
> > >
> > > I have no idea on this. I think the files have not been added.
> > >
> > > Just to let you know:
> > > To help find a solution, I copied older versions of
> > > SecureChannel.cpp and SecureChannel.h into the folder and built 
> > the > project and the build was successful. > > I am n! ot sure why 
> > the latest SecureChannel.cpp and SecureChannel.h > are causing problems.
> > >
> > > Samisa...
> > >
> > > sanjaya singharage wrote:
> > > Was the vc project for Axis2Transport changed to include the new
> > > files? If not what are the files that need to be included in this
> > project?
> > >
> > > sanjaya.
> > > ----- Original Message -----
> > > From: "Samisa Abeysinghe"
> > > To: "Apache AXIS C Developers List"
> > > Sent: Tuesday, November 30, 2004 5:32 PM
> > > Subject: Re: Axis2Transport does not build on windows
> > >
> > > > Yes; AxisSocketUtils is not used anywhere.
> > > >
> > > > Looking at the email list, if I say changes to SecureChannel has
> > started
> > > causing problems, am I
> > > > correct? If so I could revert back and try.
> > > >
> > > > Thanks,
> > > > Samisa...
> > > >
> > > > --- sanjaya singharage wrote:
> > > >
> > > > > win! sock.h is included in xisSocketUtils.cpp, but this 
> > doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > > 
> > > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > > 
> > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November 
> > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on 
> > windows > > > > > > > > > > None of the source files include 
> > winsock.h but winsock2.h. > > > > However, windows.h included in > > 
> > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make 
> > the > > > > compiler run into confusion. > > > > I still could not 
> > find a solution. > > > > > > > > Waht are we doing wrong here? I 
> > think before using platform headers it > > > worked. I am not sure 
> > if > > > > thi! s problem came to life with platform headers. > > > 
> > > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: > 
> > > > > > > > > > --------------------Configuration: Axis2Transport - Win32
> > > > > Debug--------------------
> > > > > > > Compiling...
> > > > > > > SecureChannel.cpp
> > > > > > >
> > > > >
> > >
> > > d:\san\works\checkouts\head5\ws-
> > > axis\c\include\axis\axisexception.hpp(164) :
> > > > > warning C4275: non
> > > > > > > dll-interface class 'exception' used as base for dll-interface
> > class
> > > > > 'axiscpp::AxisException'
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\exception(50) : see declaration of
> > > > > > > 'exception'
> > > > > > >
> > > > >
> > >
> > >
> > 
> > d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > 
> > > > > ption.h(51) :
> > > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> > std::char_traits,class
> > > > > > > std::allocator >' needs to have dll-interface to be used
> > > > > > > by clients of class 'AxisTransportException'
> > > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(99)
> > > :
> > > > > error C2011: 'fd_set' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(134) :
> > > > > warning C4005: 'FD_SET'
> > > > > > > : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(83) : see previous
> > > > > > > definition of 'FD_SET'
> > > > >! > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(143) :
> > > > > error C2011: 'timeval' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(199) :
> > > > > error C2011: 'hostent' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(212) :
> > > > > error C2011: 'netent' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(219) :
> > > > > error C2011: 'servent' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(226) :
> > > > > error C2011: 'protoent'
> > > > > > > : 'struct'! type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(310) :
> > > > > error C2011: 'in_addr' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(368) :
> > > > > error C2011:
> > > > > > > 'sockaddr_in' : 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(378) :
> > > > > error C2011: 'WSAData' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(430) :
> > > > > warning C4005:
> > > > > > > 'SO_DONTLINGER' : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(391) : see previous
> > > > >! > > definition of 'SO_DONTLINGER'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(483) :
> > > > > warning C4005: 'AF_IPX'
> > > > > > > : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(449) : see previous
> > > > > > > definition of 'AF_IPX'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(506) :
> > > > > warning C4005: 'AF_MAX'
> > > > > > > : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(468) : see previous
> > > > > > > definition of 'AF_MAX'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(512) :
> > > > > error C2011: 'sockaddr'
> > > > > > > : 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(521) :
> > > > > error C2011: 'sockproto'
> > > > > > > : 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(560) :
> > > > > error C2011: 'linger' :
> > > > > > > 'struct' type redefinition
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(573) :
> > > > > warning C4005:
> > > > > > > 'SOMAXCONN' : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(533) : see previous
> > > > > > > definition of 'SOMAXCONN'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(598) :
> > > > > warning C4005: 'FD_READ'
> > > > > > &g! t; : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(551) : see previous
> > > > > > > definition of 'FD_READ'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(601) :
> > > > > warning C4005:
> > > > > > > 'FD_WRITE' : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(552) : see previous
> > > > > > > definition of 'FD_WRITE'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(604) :
> > > > > warning C4005: 'FD_OOB'
> > > > > > > : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(553) : see previous
> > > > > > > definition of 'FD_OOB'
> > > > > > ! > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(607) :
> > > > > warning C4005:
> > > > > > > 'FD_ACCEPT' : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(554) : see previous
> > > > > > > definition of 'FD_ACCEPT'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(610) :
> > > > > warning C4005:
> > > > > > > 'FD_CONNECT' : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(555) : see previous
> > > > > > > definition of 'FD_CONNECT'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(613) :
> > > > > warning C4005:
> > > > > > > 'FD_CLOSE' : macro redefinition
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(556) : see previous
> > > > > > > definition of 'FD_CLOSE'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1427) :
> > > > > error C2375: 'accept' :
> > > > > > > redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(707) : see declaration
> > > > > > > of 'accept'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1448) :
> > > > > error C2375: 'bind' :
> > > > > > > redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(710) : see declaration
> > > > > > > of 'bind'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1467) :
> > > > > error C2375:
> > > > > > > 'closesocket' : redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(712) : see declaration
> > > > > > > of 'closesocket'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1486) :
> > > > > error C2375: 'connect'
> > > > > > > : redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(714) : see declaration
> > > > > > > of 'connect'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1507) :
> > > > > error C2375:
> > > > > > > 'ioctlsocket' : redefinition; different linkage
> > > > > > > c:\program files\microsoft visual> > >
> > studio\vc98\include\winsock.h(716) : see declaration
> > > > > > > of 'ioctlsocket'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1528) :
> > > > > error C2375:
> > > > > > > 'getpeername' : redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(718) : see declaration
> > > > > > > of 'getpeername'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1549) :
> > > > > error C2375:
> > > > > > > 'getsockname' : redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(721) : see declaration
> > > > > > > of 'getsockname'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1572) :
> > > > > error C2375:
> > > > > > > 'getsockopt' : redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(724) : see declaration
> > > > > > > of 'getsockopt'
> > > > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock2.h(1593) :
> > > > > error C2375: 'htonl' :
> > > > > > > redefinition; different linkage
> > > > > > > c:\program files\microsoft visual
> > > > > studio\vc98\include\winsock.h(727) : see declaration
> > > > > > > of 'htonl'
> > > > >
> > > > === message truncated ===
> > > >
> > > >
> > > >
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > The all-new My Yahoo! - What will yours do?
> > > > http://my.yahoo.com
> > > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> [UTF-8?]> > Meet the all-new My Yahoo! – Try it today!
> > 
> > --
> > Damitha Kumarage
> > hSenid Software International (PVT) Ltd
> > damitha@hSenid.lk
> > 
> > Lanka Software Foundation (http://www.opensource.lk)
> > 
> > Do you Yahoo!?
> [UTF-8?]> Meet the all-new My Yahoo! – Try it today!
> 
> 
> --
> Damitha Kumarage
> hSenid Software International (PVT) Ltd
> damitha@hSenid.lk
> 
> Lanka Software Foundation (http://www.opensource.lk)
> 
> 


		
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! � Try it today! 

Re: Can we codefreeze for 1.4?

Posted by Roshan Weerasuriya <ro...@opensource.lk>.
+1

Roshan

On Wed, 2004-12-01 at 14:05, Samisa Abeysinghe wrote:
> +1 for freeze.
> Lets stop adding any new features and run the test cycles - and fix
> any bugs.
> Thanks,
> Samisa...
> 
> sanjaya singharage <sa...@opensource.lk> wrote:
>         at the moment of writing all the core modules are building for
>         windows.
>         Linux is also building and most samples can be run too.
>         
>         I am going to announce the codefreeze for 1.4 and create a
>         branch also. Any
>         comments?
>         
>         sanjaya.
>         
>         
> 
> ______________________________________________________________________
> Do you Yahoo!?
> The all-new My Yahoo! ? Get yours free! 


Re: Can we codefreeze for 1.4?

Posted by John Hawkins <HA...@uk.ibm.com>.



+1


John Hawkins




                                                                           
             Samisa Abeysinghe                                             
             <samisa_abeysingh                                             
             e@yahoo.com>                                               To 
                                       Apache AXIS C Developers List       
             01/12/2004 08:05          <ax...@ws.apache.org>          
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
              "Apache AXIS C           Re: Can we codefreeze for 1.4?      
             Developers List"                                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




+1 for freeze.
Lets stop adding any new features and run the test cycles - and fix any
bugs.
Thanks,
Samisa...

sanjaya singharage <sa...@opensource.lk> wrote:
 at the moment of writing all the core modules are building for windows.
 Linux is also building and most samples can be run too.

 I am going to announce the codefreeze for 1.4 and create a branch also.
 Any
 comments?

 sanjaya.




Do you Yahoo!?
The all-new My Yahoo! – Get yours free!


Re: Can we codefreeze for 1.4?

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
+1 for freeze.
Lets stop adding any new features and run the test cycles - and fix any bugs.
Thanks,
Samisa...

sanjaya singharage <sa...@opensource.lk> wrote:
at the moment of writing all the core modules are building for windows.
Linux is also building and most samples can be run too.

I am going to announce the codefreeze for 1.4 and create a branch also. Any
comments?

sanjaya.



		
---------------------------------
Do you Yahoo!?
 The all-new My Yahoo! � Get yours free!    

Can we codefreeze for 1.4?

Posted by sanjaya singharage <sa...@opensource.lk>.
at the moment of writing all the core modules are building for windows.
Linux is also building and most samples can be run too.

I am going to announce the codefreeze for 1.4 and create a branch also. Any
comments?

sanjaya.



Re: Axis2Transport does not build on windows

Posted by sanjaya singharage <sa...@opensource.lk>.
bingo! works for me too. Thanks steve.

sanjaya.

----- Original Message -----
From: "Steve Hardy" <st...@connectux.com>
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Sent: Tuesday, November 30, 2004 7:33 PM
Subject: Re: Axis2Transport does not build on windows


> in fact, that fixes everything for me; SSLChannelFactory is missing in the
> project, after adding that, all compiles OK.
>
>
>
> On Tue, 30 Nov 2004, Steve Hardy wrote:
>
> > I think the main problem is that _WIN32_WINNT is not defined when
> > <windows.h> is included in PlatformAutoSense. This makes windows.h
> > fallback to winsock.h instead of winsock2.h
> >
> > adding #define _WIN32_WINNT 0x0400 before include <windows.h> fixes most
> > compile errors, although I still get some link errors
> >
> > On Tue, 30 Nov 2004, Damitha Kumarage wrote:
> >
> > > Hi John,
> > > On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> > > > +1 loose coupling for compile time pls.
> > > I don't think that there is such comile time tight coupling. Once the
existing
> > >  window problem solved this should be ok
> > >
> > > >
> > > > IBM has its own implementation of ssl so we don't want to confuse
> > > > the two
> > > > (I can imagine some other software shops might also want to use
> > > > their own impl.)
> > > I think SSLChannel.hpp is for that. I have given just one
implementation for
> > > that. Others could give an different impl. If this interface is not
flexible
> > > enough suggestions are accepted
> > >
> > > thanks
> > > damitha
> > > >
> > > > John Hawkins
> > > >
> > > >              Samisa Abeysinghe
> > > >                    <samisa_abeysingh
> > > >                          e@yahoo.com>
> > > >                To                                        Apache AXIS
> > > > C Developers List                    30/11/2004 12:44
<axis-
> > > > c-dev@ws.apache.org>
> > > >                                  cc
> > > >
> > > >              Please respond to
> > > > Subject               "Apache AXIS C           Re: Axis2Transport
> > > > does not build                Developers List"          on windows
> > > >
> > > > Hi Damitha,
> > > >     Can we move all the SSL specific stuff into ssl sub folder?
> > > >     I got the feeling that there is some level of tight coupling
> > > > here with the non-SSL stuff. (It is annoying that I cannot compile a
> > > > module because of something that I am not going to use)
> > > >
> > > >     Re PlatformAutoSense.hpp: This can be a reason, as I mentioned
> > > > in an early mail. If so, does any one know how to override an
> > > > already included file so that we could override winsock.h with
> > > > winsock2.h (or does it sound silly :( ?  ) In other words, is there
> > > > any way to enfoce the Win platform header to include winsock2.h all
> > > > the time?
> > > >
> > > > Thanks,
> > > > Samisa...
> > > >
> > > > Damitha Kumarage <da...@opensource.lk> wrote:
> > > >  Hi Samisa,
> > > >  The only different with the older ones is that now it does not
> > > > contain ssl speicfic header files. Using a SSLChannelFactory it
> > > > dyanmically load the ssl channel library and call its methods. The
> > > > problem causing could be from including PlatformAutoSense.hpp in
> > > SSLChannelFactory.hpp
> > > >
> > > >  damitha
> > > >
> > > >  On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > > >  > > Was the vc project for Axis2Transport changed to include the
new
> > > >  files? If
> > > >  > > not what are the files that need to be included in this
project?
> > > >  >
> > > >  > I have no idea on this. I think the files have not been added.
> > > >  >
> > > >  > Just to let you know:
> > > >  > To help find a solution, I copied older versions of
> > > >  > SecureChannel.cpp and SecureChannel.h into the folder and built
> > > > the > project and the build was successful. > > I am n! ot sure why
> > > > the latest SecureChannel.cpp and SecureChannel.h > are causing
problems.
> > > >  >
> > > >  > Samisa...
> > > >  >
> > > >  > sanjaya singharage wrote:
> > > >  > Was the vc project for Axis2Transport changed to include the new
> > > >  > files? If not what are the files that need to be included in this
> > > >  project?
> > > >  >
> > > >  > sanjaya.
> > > >  > ----- Original Message -----
> > > >  > From: "Samisa Abeysinghe"
> > > >  > To: "Apache AXIS C Developers List"
> > > >  > Sent: Tuesday, November 30, 2004 5:32 PM
> > > >  > Subject: Re: Axis2Transport does not build on windows
> > > >  >
> > > >  > > Yes; AxisSocketUtils is not used anywhere.
> > > >  > >
> > > >  > > Looking at the email list, if I say changes to SecureChannel
has
> > > >  started
> > > >  > causing problems, am I
> > > >  > > correct? If so I could revert back and try.
> > > >  > >
> > > >  > > Thanks,
> > > >  > > Samisa...
> > > >  > >
> > > >  > > --- sanjaya singharage wrote:
> > > >  > >
> > > >  > > > win! sock.h is included in xisSocketUtils.cpp, but this
> > > > doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > >
> > > > > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > >
> > > > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November
> > > > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on
> > > > windows > > > > > > > > > > None of the source files include
> > > > winsock.h but winsock2.h. > > > > However, windows.h included in > >
> > > > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make
> > > > the > > > > compiler run into confusion. > > > > I still could not
> > > > find a solution. > > > > > > > > Waht are we doing wrong here? I
> > > > think before using platform headers it > > > worked. I am not sure
> > > > if > > > > thi! s problem came to life with platform headers. > > >
> > > > > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: >
> > > > > > > > > > > > --------------------Configuration: Axis2Transport -
Win32
> > > >  > > > Debug--------------------
> > > >  > > > > > Compiling...
> > > >  > > > > > SecureChannel.cpp
> > > >  > > > > >
> > > >  > > >
> > > >  >
> > > >  > d:\san\works\checkouts\head5\ws-
> > > >  > axis\c\include\axis\axisexception.hpp(164) :
> > > >  > > > warning C4275: non
> > > >  > > > > > dll-interface class 'exception' used as base for
dll-interface
> > > >  class
> > > >  > > > 'axiscpp::AxisException'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\exception(50) : see declaration of
> > > >  > > > > > 'exception'
> > > >  > > > > >
> > > >  > > >
> > > >  >
> > > >  >
> > > >
> > > >
d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > > >
> > > >  > > > ption.h(51) :
> > > >  > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> > > >  std::char_traits,class
> > > >  > > > > > std::allocator >' needs to have dll-interface to be used
> > > >  > > > > > by clients of class 'AxisTransportException'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  studio\vc98\include\winsock2.h(99)
> > > >  > :
> > > >  > > > error C2011: 'fd_set' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(134) :
> > > >  > > > warning C4005: 'FD_SET'
> > > >  > > > > > : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(83) : see previous
> > > >  > > > > > definition of 'FD_SET'
> > > >  > > >! > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(143) :
> > > >  > > > error C2011: 'timeval' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(199) :
> > > >  > > > error C2011: 'hostent' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(212) :
> > > >  > > > error C2011: 'netent' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(219) :
> > > >  > > > error C2011: 'servent' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(226) :
> > > >  > > > error C2011: 'protoent'
> > > >  > > > > > : 'struct'! type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(310) :
> > > >  > > > error C2011: 'in_addr' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(368) :
> > > >  > > > error C2011:
> > > >  > > > > > 'sockaddr_in' : 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(378) :
> > > >  > > > error C2011: 'WSAData' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(430) :
> > > >  > > > warning C4005:
> > > >  > > > > > 'SO_DONTLINGER' : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(391) : see previous
> > > >  > > >! > > definition of 'SO_DONTLINGER'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(483) :
> > > >  > > > warning C4005: 'AF_IPX'
> > > >  > > > > > : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(449) : see previous
> > > >  > > > > > definition of 'AF_IPX'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(506) :
> > > >  > > > warning C4005: 'AF_MAX'
> > > >  > > > > > : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(468) : see previous
> > > >  > > > > > definition of 'AF_MAX'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(512) :
> > > >  > > > error C2011: 'sockaddr'
> > > >  > > > > > : 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(521) :
> > > >  > > > error C2011: 'sockproto'
> > > >  > > > > > : 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(560) :
> > > >  > > > error C2011: 'linger' :
> > > >  > > > > > 'struct' type redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(573) :
> > > >  > > > warning C4005:
> > > >  > > > > > 'SOMAXCONN' : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(533) : see previous
> > > >  > > > > > definition of 'SOMAXCONN'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(598) :
> > > >  > > > warning C4005: 'FD_READ'
> > > >  > > > > &g! t; : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(551) : see previous
> > > >  > > > > > definition of 'FD_READ'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(601) :
> > > >  > > > warning C4005:
> > > >  > > > > > 'FD_WRITE' : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(552) : see previous
> > > >  > > > > > definition of 'FD_WRITE'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(604) :
> > > >  > > > warning C4005: 'FD_OOB'
> > > >  > > > > > : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(553) : see previous
> > > >  > > > > > definition of 'FD_OOB'
> > > >  > > > > ! > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(607) :
> > > >  > > > warning C4005:
> > > >  > > > > > 'FD_ACCEPT' : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(554) : see previous
> > > >  > > > > > definition of 'FD_ACCEPT'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(610) :
> > > >  > > > warning C4005:
> > > >  > > > > > 'FD_CONNECT' : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(555) : see previous
> > > >  > > > > > definition of 'FD_CONNECT'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(613) :
> > > >  > > > warning C4005:
> > > >  > > > > > 'FD_CLOSE' : macro redefinition
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(556) : see previous
> > > >  > > > > > definition of 'FD_CLOSE'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1427) :
> > > >  > > > error C2375: 'accept' :
> > > >  > > > > > redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(707) : see declaration
> > > >  > > > > > of 'accept'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1448) :
> > > >  > > > error C2375: 'bind' :
> > > >  > > > > > redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(710) : see declaration
> > > >  > > > > > of 'bind'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1467) :
> > > >  > > > error C2375:
> > > >  > > > > > 'closesocket' : redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(712) : see declaration
> > > >  > > > > > of 'closesocket'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1486) :
> > > >  > > > error C2375: 'connect'
> > > >  > > > > > : redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(714) : see declaration
> > > >  > > > > > of 'connect'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1507) :
> > > >  > > > error C2375:
> > > >  > > > > > 'ioctlsocket' : redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual> > >
> > > >  studio\vc98\include\winsock.h(716) : see declaration
> > > >  > > > > > of 'ioctlsocket'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1528) :
> > > >  > > > error C2375:
> > > >  > > > > > 'getpeername' : redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(718) : see declaration
> > > >  > > > > > of 'getpeername'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1549) :
> > > >  > > > error C2375:
> > > >  > > > > > 'getsockname' : redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(721) : see declaration
> > > >  > > > > > of 'getsockname'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1572) :
> > > >  > > > error C2375:
> > > >  > > > > > 'getsockopt' : redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(724) : see declaration
> > > >  > > > > > of 'getsockopt'
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > studio\vc98\include\winsock2.h(1593) :
> > > >  > > > error C2375: 'htonl' :
> > > >  > > > > > redefinition; different linkage
> > > >  > > > > > c:\program files\microsoft visual
> > > >  > > > studio\vc98\include\winsock.h(727) : see declaration
> > > >  > > > > > of 'htonl'
> > > >  > > >
> > > >  > > === message truncated ===
> > > >  > >
> > > >  > >
> > > >  > >
> > > >  > >
> > > >  > > __________________________________
> > > >  > > Do you Yahoo!?
> > > >  > > The all-new My Yahoo! - What will yours do?
> > > >  > > http://my.yahoo.com
> > > >  > >
> > > >  >
> > > >  >
> > > >  > ---------------------------------
> > > >  > Do you Yahoo!?
> > > [UTF-8?]>  > Meet the all-new My Yahoo! â?" Try it today!
> > > >
> > > >  --
> > > >  Damitha Kumarage
> > > >  hSenid Software International (PVT) Ltd
> > > >  damitha@hSenid.lk
> > > >
> > > >  Lanka Software Foundation (http://www.opensource.lk)
> > > >
> > > > Do you Yahoo!?
> > > [UTF-8?]> Meet the all-new My Yahoo! â?" Try it today!
> > >
> > >
> > > --
> > > Damitha Kumarage
> > > hSenid Software International (PVT) Ltd
> > > damitha@hSenid.lk
> > >
> > > Lanka Software Foundation (http://www.opensource.lk)
> > >
> > >
> >
> >
>
>
>



Re: Axis2Transport does not build on windows

Posted by Steve Hardy <st...@connectux.com>.
in fact, that fixes everything for me; SSLChannelFactory is missing in the
project, after adding that, all compiles OK.



On Tue, 30 Nov 2004, Steve Hardy wrote:

> I think the main problem is that _WIN32_WINNT is not defined when
> <windows.h> is included in PlatformAutoSense. This makes windows.h
> fallback to winsock.h instead of winsock2.h
> 
> adding #define _WIN32_WINNT 0x0400 before include <windows.h> fixes most
> compile errors, although I still get some link errors
> 
> On Tue, 30 Nov 2004, Damitha Kumarage wrote:
> 
> > Hi John,
> > On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> > > +1 loose coupling for compile time pls.
> > I don't think that there is such comile time tight coupling. Once the existing
> >  window problem solved this should be ok
> > 
> > > 
> > > IBM has its own implementation of ssl so we don't want to confuse 
> > > the two
> > > (I can imagine some other software shops might also want to use 
> > > their own impl.)
> > I think SSLChannel.hpp is for that. I have given just one implementation for
> > that. Others could give an different impl. If this interface is not flexible
> > enough suggestions are accepted
> > 
> > thanks
> > damitha
> > > 
> > > John Hawkins
> > > 
> > >              Samisa Abeysinghe                                       
> > >                    <samisa_abeysingh                                 
> > >                          e@yahoo.com>                                
> > >                To                                        Apache AXIS 
> > > C Developers List                    30/11/2004 12:44          <axis-
> > > c-dev@ws.apache.org>                                                 
> > >                                  cc
> > > 
> > >              Please respond to                                     
> > > Subject               "Apache AXIS C           Re: Axis2Transport 
> > > does not build                Developers List"          on windows
> > > 
> > > Hi Damitha,
> > >     Can we move all the SSL specific stuff into ssl sub folder?
> > >     I got the feeling that there is some level of tight coupling 
> > > here with the non-SSL stuff. (It is annoying that I cannot compile a 
> > > module because of something that I am not going to use)
> > > 
> > >     Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> > > in an early mail. If so, does any one know how to override an 
> > > already included file so that we could override winsock.h with 
> > > winsock2.h (or does it sound silly :( ?  ) In other words, is there 
> > > any way to enfoce the Win platform header to include winsock2.h all 
> > > the time?
> > > 
> > > Thanks,
> > > Samisa...
> > > 
> > > Damitha Kumarage <da...@opensource.lk> wrote:
> > >  Hi Samisa,
> > >  The only different with the older ones is that now it does not 
> > > contain ssl speicfic header files. Using a SSLChannelFactory it 
> > > dyanmically load the ssl channel library and call its methods. The 
> > > problem causing could be from including PlatformAutoSense.hpp in
> > SSLChannelFactory.hpp
> > > 
> > >  damitha
> > > 
> > >  On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > >  > > Was the vc project for Axis2Transport changed to include the new
> > >  files? If
> > >  > > not what are the files that need to be included in this project?
> > >  >
> > >  > I have no idea on this. I think the files have not been added.
> > >  >
> > >  > Just to let you know:
> > >  > To help find a solution, I copied older versions of
> > >  > SecureChannel.cpp and SecureChannel.h into the folder and built 
> > > the > project and the build was successful. > > I am n! ot sure why 
> > > the latest SecureChannel.cpp and SecureChannel.h > are causing problems.
> > >  >
> > >  > Samisa...
> > >  >
> > >  > sanjaya singharage wrote:
> > >  > Was the vc project for Axis2Transport changed to include the new
> > >  > files? If not what are the files that need to be included in this
> > >  project?
> > >  >
> > >  > sanjaya.
> > >  > ----- Original Message -----
> > >  > From: "Samisa Abeysinghe"
> > >  > To: "Apache AXIS C Developers List"
> > >  > Sent: Tuesday, November 30, 2004 5:32 PM
> > >  > Subject: Re: Axis2Transport does not build on windows
> > >  >
> > >  > > Yes; AxisSocketUtils is not used anywhere.
> > >  > >
> > >  > > Looking at the email list, if I say changes to SecureChannel has
> > >  started
> > >  > causing problems, am I
> > >  > > correct? If so I could revert back and try.
> > >  > >
> > >  > > Thanks,
> > >  > > Samisa...
> > >  > >
> > >  > > --- sanjaya singharage wrote:
> > >  > >
> > >  > > > win! sock.h is included in xisSocketUtils.cpp, but this 
> > > doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > > 
> > > > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > > 
> > > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November 
> > > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on 
> > > windows > > > > > > > > > > None of the source files include 
> > > winsock.h but winsock2.h. > > > > However, windows.h included in > > 
> > > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make 
> > > the > > > > compiler run into confusion. > > > > I still could not 
> > > find a solution. > > > > > > > > Waht are we doing wrong here? I 
> > > think before using platform headers it > > > worked. I am not sure 
> > > if > > > > thi! s problem came to life with platform headers. > > > 
> > > > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: > 
> > > > > > > > > > > --------------------Configuration: Axis2Transport - Win32
> > >  > > > Debug--------------------
> > >  > > > > > Compiling...
> > >  > > > > > SecureChannel.cpp
> > >  > > > > >
> > >  > > >
> > >  >
> > >  > d:\san\works\checkouts\head5\ws-
> > >  > axis\c\include\axis\axisexception.hpp(164) :
> > >  > > > warning C4275: non
> > >  > > > > > dll-interface class 'exception' used as base for dll-interface
> > >  class
> > >  > > > 'axiscpp::AxisException'
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\exception(50) : see declaration of
> > >  > > > > > 'exception'
> > >  > > > > >
> > >  > > >
> > >  >
> > >  >
> > > 
> > >  d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > > 
> > >  > > > ption.h(51) :
> > >  > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> > >  std::char_traits,class
> > >  > > > > > std::allocator >' needs to have dll-interface to be used
> > >  > > > > > by clients of class 'AxisTransportException'
> > >  > > > > > c:\program files\microsoft visual
> > >  studio\vc98\include\winsock2.h(99)
> > >  > :
> > >  > > > error C2011: 'fd_set' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(134) :
> > >  > > > warning C4005: 'FD_SET'
> > >  > > > > > : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(83) : see previous
> > >  > > > > > definition of 'FD_SET'
> > >  > > >! > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(143) :
> > >  > > > error C2011: 'timeval' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(199) :
> > >  > > > error C2011: 'hostent' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(212) :
> > >  > > > error C2011: 'netent' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(219) :
> > >  > > > error C2011: 'servent' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(226) :
> > >  > > > error C2011: 'protoent'
> > >  > > > > > : 'struct'! type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(310) :
> > >  > > > error C2011: 'in_addr' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(368) :
> > >  > > > error C2011:
> > >  > > > > > 'sockaddr_in' : 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(378) :
> > >  > > > error C2011: 'WSAData' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(430) :
> > >  > > > warning C4005:
> > >  > > > > > 'SO_DONTLINGER' : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(391) : see previous
> > >  > > >! > > definition of 'SO_DONTLINGER'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(483) :
> > >  > > > warning C4005: 'AF_IPX'
> > >  > > > > > : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(449) : see previous
> > >  > > > > > definition of 'AF_IPX'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(506) :
> > >  > > > warning C4005: 'AF_MAX'
> > >  > > > > > : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(468) : see previous
> > >  > > > > > definition of 'AF_MAX'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(512) :
> > >  > > > error C2011: 'sockaddr'
> > >  > > > > > : 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(521) :
> > >  > > > error C2011: 'sockproto'
> > >  > > > > > : 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(560) :
> > >  > > > error C2011: 'linger' :
> > >  > > > > > 'struct' type redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(573) :
> > >  > > > warning C4005:
> > >  > > > > > 'SOMAXCONN' : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(533) : see previous
> > >  > > > > > definition of 'SOMAXCONN'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(598) :
> > >  > > > warning C4005: 'FD_READ'
> > >  > > > > &g! t; : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(551) : see previous
> > >  > > > > > definition of 'FD_READ'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(601) :
> > >  > > > warning C4005:
> > >  > > > > > 'FD_WRITE' : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(552) : see previous
> > >  > > > > > definition of 'FD_WRITE'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(604) :
> > >  > > > warning C4005: 'FD_OOB'
> > >  > > > > > : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(553) : see previous
> > >  > > > > > definition of 'FD_OOB'
> > >  > > > > ! > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(607) :
> > >  > > > warning C4005:
> > >  > > > > > 'FD_ACCEPT' : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(554) : see previous
> > >  > > > > > definition of 'FD_ACCEPT'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(610) :
> > >  > > > warning C4005:
> > >  > > > > > 'FD_CONNECT' : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(555) : see previous
> > >  > > > > > definition of 'FD_CONNECT'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(613) :
> > >  > > > warning C4005:
> > >  > > > > > 'FD_CLOSE' : macro redefinition
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(556) : see previous
> > >  > > > > > definition of 'FD_CLOSE'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1427) :
> > >  > > > error C2375: 'accept' :
> > >  > > > > > redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(707) : see declaration
> > >  > > > > > of 'accept'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1448) :
> > >  > > > error C2375: 'bind' :
> > >  > > > > > redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(710) : see declaration
> > >  > > > > > of 'bind'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1467) :
> > >  > > > error C2375:
> > >  > > > > > 'closesocket' : redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(712) : see declaration
> > >  > > > > > of 'closesocket'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1486) :
> > >  > > > error C2375: 'connect'
> > >  > > > > > : redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(714) : see declaration
> > >  > > > > > of 'connect'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1507) :
> > >  > > > error C2375:
> > >  > > > > > 'ioctlsocket' : redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual> > >
> > >  studio\vc98\include\winsock.h(716) : see declaration
> > >  > > > > > of 'ioctlsocket'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1528) :
> > >  > > > error C2375:
> > >  > > > > > 'getpeername' : redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(718) : see declaration
> > >  > > > > > of 'getpeername'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1549) :
> > >  > > > error C2375:
> > >  > > > > > 'getsockname' : redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(721) : see declaration
> > >  > > > > > of 'getsockname'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1572) :
> > >  > > > error C2375:
> > >  > > > > > 'getsockopt' : redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(724) : see declaration
> > >  > > > > > of 'getsockopt'
> > >  > > > > > c:\program files\microsoft visual
> > >  > studio\vc98\include\winsock2.h(1593) :
> > >  > > > error C2375: 'htonl' :
> > >  > > > > > redefinition; different linkage
> > >  > > > > > c:\program files\microsoft visual
> > >  > > > studio\vc98\include\winsock.h(727) : see declaration
> > >  > > > > > of 'htonl'
> > >  > > >
> > >  > > === message truncated ===
> > >  > >
> > >  > >
> > >  > >
> > >  > >
> > >  > > __________________________________
> > >  > > Do you Yahoo!?
> > >  > > The all-new My Yahoo! - What will yours do?
> > >  > > http://my.yahoo.com
> > >  > >
> > >  >
> > >  >
> > >  > ---------------------------------
> > >  > Do you Yahoo!?
> > [UTF-8?]>  > Meet the all-new My Yahoo! – Try it today!
> > > 
> > >  --
> > >  Damitha Kumarage
> > >  hSenid Software International (PVT) Ltd
> > >  damitha@hSenid.lk
> > > 
> > >  Lanka Software Foundation (http://www.opensource.lk)
> > > 
> > > Do you Yahoo!?
> > [UTF-8?]> Meet the all-new My Yahoo! – Try it today!
> > 
> > 
> > --
> > Damitha Kumarage
> > hSenid Software International (PVT) Ltd
> > damitha@hSenid.lk
> > 
> > Lanka Software Foundation (http://www.opensource.lk)
> > 
> > 
> 
> 


Re: Axis2Transport does not build on windows

Posted by Steve Hardy <st...@connectux.com>.
I think the main problem is that _WIN32_WINNT is not defined when
<windows.h> is included in PlatformAutoSense. This makes windows.h
fallback to winsock.h instead of winsock2.h

adding #define _WIN32_WINNT 0x0400 before include <windows.h> fixes most
compile errors, although I still get some link errors

On Tue, 30 Nov 2004, Damitha Kumarage wrote:

> Hi John,
> On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> > +1 loose coupling for compile time pls.
> I don't think that there is such comile time tight coupling. Once the existing
>  window problem solved this should be ok
> 
> > 
> > IBM has its own implementation of ssl so we don't want to confuse 
> > the two
> > (I can imagine some other software shops might also want to use 
> > their own impl.)
> I think SSLChannel.hpp is for that. I have given just one implementation for
> that. Others could give an different impl. If this interface is not flexible
> enough suggestions are accepted
> 
> thanks
> damitha
> > 
> > John Hawkins
> > 
> >              Samisa Abeysinghe                                       
> >                    <samisa_abeysingh                                 
> >                          e@yahoo.com>                                
> >                To                                        Apache AXIS 
> > C Developers List                    30/11/2004 12:44          <axis-
> > c-dev@ws.apache.org>                                                 
> >                                  cc
> > 
> >              Please respond to                                     
> > Subject               "Apache AXIS C           Re: Axis2Transport 
> > does not build                Developers List"          on windows
> > 
> > Hi Damitha,
> >     Can we move all the SSL specific stuff into ssl sub folder?
> >     I got the feeling that there is some level of tight coupling 
> > here with the non-SSL stuff. (It is annoying that I cannot compile a 
> > module because of something that I am not going to use)
> > 
> >     Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> > in an early mail. If so, does any one know how to override an 
> > already included file so that we could override winsock.h with 
> > winsock2.h (or does it sound silly :( ?  ) In other words, is there 
> > any way to enfoce the Win platform header to include winsock2.h all 
> > the time?
> > 
> > Thanks,
> > Samisa...
> > 
> > Damitha Kumarage <da...@opensource.lk> wrote:
> >  Hi Samisa,
> >  The only different with the older ones is that now it does not 
> > contain ssl speicfic header files. Using a SSLChannelFactory it 
> > dyanmically load the ssl channel library and call its methods. The 
> > problem causing could be from including PlatformAutoSense.hpp in
> SSLChannelFactory.hpp
> > 
> >  damitha
> > 
> >  On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> >  > > Was the vc project for Axis2Transport changed to include the new
> >  files? If
> >  > > not what are the files that need to be included in this project?
> >  >
> >  > I have no idea on this. I think the files have not been added.
> >  >
> >  > Just to let you know:
> >  > To help find a solution, I copied older versions of
> >  > SecureChannel.cpp and SecureChannel.h into the folder and built 
> > the > project and the build was successful. > > I am n! ot sure why 
> > the latest SecureChannel.cpp and SecureChannel.h > are causing problems.
> >  >
> >  > Samisa...
> >  >
> >  > sanjaya singharage wrote:
> >  > Was the vc project for Axis2Transport changed to include the new
> >  > files? If not what are the files that need to be included in this
> >  project?
> >  >
> >  > sanjaya.
> >  > ----- Original Message -----
> >  > From: "Samisa Abeysinghe"
> >  > To: "Apache AXIS C Developers List"
> >  > Sent: Tuesday, November 30, 2004 5:32 PM
> >  > Subject: Re: Axis2Transport does not build on windows
> >  >
> >  > > Yes; AxisSocketUtils is not used anywhere.
> >  > >
> >  > > Looking at the email list, if I say changes to SecureChannel has
> >  started
> >  > causing problems, am I
> >  > > correct? If so I could revert back and try.
> >  > >
> >  > > Thanks,
> >  > > Samisa...
> >  > >
> >  > > --- sanjaya singharage wrote:
> >  > >
> >  > > > win! sock.h is included in xisSocketUtils.cpp, but this 
> > doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > > 
> > > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > > 
> > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November 
> > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on 
> > windows > > > > > > > > > > None of the source files include 
> > winsock.h but winsock2.h. > > > > However, windows.h included in > > 
> > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make 
> > the > > > > compiler run into confusion. > > > > I still could not 
> > find a solution. > > > > > > > > Waht are we doing wrong here? I 
> > think before using platform headers it > > > worked. I am not sure 
> > if > > > > thi! s problem came to life with platform headers. > > > 
> > > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: > 
> > > > > > > > > > --------------------Configuration: Axis2Transport - Win32
> >  > > > Debug--------------------
> >  > > > > > Compiling...
> >  > > > > > SecureChannel.cpp
> >  > > > > >
> >  > > >
> >  >
> >  > d:\san\works\checkouts\head5\ws-
> >  > axis\c\include\axis\axisexception.hpp(164) :
> >  > > > warning C4275: non
> >  > > > > > dll-interface class 'exception' used as base for dll-interface
> >  class
> >  > > > 'axiscpp::AxisException'
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\exception(50) : see declaration of
> >  > > > > > 'exception'
> >  > > > > >
> >  > > >
> >  >
> >  >
> > 
> >  d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > 
> >  > > > ption.h(51) :
> >  > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> >  std::char_traits,class
> >  > > > > > std::allocator >' needs to have dll-interface to be used
> >  > > > > > by clients of class 'AxisTransportException'
> >  > > > > > c:\program files\microsoft visual
> >  studio\vc98\include\winsock2.h(99)
> >  > :
> >  > > > error C2011: 'fd_set' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(134) :
> >  > > > warning C4005: 'FD_SET'
> >  > > > > > : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(83) : see previous
> >  > > > > > definition of 'FD_SET'
> >  > > >! > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(143) :
> >  > > > error C2011: 'timeval' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(199) :
> >  > > > error C2011: 'hostent' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(212) :
> >  > > > error C2011: 'netent' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(219) :
> >  > > > error C2011: 'servent' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(226) :
> >  > > > error C2011: 'protoent'
> >  > > > > > : 'struct'! type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(310) :
> >  > > > error C2011: 'in_addr' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(368) :
> >  > > > error C2011:
> >  > > > > > 'sockaddr_in' : 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(378) :
> >  > > > error C2011: 'WSAData' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(430) :
> >  > > > warning C4005:
> >  > > > > > 'SO_DONTLINGER' : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(391) : see previous
> >  > > >! > > definition of 'SO_DONTLINGER'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(483) :
> >  > > > warning C4005: 'AF_IPX'
> >  > > > > > : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(449) : see previous
> >  > > > > > definition of 'AF_IPX'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(506) :
> >  > > > warning C4005: 'AF_MAX'
> >  > > > > > : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(468) : see previous
> >  > > > > > definition of 'AF_MAX'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(512) :
> >  > > > error C2011: 'sockaddr'
> >  > > > > > : 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(521) :
> >  > > > error C2011: 'sockproto'
> >  > > > > > : 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(560) :
> >  > > > error C2011: 'linger' :
> >  > > > > > 'struct' type redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(573) :
> >  > > > warning C4005:
> >  > > > > > 'SOMAXCONN' : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(533) : see previous
> >  > > > > > definition of 'SOMAXCONN'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(598) :
> >  > > > warning C4005: 'FD_READ'
> >  > > > > &g! t; : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(551) : see previous
> >  > > > > > definition of 'FD_READ'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(601) :
> >  > > > warning C4005:
> >  > > > > > 'FD_WRITE' : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(552) : see previous
> >  > > > > > definition of 'FD_WRITE'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(604) :
> >  > > > warning C4005: 'FD_OOB'
> >  > > > > > : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(553) : see previous
> >  > > > > > definition of 'FD_OOB'
> >  > > > > ! > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(607) :
> >  > > > warning C4005:
> >  > > > > > 'FD_ACCEPT' : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(554) : see previous
> >  > > > > > definition of 'FD_ACCEPT'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(610) :
> >  > > > warning C4005:
> >  > > > > > 'FD_CONNECT' : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(555) : see previous
> >  > > > > > definition of 'FD_CONNECT'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(613) :
> >  > > > warning C4005:
> >  > > > > > 'FD_CLOSE' : macro redefinition
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(556) : see previous
> >  > > > > > definition of 'FD_CLOSE'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1427) :
> >  > > > error C2375: 'accept' :
> >  > > > > > redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(707) : see declaration
> >  > > > > > of 'accept'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1448) :
> >  > > > error C2375: 'bind' :
> >  > > > > > redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(710) : see declaration
> >  > > > > > of 'bind'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1467) :
> >  > > > error C2375:
> >  > > > > > 'closesocket' : redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(712) : see declaration
> >  > > > > > of 'closesocket'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1486) :
> >  > > > error C2375: 'connect'
> >  > > > > > : redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(714) : see declaration
> >  > > > > > of 'connect'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1507) :
> >  > > > error C2375:
> >  > > > > > 'ioctlsocket' : redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual> > >
> >  studio\vc98\include\winsock.h(716) : see declaration
> >  > > > > > of 'ioctlsocket'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1528) :
> >  > > > error C2375:
> >  > > > > > 'getpeername' : redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(718) : see declaration
> >  > > > > > of 'getpeername'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1549) :
> >  > > > error C2375:
> >  > > > > > 'getsockname' : redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(721) : see declaration
> >  > > > > > of 'getsockname'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1572) :
> >  > > > error C2375:
> >  > > > > > 'getsockopt' : redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(724) : see declaration
> >  > > > > > of 'getsockopt'
> >  > > > > > c:\program files\microsoft visual
> >  > studio\vc98\include\winsock2.h(1593) :
> >  > > > error C2375: 'htonl' :
> >  > > > > > redefinition; different linkage
> >  > > > > > c:\program files\microsoft visual
> >  > > > studio\vc98\include\winsock.h(727) : see declaration
> >  > > > > > of 'htonl'
> >  > > >
> >  > > === message truncated ===
> >  > >
> >  > >
> >  > >
> >  > >
> >  > > __________________________________
> >  > > Do you Yahoo!?
> >  > > The all-new My Yahoo! - What will yours do?
> >  > > http://my.yahoo.com
> >  > >
> >  >
> >  >
> >  > ---------------------------------
> >  > Do you Yahoo!?
> [UTF-8?]>  > Meet the all-new My Yahoo! – Try it today!
> > 
> >  --
> >  Damitha Kumarage
> >  hSenid Software International (PVT) Ltd
> >  damitha@hSenid.lk
> > 
> >  Lanka Software Foundation (http://www.opensource.lk)
> > 
> > Do you Yahoo!?
> [UTF-8?]> Meet the all-new My Yahoo! – Try it today!
> 
> 
> --
> Damitha Kumarage
> hSenid Software International (PVT) Ltd
> damitha@hSenid.lk
> 
> Lanka Software Foundation (http://www.opensource.lk)
> 
> 


Re: Axis2Transport does not build on windows

Posted by damitha kumarage <da...@opensource.lk>.
Hi,
see below

On Fri, 2004-12-03 at 16:03, damitha kumarage wrote:
> Hi Samisa,John, Fred,
> 
> On Wed, 2004-12-01 at 13:28, Samisa Abeysinghe wrote:
> > Hi Damitha,
> >  
> > > I think SSLChannel.hpp is for that. I have given just one
> > implementation for
> > > that. Others could give an different impl. If this interface is not
> > flexible
> > > enough suggestions are accepted
> > 
> > I have a differnt view. I think SecureChannle.hpp is for that. And SSL
> > stuff should be in ssl folder. And SSLChannel should inherit from the
> > secure channel. That would give us a more clearner hierarchy.
> 
> I too agree SecureChannel.hpp is for that. So I have changes to keep the
> SecureChannel.hpp as the base class. I completely removed SSLChannel
> class. Fred has already put required methods in SecureChannel.hpp
> ie. readSecureSocket, writeSecureSocket etc.
> 
> So I have my library implemenation in ssl folder. I have
> OpesSSLChannel.hpp derived from SecureChannel.hpp. Earlier it is
> deriving from SSLChannel.hpp.
> 
> >  
> > The fact that we need to have SSLChannelFactory in the Axis2Transport
> > project does not sound correct to me. That should be in a seperate
> > project - say SSLTransport project. (Please have a look at how the
> > coplilation problem was solved for windows)
> 
> Here I have a suggestion. 
> In Axis2Transport class on setEndpointUri method  we have
>        m_pChannel = (Channel *) new SecureChannel ();
> 
> This where SecureChannel class is instantiated depending on the url
> is https or http.
> I suggest to have this code instead of the above.(I have implemented
> this in my new version)
> 
>        m_pChannel = m_pFactory->getSecureChannelObject();
> 
> m_pFactory is an instance of ChannelFactory. Note that I have changed
> the name SecureChannelFactory to ChannelFactory. We can have another

> method in SecureChannelFactory called 
above line should correct as

method in ChannelFactory called

> getChannelObject() which return a norman Channel object. So we can have
> a normal channel pluggable as well(Like different business need
> their own secure channel implemenations they might also need their own
> normal channel implemenation)
> So instead of
> m_pChannel = new Channel ();
> we hae
> m_pChannel = m_pFactory->getChannelObject();
> 
> What do you think?
> 
> thanks
> damitha
> >  
> > Thanks,
> > Samisa...
> > 
> > Damitha Kumarage <da...@opensource.lk> wrote:
> >         Hi John,
> >         On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> >         > +1 loose coupling for compile time pls.
> >         I don't think that there is such comile time tight coupling.
> >         Once the existing
> >         window problem solved this should be ok
> >         
> >         > 
> >         > IBM has its own implementation of ssl so we don't want to
> >         confuse 
> >         > the two
> >         > (I can imagine some other software shops might also want to
> >         use 
> >         > their own impl.)
> >         I think SSLChannel.hpp is for that. I have given just one
> >         implementation for
> >         that. Others could give an different impl. If this interface
> >         is not flexible
> >         enough suggestions are accepted
> >         
> >         thanks
> >         damitha
> >         > 
> >         > John Hawkins
> >         > 
> >         > Samisa Abeysinghe 
> >         > > e@yahoo.com> 
> >         > To Apache AXIS 
> >         > C Developers List 30/11/2004 12:44 > c-dev@ws.apache.org> 
> >         > cc
> >         > 
> >         > Please respond to 
> >         > Subject "Apache AXIS C Re: Axis2Transport 
> >         > does not build Developers List" on windows
> >         > 
> >         > Hi Damitha,
> >         > Can we move all the SSL specific stuff into ssl sub folder?
> >         > I got the feeling that there is some level of tight coupling
> >         > here with the non-SSL stuff. (It is annoying that I cannot
> >         compile a 
> >         > module because of something that I am not going to use)
> >         > 
> >         > Re PlatformAutoSense.hpp: This can be a reason, as I
> >         mentioned 
> >         > in an early mail. If so, does any one know how to override
> >         an 
> >         > already included file so that we could override winsock.h
> >         with 
> >         > winsock2.h (or does it sound silly :( ? ) In other words, is
> >         there 
> >         > any way to enfoce the Win platform header to include
> >         winsock2.h all 
> >         > the time?
> >         > 
> >         > Thanks,
> >         > Samisa...
> >         > 
> >         > Damitha Kumarage wrote:
> >         > Hi Samisa,
> >         > The only different with the older ones is that now it does
> >         not 
> >         > contain ssl speicfic header files. Using a SSLChannelFactory
> >         it 
> >         > dyanmically load the ssl channel library and call its
> >         methods. The 
> >         > problem causing could be from including
> >         PlatformAutoSense.hpp in
> >         SSLChannelFactory.hpp
> >         > 
> >         > damitha
> >         > 
> >         > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe
> >         wrote
> >         > > > Was the vc project for Axis2Transport changed to include
> >         the new
> >         > files? If
> >         > > > not what are the files that need to be included in this
> >         project?
> >         > >
> >         > > I have no idea on this. I think the files have not been
> >         added.
> >         > >
> >         > > Just to let you know:
> >         > > To help find a solution, I copied older versions of
> >         > > SecureChannel.cpp and SecureChannel.h into the folder and
> >         built 
> >         > the > project and the build was successful. > > I am n! ot
> >         sure why 
> >         > the latest SecureChannel.cpp and SecureChannel.h > are
> >         causing problems.
> >         > >
> >         > > Samisa...
> >         > >
> >         > > sanjaya singharage wrote:
> >         > > Was the vc project for Axis2Transport changed to include
> >         the new
> >         > > files? If not what are the files that need to be included
> >         in this
> >         > project?
> >         > >
> >         > > sanjaya.
> >         > > ----- Original Message -----
> >         > > From: "Samisa Abeysinghe"
> >         > > To: "Apache AXIS C Developers List"
> >         > > Sent: Tuesday, November 30, 2004 5:32 PM
> >         > > Subject: Re: Axis2Transport does not build on windows
> >         > >
> >         > > > Yes; AxisSocketUtils is not used anywhere.
> >         > > >
> >         > > > Looking at the email list, if I say changes to
> >         SecureChannel has
> >         > started
> >         > > causing problems, am I
> >         > > > correct? If so I could revert back and try.
> >         > > >
> >         > > > Thanks,
> >         > > > Samisa...
> >         > > >
> >         > > > --- sanjaya singharage wrote:
> >         > > >
> >         > > > > win! sock.h is included in xisSocketUtils.cpp, but
> >         this 
> >         > doesn't seem to be > > > used anywhere. > > > > > > sanjaya.
> >         > > > > 
> >         > > > ----- Original Message ----- > > > From: "Samisa
> >         Abeysinghe" > > 
> >         > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday,
> >         November 
> >         > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not
> >         build on 
> >         > windows > > > > > > > > > > None of the source files include
> >         > winsock.h but winsock2.h. > > > > However, windows.h
> >         included in > > 
> >         > > src/platforms/windows/PlatformSpecificWindows.hpp seems to
> >         make 
> >         > the > > > > compiler run into confusion. > > > > I still
> >         could not 
> >         > find a solution. > > > > > > > > Waht are we doing wrong
> >         here? I 
> >         > think before using platform headers it > > > worked. I am
> >         not sure 
> >         > if > > > > thi! s problem came to life with platform
> >         headers. > > > 
> >         > > > > > > Samisa... > > > > > > > > --- sanjaya singharage
> >         wrote: > 
> >         > > > > > > > > > --------------------Configuration:
> >         Axis2Transport - Win32
> >         > > > > Debug--------------------
> >         > > > > > > Compiling...
> >         > > > > > > SecureChannel.cpp
> >         > > > > > >
> >         > > > >
> >         > >
> >         > > d:\san\works\checkouts\head5\ws-
> >         > > axis\c\include\axis\axisexception.hpp(164) :
> >         > > > > warning C4275: non
> >         > > > > > > dll-interface class 'exception' used as base for
> >         dll-interface
> >         > class
> >         > > > > 'axiscpp::AxisException'
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\exception(50) : see declaration of
> >         > > > > > > 'exception'
> >         > > > > > >
> >         > > > >
> >         > >
> >         > >
> >         > 
> >         >
> >         d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> >         > 
> >         > > > > ption.h(51) :
> >         > > > > > > warning C4251: 'm_sMessage' : class
> >         'std::basic_string> >
> >         > std::char_traits,class
> >         > > > > > > std::allocator >' needs to have dll-interface to
> >         be used
> >         > > > > > > by clients of class 'AxisTransportException'
> >         > > > > > > c:\program files\microsoft visual
> >         > studio\vc98\include\winsock2.h(99)
> >         > > :
> >         > > > > error C2011: 'fd_set' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(134) :
> >         > > > > warning C4005: 'FD_SET'
> >         > > > > > > : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(83) : see previous
> >         > > > > > > definition of 'FD_SET'
> >         > > > >! > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(143) :
> >         > > > > error C2011: 'timeval' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(199) :
> >         > > > > error C2011: 'hostent' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(212) :
> >         > > > > error C2011: 'netent' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(219) :
> >         > > > > error C2011: 'servent' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(226) :
> >         > > > > error C2011: 'protoent'
> >         > > > > > > : 'struct'! type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(310) :
> >         > > > > error C2011: 'in_addr' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(368) :
> >         > > > > error C2011:
> >         > > > > > > 'sockaddr_in' : 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(378) :
> >         > > > > error C2011: 'WSAData' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(430) :
> >         > > > > warning C4005:
> >         > > > > > > 'SO_DONTLINGER' : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(391) : see previous
> >         > > > >! > > definition of 'SO_DONTLINGER'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(483) :
> >         > > > > warning C4005: 'AF_IPX'
> >         > > > > > > : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(449) : see previous
> >         > > > > > > definition of 'AF_IPX'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(506) :
> >         > > > > warning C4005: 'AF_MAX'
> >         > > > > > > : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(468) : see previous
> >         > > > > > > definition of 'AF_MAX'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(512) :
> >         > > > > error C2011: 'sockaddr'
> >         > > > > > > : 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(521) :
> >         > > > > error C2011: 'sockproto'
> >         > > > > > > : 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(560) :
> >         > > > > error C2011: 'linger' :
> >         > > > > > > 'struct' type redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(573) :
> >         > > > > warning C4005:
> >         > > > > > > 'SOMAXCONN' : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(533) : see previous
> >         > > > > > > definition of 'SOMAXCONN'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(598) :
> >         > > > > warning C4005: 'FD_READ'
> >         > > > > > &g! t; : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(551) : see previous
> >         > > > > > > definition of 'FD_READ'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(601) :
> >         > > > > warning C4005:
> >         > > > > > > 'FD_WRITE' : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(552) : see previous
> >         > > > > > > definition of 'FD_WRITE'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(604) :
> >         > > > > warning C4005: 'FD_OOB'
> >         > > > > > > : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(553) : see previous
> >         > > > > > > definition of 'FD_OOB'
> >         > > > > > ! > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(607) :
> >         > > > > warning C4005:
> >         > > > > > > 'FD_ACCEPT' : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(554) : see previous
> >         > > > > > > definition of 'FD_ACCEPT'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(610) :
> >         > > > > warning C4005:
> >         > > > > > > 'FD_CONNECT' : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(555) : see previous
> >         > > > > > > definition of 'FD_CONNECT'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(613) :
> >         > > > > warning C4005:
> >         > > > > > > 'FD_CLOSE' : macro redefinition
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(556) : see previous
> >         > > > > > > definition of 'FD_CLOSE'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1427) :
> >         > > > > error C2375: 'accept' :
> >         > > > > > > redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(707) : see declaration
> >         > > > > > > of 'accept'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1448) :
> >         > > > > error C2375: 'bind' :
> >         > > > > > > redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(710) : see declaration
> >         > > > > > > of 'bind'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1467) :
> >         > > > > error C2375:
> >         > > > > > > 'closesocket' : redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(712) : see declaration
> >         > > > > > > of 'closesocket'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1486) :
> >         > > > > error C2375: 'connect'
> >         > > > > > > : redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(714) : see declaration
> >         > > > > > > of 'connect'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1507) :
> >         > > > > error C2375:
> >         > > > > > > 'ioctlsocket' : redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual> > >
> >         > studio\vc98\include\winsock.h(716) : see declaration
> >         > > > > > > of 'ioctlsocket'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1528) :
> >         > > > > error C2375:
> >         > > > > > > 'getpeername' : redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(718) : see declaration
> >         > > > > > > of 'getpeername'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1549) :
> >         > > > > error C2375:
> >         > > > > > > 'getsockname' : redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(721) : see declaration
> >         > > > > > > of 'getsockname'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1572) :
> >         > > > > error C2375:
> >         > > > > > > 'getsockopt' : redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(724) : see declaration
> >         > > > > > > of 'getsockopt'
> >         > > > > > > c:\program files\microsoft visual
> >         > > studio\vc98\include\winsock2.h(1593) :
> >         > > > > error C2375: 'htonl' :
> >         > > > > > > redefinition; different linkage
> >         > > > > > > c:\program files\microsoft visual
> >         > > > > studio\vc98\include\winsock.h(727) : see declaration
> >         > > > > > > of 'htonl'
> >         > > > >
> >         > > > === message truncated ===
> >         > > >
> >         > > >
> >         > > >
> >         > > >
> >         > > > __________________________________
> >         > > > Do you Yahoo!?
> >         > > > The all-new My Yahoo! - What will yours do?
> >         > > > http://my.yahoo.com
> >         > > >
> >         > >
> >         > >
> >         > > ---------------------------------
> >         > > Do you Yahoo!?
> >         [UTF-8?]> > Meet the all-new My Yahoo! – Try it today!
> >         > 
> >         > --
> >         > Damitha Kumarage
> >         > hSenid Software International (PVT) Ltd
> >         > damitha@hSenid.lk
> >         > 
> >         > Lanka Software Foundation (http://www.opensource.lk)
> >         > 
> >         > Do you Yahoo!?
> >         [UTF-8?]> Meet the all-new My Yahoo! – Try it today!
> >         
> >         
> >         --
> >         Damitha Kumarage
> >         hSenid Software International (PVT) Ltd
> >         damitha@hSenid.lk
> >         
> >         Lanka Software Foundation (http://www.opensource.lk)
> >         
> > 
> > ______________________________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> 


Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi Damitha,
    Could you please commit the changes to SSL stuff soon please?
  
    I would like to wait till the commits are done to look into
http://nagoya.apache.org/jira/browse/AXISCPP-297

Thanks,
Samisa...

--- damitha kumarage <da...@opensource.lk> wrote:

> Hi Samisa,
> 
> On Fri, 2004-12-03 at 16:24, Samisa Abeysinghe wrote:
> > Hi Damitha,
> > 
> > --- damitha kumarage <da...@opensource.lk> wrote:
> > 
> > > Hi Samisa,John, Fred,
> > > 
> > > On Wed, 2004-12-01 at 13:28, Samisa Abeysinghe wrote:
> > > > Hi Damitha,
> > > >  
> > > > > I think SSLChannel.hpp is for that. I have given just one
> > > > implementation for
> > > > > that. Others could give an different impl. If this interface is not
> > > > flexible
> > > > > enough suggestions are accepted
> > > > 
> > > > I have a differnt view. I think SecureChannle.hpp is for that. And SSL
> > > > stuff should be in ssl folder. And SSLChannel should inherit from the
> > > > secure channel. That would give us a more clearner hierarchy.
> > > 
> > > I too agree SecureChannel.hpp is for that. So I have changes to keep the
> > > SecureChannel.hpp as the base class. I completely removed SSLChannel
> > > class. Fred has already put required methods in SecureChannel.hpp
> > > ie. readSecureSocket, writeSecureSocket etc.
> > > 
> > > So I have my library implemenation in ssl folder. I have
> > > OpesSSLChannel.hpp derived from SecureChannel.hpp. Earlier it is
> > > deriving from SSLChannel.hpp.
> > 
> > Cool. Thanks for the new cleaner design. (I hope you will commit this after alpha release)
> 
> I'll commit this after the code freeze if over
> 
> > 
> > 
> > > 
> > > >  
> > > > The fact that we need to have SSLChannelFactory in the Axis2Transport
> > > > project does not sound correct to me. That should be in a seperate
> > > > project - say SSLTransport project. (Please have a look at how the
> > > > coplilation problem was solved for windows)
> > > 
> > > Here I have a suggestion. 
> > > In Axis2Transport class on setEndpointUri method  we have
> > >        m_pChannel = (Channel *) new SecureChannel ();
> > > 
> > > This where SecureChannel class is instantiated depending on the url
> > > is https or http.
> > > I suggest to have this code instead of the above.(I have implemented
> > > this in my new version)
> > > 
> > >        m_pChannel = m_pFactory->getSecureChannelObject();
> > > 
> > > m_pFactory is an instance of ChannelFactory. Note that I have changed
> > > the name SecureChannelFactory to ChannelFactory. We can have another
> > > method in SecureChannelFactory called 
> > > getChannelObject() which return a norman Channel object. So we can have
> > > a normal channel pluggable as well(Like different business need
> > > their own secure channel implemenations they might also need their own
> > > normal channel implemenation)
> > > So instead of
> > > m_pChannel = new Channel ();
> > > we hae
> > > m_pChannel = m_pFactory->getChannelObject();
> > > 
> > > What do you think?
> > 
> > It is a good idea to apply factory pattern here. However, we would have only two possibilities
> > here, either http or https. Given that, do we need to make things complex here?
> > IMHO, keeping the current structure is good for the sake of KISS.
> 
> There is more here than just applying factory pattern.
> 
> If we provide this we can have a different implemenation of normal
> channel than the default channel implemenation provided by us.
> 
> In getChannelObject we may have something like this
> 
> Channel* ChannelFactory::getChannelObject()
> {
>     Channel* pChannel = 0;
> 
>     if(useDefaultChannel)
>     {
>         pChannel = new Channel();
>     }
>     else
>     {   
>         if (m_Create) m_Create(&pChannel);
>         return pChannel;
>     }
> }
> 
> 
> regds
> damitha
> 
> 
> > 
> > Thanks,
> > Samisa...
> > 
> > > 
> > > thanks
> > > damitha
> > > >  
> > > > Thanks,
> > > > Samisa...
> > > > 
> > > > Damitha Kumarage <da...@opensource.lk> wrote:
> > > >         Hi John,
> > > >         On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> > > >         > +1 loose coupling for compile time pls.
> > > >         I don't think that there is such comile time tight coupling.
> > > >         Once the existing
> > > >         window problem solved this should be ok
> > > >         
> > > >         > 
> > > >         > IBM has its own implementation of ssl so we don't want to
> > > >         confuse 
> > > >         > the two
> > > >         > (I can imagine some other software shops might also want to
> > > >         use 
> > > >         > their own impl.)
> > > >         I think SSLChannel.hpp is for that. I have given just one
> > > >         implementation for
> > > >         that. Others could give an different impl. If this interface
> > > >         is not flexible
> > > >         enough suggestions are accepted
> > > >         
> > > >         thanks
> > > >         damitha
> > > >         > 
> > > >         > John Hawkins
> > > >         > 
> > > >         > Samisa Abeysinghe 
> > > >         > > e@yahoo.com> 
> > > >         > To Apache AXIS 
> > > >         > C Developers List 30/11/2004 12:44 > c-dev@ws.apache.org> 
> > > >         > cc
> > > >         > 
> > > >         > Please respond to 
> > > >         > Subject "Apache AXIS C Re: Axis2Transport 
> > > >         > does not build Developers List" on windows
> > > >         > 
> > > >         > Hi Damitha,
> > > >         > Can we move all the SSL specific stuff into ssl sub folder?
> > > >         > I got the feeling that there is some level of tight coupling
> > > >         > here with the non-SSL stuff. (It is annoying that I cannot
> > > >         compile a 
> > > >         > module because of something that I am not going to use)
> > > >         > 
> > > >         > Re PlatformAutoSense.hpp: This can be a reason, as I
> > > >         mentioned 
> > > >         > in an early mail. If so, does any one know how to override
> > > >         an 
> > > >         > already included file so that we could override winsock.h
> > > >         with 
> > > >         > winsock2.h (or does it sound silly :( ? ) In other words, is
> > > >         there 
> > > >         > any way to enfoce the Win platform header to include
> > > >         winsock2.h all 
> > > >         > the time?
> > > >         > 
> > > >         > Thanks,
> > > >         > Samisa...
> > > >         > 
> > > >         > Damitha Kumarage wrote:
> > > >         > Hi Samisa,
> > > >         > The only different with the older ones is that now it does
> > > >         not 
> > > >         > contain ssl speicfic header files. Using a SSLChannelFactory
> > > >         it 
> > > >         > dyanmically load the ssl channel library and call its
> > > >         methods. The 
> > > >         > problem causing could be from including
> > > >         PlatformAutoSense.hpp in
> > > >         SSLChannelFactory.hpp
> > > >         > 
> > > >         > damitha
> > > >         > 
> > > >         > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe
> > > >         wrote
> > > >         > > > Was the vc project for Axis2Transport changed to include
> > > >         the new
> > > >         > files? If
> > > >         > > > not what are the files that need to be included in this
> > > >         project?
> > > >         > >
> > > >         > > I have no idea on this. I think the files have not been
> > > >         added.
> > > >         > >
> > > >         > > Just to let you know:
> > > >         > > To help find a solution, I copied older versions of
> > > >         > > SecureChannel.cpp and SecureChannel.h into the folder and
> > > >         built 
> > > >         > the > project and the build was successful. > > I am n! ot
> > > >         sure why 
> > > >         > the latest SecureChannel.cpp and SecureChannel.h > are
> 
=== message truncated ===



		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

Re: Axis2Transport does not build on windows

Posted by damitha kumarage <da...@opensource.lk>.
Hi Samisa,

On Fri, 2004-12-03 at 16:24, Samisa Abeysinghe wrote:
> Hi Damitha,
> 
> --- damitha kumarage <da...@opensource.lk> wrote:
> 
> > Hi Samisa,John, Fred,
> > 
> > On Wed, 2004-12-01 at 13:28, Samisa Abeysinghe wrote:
> > > Hi Damitha,
> > >  
> > > > I think SSLChannel.hpp is for that. I have given just one
> > > implementation for
> > > > that. Others could give an different impl. If this interface is not
> > > flexible
> > > > enough suggestions are accepted
> > > 
> > > I have a differnt view. I think SecureChannle.hpp is for that. And SSL
> > > stuff should be in ssl folder. And SSLChannel should inherit from the
> > > secure channel. That would give us a more clearner hierarchy.
> > 
> > I too agree SecureChannel.hpp is for that. So I have changes to keep the
> > SecureChannel.hpp as the base class. I completely removed SSLChannel
> > class. Fred has already put required methods in SecureChannel.hpp
> > ie. readSecureSocket, writeSecureSocket etc.
> > 
> > So I have my library implemenation in ssl folder. I have
> > OpesSSLChannel.hpp derived from SecureChannel.hpp. Earlier it is
> > deriving from SSLChannel.hpp.
> 
> Cool. Thanks for the new cleaner design. (I hope you will commit this after alpha release)

I'll commit this after the code freeze if over

> 
> 
> > 
> > >  
> > > The fact that we need to have SSLChannelFactory in the Axis2Transport
> > > project does not sound correct to me. That should be in a seperate
> > > project - say SSLTransport project. (Please have a look at how the
> > > coplilation problem was solved for windows)
> > 
> > Here I have a suggestion. 
> > In Axis2Transport class on setEndpointUri method  we have
> >        m_pChannel = (Channel *) new SecureChannel ();
> > 
> > This where SecureChannel class is instantiated depending on the url
> > is https or http.
> > I suggest to have this code instead of the above.(I have implemented
> > this in my new version)
> > 
> >        m_pChannel = m_pFactory->getSecureChannelObject();
> > 
> > m_pFactory is an instance of ChannelFactory. Note that I have changed
> > the name SecureChannelFactory to ChannelFactory. We can have another
> > method in SecureChannelFactory called 
> > getChannelObject() which return a norman Channel object. So we can have
> > a normal channel pluggable as well(Like different business need
> > their own secure channel implemenations they might also need their own
> > normal channel implemenation)
> > So instead of
> > m_pChannel = new Channel ();
> > we hae
> > m_pChannel = m_pFactory->getChannelObject();
> > 
> > What do you think?
> 
> It is a good idea to apply factory pattern here. However, we would have only two possibilities
> here, either http or https. Given that, do we need to make things complex here?
> IMHO, keeping the current structure is good for the sake of KISS.

There is more here than just applying factory pattern.

If we provide this we can have a different implemenation of normal
channel than the default channel implemenation provided by us.

In getChannelObject we may have something like this

Channel* ChannelFactory::getChannelObject()
{
    Channel* pChannel = 0;

    if(useDefaultChannel)
    {
        pChannel = new Channel();
    }
    else
    {   
        if (m_Create) m_Create(&pChannel);
        return pChannel;
    }
}


regds
damitha


> 
> Thanks,
> Samisa...
> 
> > 
> > thanks
> > damitha
> > >  
> > > Thanks,
> > > Samisa...
> > > 
> > > Damitha Kumarage <da...@opensource.lk> wrote:
> > >         Hi John,
> > >         On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> > >         > +1 loose coupling for compile time pls.
> > >         I don't think that there is such comile time tight coupling.
> > >         Once the existing
> > >         window problem solved this should be ok
> > >         
> > >         > 
> > >         > IBM has its own implementation of ssl so we don't want to
> > >         confuse 
> > >         > the two
> > >         > (I can imagine some other software shops might also want to
> > >         use 
> > >         > their own impl.)
> > >         I think SSLChannel.hpp is for that. I have given just one
> > >         implementation for
> > >         that. Others could give an different impl. If this interface
> > >         is not flexible
> > >         enough suggestions are accepted
> > >         
> > >         thanks
> > >         damitha
> > >         > 
> > >         > John Hawkins
> > >         > 
> > >         > Samisa Abeysinghe 
> > >         > > e@yahoo.com> 
> > >         > To Apache AXIS 
> > >         > C Developers List 30/11/2004 12:44 > c-dev@ws.apache.org> 
> > >         > cc
> > >         > 
> > >         > Please respond to 
> > >         > Subject "Apache AXIS C Re: Axis2Transport 
> > >         > does not build Developers List" on windows
> > >         > 
> > >         > Hi Damitha,
> > >         > Can we move all the SSL specific stuff into ssl sub folder?
> > >         > I got the feeling that there is some level of tight coupling
> > >         > here with the non-SSL stuff. (It is annoying that I cannot
> > >         compile a 
> > >         > module because of something that I am not going to use)
> > >         > 
> > >         > Re PlatformAutoSense.hpp: This can be a reason, as I
> > >         mentioned 
> > >         > in an early mail. If so, does any one know how to override
> > >         an 
> > >         > already included file so that we could override winsock.h
> > >         with 
> > >         > winsock2.h (or does it sound silly :( ? ) In other words, is
> > >         there 
> > >         > any way to enfoce the Win platform header to include
> > >         winsock2.h all 
> > >         > the time?
> > >         > 
> > >         > Thanks,
> > >         > Samisa...
> > >         > 
> > >         > Damitha Kumarage wrote:
> > >         > Hi Samisa,
> > >         > The only different with the older ones is that now it does
> > >         not 
> > >         > contain ssl speicfic header files. Using a SSLChannelFactory
> > >         it 
> > >         > dyanmically load the ssl channel library and call its
> > >         methods. The 
> > >         > problem causing could be from including
> > >         PlatformAutoSense.hpp in
> > >         SSLChannelFactory.hpp
> > >         > 
> > >         > damitha
> > >         > 
> > >         > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe
> > >         wrote
> > >         > > > Was the vc project for Axis2Transport changed to include
> > >         the new
> > >         > files? If
> > >         > > > not what are the files that need to be included in this
> > >         project?
> > >         > >
> > >         > > I have no idea on this. I think the files have not been
> > >         added.
> > >         > >
> > >         > > Just to let you know:
> > >         > > To help find a solution, I copied older versions of
> > >         > > SecureChannel.cpp and SecureChannel.h into the folder and
> > >         built 
> > >         > the > project and the build was successful. > > I am n! ot
> > >         sure why 
> > >         > the latest SecureChannel.cpp and SecureChannel.h > are
> > >         causing problems.
> > >         > >
> > >         > > Samisa...
> > >         > >
> > >         > > sanjaya singharage wrote:
> > >         > > Was the vc project for Axis2Transport changed to include
> > >         the new
> > >         > > files? If not what are the files that need to be included
> > >         in this
> > >         > project?
> > >         > >
> > >         > > sanjaya.
> > >         > > ----- Original Message -----
> > >         > > From: "Samisa Abeysinghe"
> > >         > > To: "Apache AXIS C Developers List"
> > >         > > Sent: Tuesday, November 30, 2004 5:32 PM
> > >         > > Subject: Re: Axis2Transport does not build on windows
> > >         > >
> > >         > > > Yes; AxisSocketUtils is not used anywhere.
> > >         > > >
> > >         > > > Looking at the email list, if I say changes to
> > >         SecureChannel has
> > >         > started
> > >         > > causing problems, am I
> > >         > > > correct? If so I could revert back and try.
> > >         > > >
> > >         > > > Thanks,
> > >         > > > Samisa...
> > >         > > >
> > >         > > > --- sanjaya singharage wrote:
> > >         > > >
> > >         > > > > win! sock.h is included in xisSocketUtils.cpp, but
> > >         this 
> > >         > doesn't seem to be > > > used anywhere. > > > > > > sanjaya.
> > >         > > > > 
> > >         > > > ----- Original Message ----- > > > From: "Samisa
> > >         Abeysinghe" > > 
> > >         > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday,
> > >         November 
> > >         > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not
> > >         build on 
> > >         > windows > > > > > > > > > > None of the source files include
> > >         > winsock.h but winsock2.h. > > > > However, windows.h
> > >         included in > > 
> > >         > > src/platforms/windows/PlatformSpecificWindows.hpp seems to
> > >         make 
> > >         > the > > > > compiler run into confusion. > > > > I still
> > >         could not 
> > >         > find a solution. > > > > > > > > Waht are we doing wrong
> > >         here? I 
> > 
> === message truncated ===
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Send a seasonal email greeting and help others. Do good.
> http://celebrity.mail.yahoo.com


Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi Damitha,

--- damitha kumarage <da...@opensource.lk> wrote:

> Hi Samisa,John, Fred,
> 
> On Wed, 2004-12-01 at 13:28, Samisa Abeysinghe wrote:
> > Hi Damitha,
> >  
> > > I think SSLChannel.hpp is for that. I have given just one
> > implementation for
> > > that. Others could give an different impl. If this interface is not
> > flexible
> > > enough suggestions are accepted
> > 
> > I have a differnt view. I think SecureChannle.hpp is for that. And SSL
> > stuff should be in ssl folder. And SSLChannel should inherit from the
> > secure channel. That would give us a more clearner hierarchy.
> 
> I too agree SecureChannel.hpp is for that. So I have changes to keep the
> SecureChannel.hpp as the base class. I completely removed SSLChannel
> class. Fred has already put required methods in SecureChannel.hpp
> ie. readSecureSocket, writeSecureSocket etc.
> 
> So I have my library implemenation in ssl folder. I have
> OpesSSLChannel.hpp derived from SecureChannel.hpp. Earlier it is
> deriving from SSLChannel.hpp.

Cool. Thanks for the new cleaner design. (I hope you will commit this after alpha release)


> 
> >  
> > The fact that we need to have SSLChannelFactory in the Axis2Transport
> > project does not sound correct to me. That should be in a seperate
> > project - say SSLTransport project. (Please have a look at how the
> > coplilation problem was solved for windows)
> 
> Here I have a suggestion. 
> In Axis2Transport class on setEndpointUri method  we have
>        m_pChannel = (Channel *) new SecureChannel ();
> 
> This where SecureChannel class is instantiated depending on the url
> is https or http.
> I suggest to have this code instead of the above.(I have implemented
> this in my new version)
> 
>        m_pChannel = m_pFactory->getSecureChannelObject();
> 
> m_pFactory is an instance of ChannelFactory. Note that I have changed
> the name SecureChannelFactory to ChannelFactory. We can have another
> method in SecureChannelFactory called 
> getChannelObject() which return a norman Channel object. So we can have
> a normal channel pluggable as well(Like different business need
> their own secure channel implemenations they might also need their own
> normal channel implemenation)
> So instead of
> m_pChannel = new Channel ();
> we hae
> m_pChannel = m_pFactory->getChannelObject();
> 
> What do you think?

It is a good idea to apply factory pattern here. However, we would have only two possibilities
here, either http or https. Given that, do we need to make things complex here?
IMHO, keeping the current structure is good for the sake of KISS.

Thanks,
Samisa...

> 
> thanks
> damitha
> >  
> > Thanks,
> > Samisa...
> > 
> > Damitha Kumarage <da...@opensource.lk> wrote:
> >         Hi John,
> >         On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> >         > +1 loose coupling for compile time pls.
> >         I don't think that there is such comile time tight coupling.
> >         Once the existing
> >         window problem solved this should be ok
> >         
> >         > 
> >         > IBM has its own implementation of ssl so we don't want to
> >         confuse 
> >         > the two
> >         > (I can imagine some other software shops might also want to
> >         use 
> >         > their own impl.)
> >         I think SSLChannel.hpp is for that. I have given just one
> >         implementation for
> >         that. Others could give an different impl. If this interface
> >         is not flexible
> >         enough suggestions are accepted
> >         
> >         thanks
> >         damitha
> >         > 
> >         > John Hawkins
> >         > 
> >         > Samisa Abeysinghe 
> >         > > e@yahoo.com> 
> >         > To Apache AXIS 
> >         > C Developers List 30/11/2004 12:44 > c-dev@ws.apache.org> 
> >         > cc
> >         > 
> >         > Please respond to 
> >         > Subject "Apache AXIS C Re: Axis2Transport 
> >         > does not build Developers List" on windows
> >         > 
> >         > Hi Damitha,
> >         > Can we move all the SSL specific stuff into ssl sub folder?
> >         > I got the feeling that there is some level of tight coupling
> >         > here with the non-SSL stuff. (It is annoying that I cannot
> >         compile a 
> >         > module because of something that I am not going to use)
> >         > 
> >         > Re PlatformAutoSense.hpp: This can be a reason, as I
> >         mentioned 
> >         > in an early mail. If so, does any one know how to override
> >         an 
> >         > already included file so that we could override winsock.h
> >         with 
> >         > winsock2.h (or does it sound silly :( ? ) In other words, is
> >         there 
> >         > any way to enfoce the Win platform header to include
> >         winsock2.h all 
> >         > the time?
> >         > 
> >         > Thanks,
> >         > Samisa...
> >         > 
> >         > Damitha Kumarage wrote:
> >         > Hi Samisa,
> >         > The only different with the older ones is that now it does
> >         not 
> >         > contain ssl speicfic header files. Using a SSLChannelFactory
> >         it 
> >         > dyanmically load the ssl channel library and call its
> >         methods. The 
> >         > problem causing could be from including
> >         PlatformAutoSense.hpp in
> >         SSLChannelFactory.hpp
> >         > 
> >         > damitha
> >         > 
> >         > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe
> >         wrote
> >         > > > Was the vc project for Axis2Transport changed to include
> >         the new
> >         > files? If
> >         > > > not what are the files that need to be included in this
> >         project?
> >         > >
> >         > > I have no idea on this. I think the files have not been
> >         added.
> >         > >
> >         > > Just to let you know:
> >         > > To help find a solution, I copied older versions of
> >         > > SecureChannel.cpp and SecureChannel.h into the folder and
> >         built 
> >         > the > project and the build was successful. > > I am n! ot
> >         sure why 
> >         > the latest SecureChannel.cpp and SecureChannel.h > are
> >         causing problems.
> >         > >
> >         > > Samisa...
> >         > >
> >         > > sanjaya singharage wrote:
> >         > > Was the vc project for Axis2Transport changed to include
> >         the new
> >         > > files? If not what are the files that need to be included
> >         in this
> >         > project?
> >         > >
> >         > > sanjaya.
> >         > > ----- Original Message -----
> >         > > From: "Samisa Abeysinghe"
> >         > > To: "Apache AXIS C Developers List"
> >         > > Sent: Tuesday, November 30, 2004 5:32 PM
> >         > > Subject: Re: Axis2Transport does not build on windows
> >         > >
> >         > > > Yes; AxisSocketUtils is not used anywhere.
> >         > > >
> >         > > > Looking at the email list, if I say changes to
> >         SecureChannel has
> >         > started
> >         > > causing problems, am I
> >         > > > correct? If so I could revert back and try.
> >         > > >
> >         > > > Thanks,
> >         > > > Samisa...
> >         > > >
> >         > > > --- sanjaya singharage wrote:
> >         > > >
> >         > > > > win! sock.h is included in xisSocketUtils.cpp, but
> >         this 
> >         > doesn't seem to be > > > used anywhere. > > > > > > sanjaya.
> >         > > > > 
> >         > > > ----- Original Message ----- > > > From: "Samisa
> >         Abeysinghe" > > 
> >         > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday,
> >         November 
> >         > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not
> >         build on 
> >         > windows > > > > > > > > > > None of the source files include
> >         > winsock.h but winsock2.h. > > > > However, windows.h
> >         included in > > 
> >         > > src/platforms/windows/PlatformSpecificWindows.hpp seems to
> >         make 
> >         > the > > > > compiler run into confusion. > > > > I still
> >         could not 
> >         > find a solution. > > > > > > > > Waht are we doing wrong
> >         here? I 
> 
=== message truncated ===



		
__________________________________ 
Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good.
http://celebrity.mail.yahoo.com

Re: Axis2Transport does not build on windows

Posted by damitha kumarage <da...@opensource.lk>.
Hi Samisa,John, Fred,

On Wed, 2004-12-01 at 13:28, Samisa Abeysinghe wrote:
> Hi Damitha,
>  
> > I think SSLChannel.hpp is for that. I have given just one
> implementation for
> > that. Others could give an different impl. If this interface is not
> flexible
> > enough suggestions are accepted
> 
> I have a differnt view. I think SecureChannle.hpp is for that. And SSL
> stuff should be in ssl folder. And SSLChannel should inherit from the
> secure channel. That would give us a more clearner hierarchy.

I too agree SecureChannel.hpp is for that. So I have changes to keep the
SecureChannel.hpp as the base class. I completely removed SSLChannel
class. Fred has already put required methods in SecureChannel.hpp
ie. readSecureSocket, writeSecureSocket etc.

So I have my library implemenation in ssl folder. I have
OpesSSLChannel.hpp derived from SecureChannel.hpp. Earlier it is
deriving from SSLChannel.hpp.

>  
> The fact that we need to have SSLChannelFactory in the Axis2Transport
> project does not sound correct to me. That should be in a seperate
> project - say SSLTransport project. (Please have a look at how the
> coplilation problem was solved for windows)

Here I have a suggestion. 
In Axis2Transport class on setEndpointUri method  we have
       m_pChannel = (Channel *) new SecureChannel ();

This where SecureChannel class is instantiated depending on the url
is https or http.
I suggest to have this code instead of the above.(I have implemented
this in my new version)

       m_pChannel = m_pFactory->getSecureChannelObject();

m_pFactory is an instance of ChannelFactory. Note that I have changed
the name SecureChannelFactory to ChannelFactory. We can have another
method in SecureChannelFactory called 
getChannelObject() which return a norman Channel object. So we can have
a normal channel pluggable as well(Like different business need
their own secure channel implemenations they might also need their own
normal channel implemenation)
So instead of
m_pChannel = new Channel ();
we hae
m_pChannel = m_pFactory->getChannelObject();

What do you think?

thanks
damitha
>  
> Thanks,
> Samisa...
> 
> Damitha Kumarage <da...@opensource.lk> wrote:
>         Hi John,
>         On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
>         > +1 loose coupling for compile time pls.
>         I don't think that there is such comile time tight coupling.
>         Once the existing
>         window problem solved this should be ok
>         
>         > 
>         > IBM has its own implementation of ssl so we don't want to
>         confuse 
>         > the two
>         > (I can imagine some other software shops might also want to
>         use 
>         > their own impl.)
>         I think SSLChannel.hpp is for that. I have given just one
>         implementation for
>         that. Others could give an different impl. If this interface
>         is not flexible
>         enough suggestions are accepted
>         
>         thanks
>         damitha
>         > 
>         > John Hawkins
>         > 
>         > Samisa Abeysinghe 
>         > > e@yahoo.com> 
>         > To Apache AXIS 
>         > C Developers List 30/11/2004 12:44 > c-dev@ws.apache.org> 
>         > cc
>         > 
>         > Please respond to 
>         > Subject "Apache AXIS C Re: Axis2Transport 
>         > does not build Developers List" on windows
>         > 
>         > Hi Damitha,
>         > Can we move all the SSL specific stuff into ssl sub folder?
>         > I got the feeling that there is some level of tight coupling
>         > here with the non-SSL stuff. (It is annoying that I cannot
>         compile a 
>         > module because of something that I am not going to use)
>         > 
>         > Re PlatformAutoSense.hpp: This can be a reason, as I
>         mentioned 
>         > in an early mail. If so, does any one know how to override
>         an 
>         > already included file so that we could override winsock.h
>         with 
>         > winsock2.h (or does it sound silly :( ? ) In other words, is
>         there 
>         > any way to enfoce the Win platform header to include
>         winsock2.h all 
>         > the time?
>         > 
>         > Thanks,
>         > Samisa...
>         > 
>         > Damitha Kumarage wrote:
>         > Hi Samisa,
>         > The only different with the older ones is that now it does
>         not 
>         > contain ssl speicfic header files. Using a SSLChannelFactory
>         it 
>         > dyanmically load the ssl channel library and call its
>         methods. The 
>         > problem causing could be from including
>         PlatformAutoSense.hpp in
>         SSLChannelFactory.hpp
>         > 
>         > damitha
>         > 
>         > On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe
>         wrote
>         > > > Was the vc project for Axis2Transport changed to include
>         the new
>         > files? If
>         > > > not what are the files that need to be included in this
>         project?
>         > >
>         > > I have no idea on this. I think the files have not been
>         added.
>         > >
>         > > Just to let you know:
>         > > To help find a solution, I copied older versions of
>         > > SecureChannel.cpp and SecureChannel.h into the folder and
>         built 
>         > the > project and the build was successful. > > I am n! ot
>         sure why 
>         > the latest SecureChannel.cpp and SecureChannel.h > are
>         causing problems.
>         > >
>         > > Samisa...
>         > >
>         > > sanjaya singharage wrote:
>         > > Was the vc project for Axis2Transport changed to include
>         the new
>         > > files? If not what are the files that need to be included
>         in this
>         > project?
>         > >
>         > > sanjaya.
>         > > ----- Original Message -----
>         > > From: "Samisa Abeysinghe"
>         > > To: "Apache AXIS C Developers List"
>         > > Sent: Tuesday, November 30, 2004 5:32 PM
>         > > Subject: Re: Axis2Transport does not build on windows
>         > >
>         > > > Yes; AxisSocketUtils is not used anywhere.
>         > > >
>         > > > Looking at the email list, if I say changes to
>         SecureChannel has
>         > started
>         > > causing problems, am I
>         > > > correct? If so I could revert back and try.
>         > > >
>         > > > Thanks,
>         > > > Samisa...
>         > > >
>         > > > --- sanjaya singharage wrote:
>         > > >
>         > > > > win! sock.h is included in xisSocketUtils.cpp, but
>         this 
>         > doesn't seem to be > > > used anywhere. > > > > > > sanjaya.
>         > > > > 
>         > > > ----- Original Message ----- > > > From: "Samisa
>         Abeysinghe" > > 
>         > > To: "Apache AXIS C Developers List" > > > Sent: Tuesday,
>         November 
>         > 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not
>         build on 
>         > windows > > > > > > > > > > None of the source files include
>         > winsock.h but winsock2.h. > > > > However, windows.h
>         included in > > 
>         > > src/platforms/windows/PlatformSpecificWindows.hpp seems to
>         make 
>         > the > > > > compiler run into confusion. > > > > I still
>         could not 
>         > find a solution. > > > > > > > > Waht are we doing wrong
>         here? I 
>         > think before using platform headers it > > > worked. I am
>         not sure 
>         > if > > > > thi! s problem came to life with platform
>         headers. > > > 
>         > > > > > > Samisa... > > > > > > > > --- sanjaya singharage
>         wrote: > 
>         > > > > > > > > > --------------------Configuration:
>         Axis2Transport - Win32
>         > > > > Debug--------------------
>         > > > > > > Compiling...
>         > > > > > > SecureChannel.cpp
>         > > > > > >
>         > > > >
>         > >
>         > > d:\san\works\checkouts\head5\ws-
>         > > axis\c\include\axis\axisexception.hpp(164) :
>         > > > > warning C4275: non
>         > > > > > > dll-interface class 'exception' used as base for
>         dll-interface
>         > class
>         > > > > 'axiscpp::AxisException'
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\exception(50) : see declaration of
>         > > > > > > 'exception'
>         > > > > > >
>         > > > >
>         > >
>         > >
>         > 
>         >
>         d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
>         > 
>         > > > > ption.h(51) :
>         > > > > > > warning C4251: 'm_sMessage' : class
>         'std::basic_string> >
>         > std::char_traits,class
>         > > > > > > std::allocator >' needs to have dll-interface to
>         be used
>         > > > > > > by clients of class 'AxisTransportException'
>         > > > > > > c:\program files\microsoft visual
>         > studio\vc98\include\winsock2.h(99)
>         > > :
>         > > > > error C2011: 'fd_set' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(134) :
>         > > > > warning C4005: 'FD_SET'
>         > > > > > > : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(83) : see previous
>         > > > > > > definition of 'FD_SET'
>         > > > >! > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(143) :
>         > > > > error C2011: 'timeval' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(199) :
>         > > > > error C2011: 'hostent' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(212) :
>         > > > > error C2011: 'netent' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(219) :
>         > > > > error C2011: 'servent' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(226) :
>         > > > > error C2011: 'protoent'
>         > > > > > > : 'struct'! type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(310) :
>         > > > > error C2011: 'in_addr' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(368) :
>         > > > > error C2011:
>         > > > > > > 'sockaddr_in' : 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(378) :
>         > > > > error C2011: 'WSAData' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(430) :
>         > > > > warning C4005:
>         > > > > > > 'SO_DONTLINGER' : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(391) : see previous
>         > > > >! > > definition of 'SO_DONTLINGER'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(483) :
>         > > > > warning C4005: 'AF_IPX'
>         > > > > > > : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(449) : see previous
>         > > > > > > definition of 'AF_IPX'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(506) :
>         > > > > warning C4005: 'AF_MAX'
>         > > > > > > : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(468) : see previous
>         > > > > > > definition of 'AF_MAX'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(512) :
>         > > > > error C2011: 'sockaddr'
>         > > > > > > : 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(521) :
>         > > > > error C2011: 'sockproto'
>         > > > > > > : 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(560) :
>         > > > > error C2011: 'linger' :
>         > > > > > > 'struct' type redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(573) :
>         > > > > warning C4005:
>         > > > > > > 'SOMAXCONN' : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(533) : see previous
>         > > > > > > definition of 'SOMAXCONN'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(598) :
>         > > > > warning C4005: 'FD_READ'
>         > > > > > &g! t; : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(551) : see previous
>         > > > > > > definition of 'FD_READ'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(601) :
>         > > > > warning C4005:
>         > > > > > > 'FD_WRITE' : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(552) : see previous
>         > > > > > > definition of 'FD_WRITE'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(604) :
>         > > > > warning C4005: 'FD_OOB'
>         > > > > > > : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(553) : see previous
>         > > > > > > definition of 'FD_OOB'
>         > > > > > ! > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(607) :
>         > > > > warning C4005:
>         > > > > > > 'FD_ACCEPT' : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(554) : see previous
>         > > > > > > definition of 'FD_ACCEPT'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(610) :
>         > > > > warning C4005:
>         > > > > > > 'FD_CONNECT' : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(555) : see previous
>         > > > > > > definition of 'FD_CONNECT'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(613) :
>         > > > > warning C4005:
>         > > > > > > 'FD_CLOSE' : macro redefinition
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(556) : see previous
>         > > > > > > definition of 'FD_CLOSE'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1427) :
>         > > > > error C2375: 'accept' :
>         > > > > > > redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(707) : see declaration
>         > > > > > > of 'accept'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1448) :
>         > > > > error C2375: 'bind' :
>         > > > > > > redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(710) : see declaration
>         > > > > > > of 'bind'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1467) :
>         > > > > error C2375:
>         > > > > > > 'closesocket' : redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(712) : see declaration
>         > > > > > > of 'closesocket'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1486) :
>         > > > > error C2375: 'connect'
>         > > > > > > : redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(714) : see declaration
>         > > > > > > of 'connect'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1507) :
>         > > > > error C2375:
>         > > > > > > 'ioctlsocket' : redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual> > >
>         > studio\vc98\include\winsock.h(716) : see declaration
>         > > > > > > of 'ioctlsocket'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1528) :
>         > > > > error C2375:
>         > > > > > > 'getpeername' : redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(718) : see declaration
>         > > > > > > of 'getpeername'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1549) :
>         > > > > error C2375:
>         > > > > > > 'getsockname' : redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(721) : see declaration
>         > > > > > > of 'getsockname'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1572) :
>         > > > > error C2375:
>         > > > > > > 'getsockopt' : redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(724) : see declaration
>         > > > > > > of 'getsockopt'
>         > > > > > > c:\program files\microsoft visual
>         > > studio\vc98\include\winsock2.h(1593) :
>         > > > > error C2375: 'htonl' :
>         > > > > > > redefinition; different linkage
>         > > > > > > c:\program files\microsoft visual
>         > > > > studio\vc98\include\winsock.h(727) : see declaration
>         > > > > > > of 'htonl'
>         > > > >
>         > > > === message truncated ===
>         > > >
>         > > >
>         > > >
>         > > >
>         > > > __________________________________
>         > > > Do you Yahoo!?
>         > > > The all-new My Yahoo! - What will yours do?
>         > > > http://my.yahoo.com
>         > > >
>         > >
>         > >
>         > > ---------------------------------
>         > > Do you Yahoo!?
>         [UTF-8?]> > Meet the all-new My Yahoo! – Try it today!
>         > 
>         > --
>         > Damitha Kumarage
>         > hSenid Software International (PVT) Ltd
>         > damitha@hSenid.lk
>         > 
>         > Lanka Software Foundation (http://www.opensource.lk)
>         > 
>         > Do you Yahoo!?
>         [UTF-8?]> Meet the all-new My Yahoo! – Try it today!
>         
>         
>         --
>         Damitha Kumarage
>         hSenid Software International (PVT) Ltd
>         damitha@hSenid.lk
>         
>         Lanka Software Foundation (http://www.opensource.lk)
>         
> 
> ______________________________________________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.


Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi Damitha,
 
> I think SSLChannel.hpp is for that. I have given just one implementation for
> that. Others could give an different impl. If this interface is not flexible
> enough suggestions are accepted

I have a differnt view. I think SecureChannle.hpp is for that. And SSL stuff should be in ssl folder. And SSLChannel should inherit from the secure channel. That would give us a more clearner hierarchy.
 
The fact that we need to have SSLChannelFactory in the Axis2Transport project does not sound correct to me. That should be in a seperate project - say SSLTransport project. (Please have a look at how the coplilation problem was solved for windows)
 
Thanks,
Samisa...

Damitha Kumarage <da...@opensource.lk> wrote:
Hi John,
On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> +1 loose coupling for compile time pls.
I don't think that there is such comile time tight coupling. Once the existing
window problem solved this should be ok

> 
> IBM has its own implementation of ssl so we don't want to confuse 
> the two
> (I can imagine some other software shops might also want to use 
> their own impl.)
I think SSLChannel.hpp is for that. I have given just one implementation for
that. Others could give an different impl. If this interface is not flexible
enough suggestions are accepted

thanks
damitha
> 
> John Hawkins
> 
> Samisa Abeysinghe 
> > e@yahoo.com> 
> To Apache AXIS 
> C Developers List 30/11/2004 12:44 > c-dev@ws.apache.org> 
> cc
> 
> Please respond to 
> Subject "Apache AXIS C Re: Axis2Transport 
> does not build Developers List" on windows
> 
> Hi Damitha,
> Can we move all the SSL specific stuff into ssl sub folder?
> I got the feeling that there is some level of tight coupling 
> here with the non-SSL stuff. (It is annoying that I cannot compile a 
> module because of something that I am not going to use)
> 
> Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> in an early mail. If so, does any one know how to override an 
> already included file so that we could override winsock.h with 
> winsock2.h (or does it sound silly :( ? ) In other words, is there 
> any way to enfoce the Win platform header to include winsock2.h all 
> the time?
> 
> Thanks,
> Samisa...
> 
> Damitha Kumarage wrote:
> Hi Samisa,
> The only different with the older ones is that now it does not 
> contain ssl speicfic header files. Using a SSLChannelFactory it 
> dyanmically load the ssl channel library and call its methods. The 
> problem causing could be from including PlatformAutoSense.hpp in
SSLChannelFactory.hpp
> 
> damitha
> 
> On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > > Was the vc project for Axis2Transport changed to include the new
> files? If
> > > not what are the files that need to be included in this project?
> >
> > I have no idea on this. I think the files have not been added.
> >
> > Just to let you know:
> > To help find a solution, I copied older versions of
> > SecureChannel.cpp and SecureChannel.h into the folder and built 
> the > project and the build was successful. > > I am n! ot sure why 
> the latest SecureChannel.cpp and SecureChannel.h > are causing problems.
> >
> > Samisa...
> >
> > sanjaya singharage wrote:
> > Was the vc project for Axis2Transport changed to include the new
> > files? If not what are the files that need to be included in this
> project?
> >
> > sanjaya.
> > ----- Original Message -----
> > From: "Samisa Abeysinghe"
> > To: "Apache AXIS C Developers List"
> > Sent: Tuesday, November 30, 2004 5:32 PM
> > Subject: Re: Axis2Transport does not build on windows
> >
> > > Yes; AxisSocketUtils is not used anywhere.
> > >
> > > Looking at the email list, if I say changes to SecureChannel has
> started
> > causing problems, am I
> > > correct? If so I could revert back and try.
> > >
> > > Thanks,
> > > Samisa...
> > >
> > > --- sanjaya singharage wrote:
> > >
> > > > win! sock.h is included in xisSocketUtils.cpp, but this 
> doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > > 
> > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > > 
> > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November 
> 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on 
> windows > > > > > > > > > > None of the source files include 
> winsock.h but winsock2.h. > > > > However, windows.h included in > > 
> > src/platforms/windows/PlatformSpecificWindows.hpp seems to make 
> the > > > > compiler run into confusion. > > > > I still could not 
> find a solution. > > > > > > > > Waht are we doing wrong here? I 
> think before using platform headers it > > > worked. I am not sure 
> if > > > > thi! s problem came to life with platform headers. > > > 
> > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: > 
> > > > > > > > > --------------------Configuration: Axis2Transport - Win32
> > > > Debug--------------------
> > > > > > Compiling...
> > > > > > SecureChannel.cpp
> > > > > >
> > > >
> >
> > d:\san\works\checkouts\head5\ws-
> > axis\c\include\axis\axisexception.hpp(164) :
> > > > warning C4275: non
> > > > > > dll-interface class 'exception' used as base for dll-interface
> class
> > > > 'axiscpp::AxisException'
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\exception(50) : see declaration of
> > > > > > 'exception'
> > > > > >
> > > >
> >
> >
> 
> d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> 
> > > > ption.h(51) :
> > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
> std::char_traits,class
> > > > > > std::allocator >' needs to have dll-interface to be used
> > > > > > by clients of class 'AxisTransportException'
> > > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(99)
> > :
> > > > error C2011: 'fd_set' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(134) :
> > > > warning C4005: 'FD_SET'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(83) : see previous
> > > > > > definition of 'FD_SET'
> > > >! > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(143) :
> > > > error C2011: 'timeval' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(199) :
> > > > error C2011: 'hostent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(212) :
> > > > error C2011: 'netent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(219) :
> > > > error C2011: 'servent' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(226) :
> > > > error C2011: 'protoent'
> > > > > > : 'struct'! type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(310) :
> > > > error C2011: 'in_addr' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(368) :
> > > > error C2011:
> > > > > > 'sockaddr_in' : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(378) :
> > > > error C2011: 'WSAData' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(430) :
> > > > warning C4005:
> > > > > > 'SO_DONTLINGER' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(391) : see previous
> > > >! > > definition of 'SO_DONTLINGER'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(483) :
> > > > warning C4005: 'AF_IPX'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(449) : see previous
> > > > > > definition of 'AF_IPX'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(506) :
> > > > warning C4005: 'AF_MAX'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(468) : see previous
> > > > > > definition of 'AF_MAX'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(512) :
> > > > error C2011: 'sockaddr'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(521) :
> > > > error C2011: 'sockproto'
> > > > > > : 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(560) :
> > > > error C2011: 'linger' :
> > > > > > 'struct' type redefinition
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(573) :
> > > > warning C4005:
> > > > > > 'SOMAXCONN' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(533) : see previous
> > > > > > definition of 'SOMAXCONN'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(598) :
> > > > warning C4005: 'FD_READ'
> > > > > &g! t; : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(551) : see previous
> > > > > > definition of 'FD_READ'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(601) :
> > > > warning C4005:
> > > > > > 'FD_WRITE' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(552) : see previous
> > > > > > definition of 'FD_WRITE'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(604) :
> > > > warning C4005: 'FD_OOB'
> > > > > > : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(553) : see previous
> > > > > > definition of 'FD_OOB'
> > > > > ! > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(607) :
> > > > warning C4005:
> > > > > > 'FD_ACCEPT' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(554) : see previous
> > > > > > definition of 'FD_ACCEPT'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(610) :
> > > > warning C4005:
> > > > > > 'FD_CONNECT' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(555) : see previous
> > > > > > definition of 'FD_CONNECT'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(613) :
> > > > warning C4005:
> > > > > > 'FD_CLOSE' : macro redefinition
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(556) : see previous
> > > > > > definition of 'FD_CLOSE'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1427) :
> > > > error C2375: 'accept' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(707) : see declaration
> > > > > > of 'accept'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1448) :
> > > > error C2375: 'bind' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(710) : see declaration
> > > > > > of 'bind'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1467) :
> > > > error C2375:
> > > > > > 'closesocket' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(712) : see declaration
> > > > > > of 'closesocket'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1486) :
> > > > error C2375: 'connect'
> > > > > > : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(714) : see declaration
> > > > > > of 'connect'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1507) :
> > > > error C2375:
> > > > > > 'ioctlsocket' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual> > >
> studio\vc98\include\winsock.h(716) : see declaration
> > > > > > of 'ioctlsocket'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1528) :
> > > > error C2375:
> > > > > > 'getpeername' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(718) : see declaration
> > > > > > of 'getpeername'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1549) :
> > > > error C2375:
> > > > > > 'getsockname' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(721) : see declaration
> > > > > > of 'getsockname'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1572) :
> > > > error C2375:
> > > > > > 'getsockopt' : redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(724) : see declaration
> > > > > > of 'getsockopt'
> > > > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock2.h(1593) :
> > > > error C2375: 'htonl' :
> > > > > > redefinition; different linkage
> > > > > > c:\program files\microsoft visual
> > > > studio\vc98\include\winsock.h(727) : see declaration
> > > > > > of 'htonl'
> > > >
> > > === message truncated ===
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The all-new My Yahoo! - What will yours do?
> > > http://my.yahoo.com
> > >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
[UTF-8?]> > Meet the all-new My Yahoo! – Try it today!
> 
> --
> Damitha Kumarage
> hSenid Software International (PVT) Ltd
> damitha@hSenid.lk
> 
> Lanka Software Foundation (http://www.opensource.lk)
> 
> Do you Yahoo!?
[UTF-8?]> Meet the all-new My Yahoo! – Try it today!


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - You care about security. So do we.

Re: Axis2Transport does not build on windows

Posted by Damitha Kumarage <da...@opensource.lk>.
Hi John,
On Tue, 30 Nov 2004 13:02:05 +0000, John Hawkins wrote
> +1 loose coupling for compile time pls.
I don't think that there is such comile time tight coupling. Once the existing
 window problem solved this should be ok

> 
> IBM has its own implementation of ssl so we don't want to confuse 
> the two
> (I can imagine some other software shops might also want to use 
> their own impl.)
I think SSLChannel.hpp is for that. I have given just one implementation for
that. Others could give an different impl. If this interface is not flexible
enough suggestions are accepted

thanks
damitha
> 
> John Hawkins
> 
>              Samisa Abeysinghe                                       
>                    <samisa_abeysingh                                 
>                          e@yahoo.com>                                
>                To                                        Apache AXIS 
> C Developers List                    30/11/2004 12:44          <axis-
> c-dev@ws.apache.org>                                                 
>                                  cc
> 
>              Please respond to                                     
> Subject               "Apache AXIS C           Re: Axis2Transport 
> does not build                Developers List"          on windows
> 
> Hi Damitha,
>     Can we move all the SSL specific stuff into ssl sub folder?
>     I got the feeling that there is some level of tight coupling 
> here with the non-SSL stuff. (It is annoying that I cannot compile a 
> module because of something that I am not going to use)
> 
>     Re PlatformAutoSense.hpp: This can be a reason, as I mentioned 
> in an early mail. If so, does any one know how to override an 
> already included file so that we could override winsock.h with 
> winsock2.h (or does it sound silly :( ?  ) In other words, is there 
> any way to enfoce the Win platform header to include winsock2.h all 
> the time?
> 
> Thanks,
> Samisa...
> 
> Damitha Kumarage <da...@opensource.lk> wrote:
>  Hi Samisa,
>  The only different with the older ones is that now it does not 
> contain ssl speicfic header files. Using a SSLChannelFactory it 
> dyanmically load the ssl channel library and call its methods. The 
> problem causing could be from including PlatformAutoSense.hpp in
SSLChannelFactory.hpp
> 
>  damitha
> 
>  On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
>  > > Was the vc project for Axis2Transport changed to include the new
>  files? If
>  > > not what are the files that need to be included in this project?
>  >
>  > I have no idea on this. I think the files have not been added.
>  >
>  > Just to let you know:
>  > To help find a solution, I copied older versions of
>  > SecureChannel.cpp and SecureChannel.h into the folder and built 
> the > project and the build was successful. > > I am n! ot sure why 
> the latest SecureChannel.cpp and SecureChannel.h > are causing problems.
>  >
>  > Samisa...
>  >
>  > sanjaya singharage wrote:
>  > Was the vc project for Axis2Transport changed to include the new
>  > files? If not what are the files that need to be included in this
>  project?
>  >
>  > sanjaya.
>  > ----- Original Message -----
>  > From: "Samisa Abeysinghe"
>  > To: "Apache AXIS C Developers List"
>  > Sent: Tuesday, November 30, 2004 5:32 PM
>  > Subject: Re: Axis2Transport does not build on windows
>  >
>  > > Yes; AxisSocketUtils is not used anywhere.
>  > >
>  > > Looking at the email list, if I say changes to SecureChannel has
>  started
>  > causing problems, am I
>  > > correct? If so I could revert back and try.
>  > >
>  > > Thanks,
>  > > Samisa...
>  > >
>  > > --- sanjaya singharage wrote:
>  > >
>  > > > win! sock.h is included in xisSocketUtils.cpp, but this 
> doesn't seem to be > > > used anywhere. > > > > > > sanjaya. > > > > 
> > > ----- Original Message ----- > > > From: "Samisa Abeysinghe" > > 
> > To: "Apache AXIS C Developers List" > > > Sent: Tuesday, November 
> 30, 2004 5:02 PM > > > Subject: Re: Axis2Transport does not build on 
> windows > > > > > > > > > > None of the source files include 
> winsock.h but winsock2.h. > > > > However, windows.h included in > > 
> > src/platforms/windows/PlatformSpecificWindows.hpp seems to make 
> the > > > > compiler run into confusion. > > > > I still could not 
> find a solution. > > > > > > > > Waht are we doing wrong here? I 
> think before using platform headers it > > > worked. I am not sure 
> if > > > > thi! s problem came to life with platform headers. > > > 
> > > > > > Samisa... > > > > > > > > --- sanjaya singharage wrote: > 
> > > > > > > > > --------------------Configuration: Axis2Transport - Win32
>  > > > Debug--------------------
>  > > > > > Compiling...
>  > > > > > SecureChannel.cpp
>  > > > > >
>  > > >
>  >
>  > d:\san\works\checkouts\head5\ws-
>  > axis\c\include\axis\axisexception.hpp(164) :
>  > > > warning C4275: non
>  > > > > > dll-interface class 'exception' used as base for dll-interface
>  class
>  > > > 'axiscpp::AxisException'
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\exception(50) : see declaration of
>  > > > > > 'exception'
>  > > > > >
>  > > >
>  >
>  >
> 
>  d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> 
>  > > > ption.h(51) :
>  > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
>  std::char_traits,class
>  > > > > > std::allocator >' needs to have dll-interface to be used
>  > > > > > by clients of class 'AxisTransportException'
>  > > > > > c:\program files\microsoft visual
>  studio\vc98\include\winsock2.h(99)
>  > :
>  > > > error C2011: 'fd_set' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(134) :
>  > > > warning C4005: 'FD_SET'
>  > > > > > : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(83) : see previous
>  > > > > > definition of 'FD_SET'
>  > > >! > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(143) :
>  > > > error C2011: 'timeval' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(199) :
>  > > > error C2011: 'hostent' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(212) :
>  > > > error C2011: 'netent' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(219) :
>  > > > error C2011: 'servent' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(226) :
>  > > > error C2011: 'protoent'
>  > > > > > : 'struct'! type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(310) :
>  > > > error C2011: 'in_addr' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(368) :
>  > > > error C2011:
>  > > > > > 'sockaddr_in' : 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(378) :
>  > > > error C2011: 'WSAData' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(430) :
>  > > > warning C4005:
>  > > > > > 'SO_DONTLINGER' : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(391) : see previous
>  > > >! > > definition of 'SO_DONTLINGER'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(483) :
>  > > > warning C4005: 'AF_IPX'
>  > > > > > : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(449) : see previous
>  > > > > > definition of 'AF_IPX'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(506) :
>  > > > warning C4005: 'AF_MAX'
>  > > > > > : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(468) : see previous
>  > > > > > definition of 'AF_MAX'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(512) :
>  > > > error C2011: 'sockaddr'
>  > > > > > : 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(521) :
>  > > > error C2011: 'sockproto'
>  > > > > > : 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(560) :
>  > > > error C2011: 'linger' :
>  > > > > > 'struct' type redefinition
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(573) :
>  > > > warning C4005:
>  > > > > > 'SOMAXCONN' : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(533) : see previous
>  > > > > > definition of 'SOMAXCONN'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(598) :
>  > > > warning C4005: 'FD_READ'
>  > > > > &g! t; : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(551) : see previous
>  > > > > > definition of 'FD_READ'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(601) :
>  > > > warning C4005:
>  > > > > > 'FD_WRITE' : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(552) : see previous
>  > > > > > definition of 'FD_WRITE'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(604) :
>  > > > warning C4005: 'FD_OOB'
>  > > > > > : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(553) : see previous
>  > > > > > definition of 'FD_OOB'
>  > > > > ! > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(607) :
>  > > > warning C4005:
>  > > > > > 'FD_ACCEPT' : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(554) : see previous
>  > > > > > definition of 'FD_ACCEPT'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(610) :
>  > > > warning C4005:
>  > > > > > 'FD_CONNECT' : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(555) : see previous
>  > > > > > definition of 'FD_CONNECT'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(613) :
>  > > > warning C4005:
>  > > > > > 'FD_CLOSE' : macro redefinition
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(556) : see previous
>  > > > > > definition of 'FD_CLOSE'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1427) :
>  > > > error C2375: 'accept' :
>  > > > > > redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(707) : see declaration
>  > > > > > of 'accept'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1448) :
>  > > > error C2375: 'bind' :
>  > > > > > redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(710) : see declaration
>  > > > > > of 'bind'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1467) :
>  > > > error C2375:
>  > > > > > 'closesocket' : redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(712) : see declaration
>  > > > > > of 'closesocket'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1486) :
>  > > > error C2375: 'connect'
>  > > > > > : redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(714) : see declaration
>  > > > > > of 'connect'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1507) :
>  > > > error C2375:
>  > > > > > 'ioctlsocket' : redefinition; different linkage
>  > > > > > c:\program files\microsoft visual> > >
>  studio\vc98\include\winsock.h(716) : see declaration
>  > > > > > of 'ioctlsocket'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1528) :
>  > > > error C2375:
>  > > > > > 'getpeername' : redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(718) : see declaration
>  > > > > > of 'getpeername'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1549) :
>  > > > error C2375:
>  > > > > > 'getsockname' : redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(721) : see declaration
>  > > > > > of 'getsockname'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1572) :
>  > > > error C2375:
>  > > > > > 'getsockopt' : redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(724) : see declaration
>  > > > > > of 'getsockopt'
>  > > > > > c:\program files\microsoft visual
>  > studio\vc98\include\winsock2.h(1593) :
>  > > > error C2375: 'htonl' :
>  > > > > > redefinition; different linkage
>  > > > > > c:\program files\microsoft visual
>  > > > studio\vc98\include\winsock.h(727) : see declaration
>  > > > > > of 'htonl'
>  > > >
>  > > === message truncated ===
>  > >
>  > >
>  > >
>  > >
>  > > __________________________________
>  > > Do you Yahoo!?
>  > > The all-new My Yahoo! - What will yours do?
>  > > http://my.yahoo.com
>  > >
>  >
>  >
>  > ---------------------------------
>  > Do you Yahoo!?
[UTF-8?]>  > Meet the all-new My Yahoo! – Try it today!
> 
>  --
>  Damitha Kumarage
>  hSenid Software International (PVT) Ltd
>  damitha@hSenid.lk
> 
>  Lanka Software Foundation (http://www.opensource.lk)
> 
> Do you Yahoo!?
[UTF-8?]> Meet the all-new My Yahoo! – Try it today!


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


Re: Axis2Transport does not build on windows

Posted by John Hawkins <HA...@uk.ibm.com>.



+1 loose coupling for compile time pls.

IBM has its own implementation of ssl so we don't want to confuse the two
(I can imagine some other software shops might also want to use their own
impl.)

John Hawkins




                                                                           
             Samisa Abeysinghe                                             
             <samisa_abeysingh                                             
             e@yahoo.com>                                               To 
                                       Apache AXIS C Developers List       
             30/11/2004 12:44          <ax...@ws.apache.org>          
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
              "Apache AXIS C           Re: Axis2Transport does not build   
             Developers List"          on windows                          
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi Damitha,
    Can we move all the SSL specific stuff into ssl sub folder?
    I got the feeling that there is some level of tight coupling here with
the non-SSL stuff. (It is annoying that I cannot compile a module because
of something that I am not going to use)

    Re PlatformAutoSense.hpp: This can be a reason, as I mentioned in an
early mail. If so, does any one know how to override an already included
file so that we could override winsock.h with winsock2.h (or does it sound
silly :( ?  ) In other words, is there any way to enfoce the Win platform
header to include winsock2.h all the time?

Thanks,
Samisa...

Damitha Kumarage <da...@opensource.lk> wrote:
 Hi Samisa,
 The only different with the older ones is that now it does not contain ssl
 speicfic header files. Using a SSLChannelFactory it dyanmically load the
 ssl
 channel library and call its methods. The problem causing could be from
 including PlatformAutoSense.hpp in SSLChannelFactory.hpp

 damitha


 On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
 > > Was the vc project for Axis2Transport changed to include the new
 files? If
 > > not what are the files that need to be included in this project?
 >
 > I have no idea on this. I think the files have not been added.
 >
 > Just to let you know:
 > To help find a solution, I copied older versions of
 > SecureChannel.cpp and SecureChannel.h into the folder and built the
 > project and the build was successful.
 >
 > I am n! ot sure why the latest SecureChannel.cpp and SecureChannel.h
 > are causing problems.
 >
 > Samisa...
 >
 > sanjaya singharage wrote:
 > Was the vc project for Axis2Transport changed to include the new
 > files? If not what are the files that need to be included in this
 project?
 >
 > sanjaya.
 > ----- Original Message -----
 > From: "Samisa Abeysinghe"
 > To: "Apache AXIS C Developers List"
 > Sent: Tuesday, November 30, 2004 5:32 PM
 > Subject: Re: Axis2Transport does not build on windows
 >
 > > Yes; AxisSocketUtils is not used anywhere.
 > >
 > > Looking at the email list, if I say changes to SecureChannel has
 started
 > causing problems, am I
 > > correct? If so I could revert back and try.
 > >
 > > Thanks,
 > > Samisa...
 > >
 > > --- sanjaya singharage wrote:
 > >
 > > > win! sock.h is included in xisSocketUtils.cpp, but this doesn't seem
 to be
 > > > used anywhere.
 > > >
 > > > sanjaya.
 > > >
 > > > ----- Original Message -----
 > > > From: "Samisa Abeysinghe"
 > > > To: "Apache AXIS C Developers List"
 > > > Sent: Tuesday, November 30, 2004 5:02 PM
 > > > Subject: Re: Axis2Transport does not build on windows
 > > >
 > > >
 > > > > None of the source files include winsock.h but winsock2.h.
 > > > > However, windows.h included in
 > > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
 > > > > compiler run into confusion.
 > > > > I still could not find a solution.
 > > > >
 > > > > Waht are we doing wrong here? I think before using platform
 headers it
 > > > worked. I am not sure if
 > > > > thi! s problem came to life with platform headers.
 > > > >
 > > > > Samisa...
 > > > >
 > > > > --- sanjaya singharage wrote:
 > > > >
 > > > > > --------------------Configuration: Axis2Transport - Win32
 > > > Debug--------------------
 > > > > > Compiling...
 > > > > > SecureChannel.cpp
 > > > > >
 > > >
 >
 > d:\san\works\checkouts\head5\ws-
 > axis\c\include\axis\axisexception.hpp(164) :
 > > > warning C4275: non
 > > > > > dll-interface class 'exception' used as base for dll-interface
 class
 > > > 'axiscpp::AxisException'
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\exception(50) : see declaration of
 > > > > > 'exception'
 > > > > >
 > > >
 >
 >
 d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce

 > > > ption.h(51) :
 > > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
 std::char_traits,class
 > > > > > std::allocator >' needs to have dll-interface to be used
 > > > > > by clients of class 'AxisTransportException'
 > > > > > c:\program files\microsoft visual
 studio\vc98\include\winsock2.h(99)
 > :
 > > > error C2011: 'fd_set' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(134) :
 > > > warning C4005: 'FD_SET'
 > > > > > : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(83) : see previous
 > > > > > definition of 'FD_SET'
 > > >! > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(143) :
 > > > error C2011: 'timeval' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(199) :
 > > > error C2011: 'hostent' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(212) :
 > > > error C2011: 'netent' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(219) :
 > > > error C2011: 'servent' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(226) :
 > > > error C2011: 'protoent'
 > > > > > : 'struct'! type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(310) :
 > > > error C2011: 'in_addr' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(368) :
 > > > error C2011:
 > > > > > 'sockaddr_in' : 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(378) :
 > > > error C2011: 'WSAData' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(430) :
 > > > warning C4005:
 > > > > > 'SO_DONTLINGER' : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(391) : see previous
 > > >! > > definition of 'SO_DONTLINGER'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(483) :
 > > > warning C4005: 'AF_IPX'
 > > > > > : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(449) : see previous
 > > > > > definition of 'AF_IPX'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(506) :
 > > > warning C4005: 'AF_MAX'
 > > > > > : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(468) : see previous
 > > > > > definition of 'AF_MAX'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(512) :
 > > > error C2011: 'sockaddr'
 > > > > > : 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(521) :
 > > > error C2011: 'sockproto'
 > > > > > : 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(560) :
 > > > error C2011: 'linger' :
 > > > > > 'struct' type redefinition
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(573) :
 > > > warning C4005:
 > > > > > 'SOMAXCONN' : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(533) : see previous
 > > > > > definition of 'SOMAXCONN'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(598) :
 > > > warning C4005: 'FD_READ'
 > > > > &g! t; : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(551) : see previous
 > > > > > definition of 'FD_READ'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(601) :
 > > > warning C4005:
 > > > > > 'FD_WRITE' : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(552) : see previous
 > > > > > definition of 'FD_WRITE'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(604) :
 > > > warning C4005: 'FD_OOB'
 > > > > > : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(553) : see previous
 > > > > > definition of 'FD_OOB'
 > > > > ! > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(607) :
 > > > warning C4005:
 > > > > > 'FD_ACCEPT' : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(554) : see previous
 > > > > > definition of 'FD_ACCEPT'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(610) :
 > > > warning C4005:
 > > > > > 'FD_CONNECT' : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(555) : see previous
 > > > > > definition of 'FD_CONNECT'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(613) :
 > > > warning C4005:
 > > > > > 'FD_CLOSE' : macro redefinition
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(556) : see previous
 > > > > > definition of 'FD_CLOSE'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1427) :
 > > > error C2375: 'accept' :
 > > > > > redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(707) : see declaration
 > > > > > of 'accept'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1448) :
 > > > error C2375: 'bind' :
 > > > > > redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(710) : see declaration
 > > > > > of 'bind'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1467) :
 > > > error C2375:
 > > > > > 'closesocket' : redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(712) : see declaration
 > > > > > of 'closesocket'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1486) :
 > > > error C2375: 'connect'
 > > > > > : redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(714) : see declaration
 > > > > > of 'connect'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1507) :
 > > > error C2375:
 > > > > > 'ioctlsocket' : redefinition; different linkage
 > > > > > c:\program files\microsoft visual> > >
 studio\vc98\include\winsock.h(716) : see declaration
 > > > > > of 'ioctlsocket'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1528) :
 > > > error C2375:
 > > > > > 'getpeername' : redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(718) : see declaration
 > > > > > of 'getpeername'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1549) :
 > > > error C2375:
 > > > > > 'getsockname' : redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(721) : see declaration
 > > > > > of 'getsockname'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1572) :
 > > > error C2375:
 > > > > > 'getsockopt' : redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(724) : see declaration
 > > > > > of 'getsockopt'
 > > > > > c:\program files\microsoft visual
 > studio\vc98\include\winsock2.h(1593) :
 > > > error C2375: 'htonl' :
 > > > > > redefinition; different linkage
 > > > > > c:\program files\microsoft visual
 > > > studio\vc98\include\winsock.h(727) : see declaration
 > > > > > of 'htonl'
 > > >
 > > === message truncated ===
 > >
 > >
 > >
 > >
 > > __________________________________
 > > Do you Yahoo!?
 > > The all-new My Yahoo! - What will yours do?
 > > http://my.yahoo.com
 > >
 >
 >
 > ---------------------------------
 > Do you Yahoo!?
 > Meet the all-new My Yahoo! – Try it today!


 --
 Damitha Kumarage
 hSenid Software International (PVT) Ltd
 damitha@hSenid.lk

 Lanka Software Foundation (http://www.opensource.lk)



Do you Yahoo!?
Meet the all-new My Yahoo! – Try it today!


Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Hi Damitha,
    Can we move all the SSL specific stuff into ssl sub folder?
    I got the feeling that there is some level of tight coupling here with the non-SSL stuff. (It is annoying that I cannot compile a module because of something that I am not going to use)
  
    Re PlatformAutoSense.hpp: This can be a reason, as I mentioned in an early mail. If so, does any one know how to override an already included file so that we could override winsock.h with winsock2.h (or does it sound silly :( ?  ) In other words, is there any way to enfoce the Win platform header to include winsock2.h all the time?
 
Thanks,
Samisa...

Damitha Kumarage <da...@opensource.lk> wrote:
Hi Samisa,
The only different with the older ones is that now it does not contain ssl
speicfic header files. Using a SSLChannelFactory it dyanmically load the ssl
channel library and call its methods. The problem causing could be from
including PlatformAutoSense.hpp in SSLChannelFactory.hpp

damitha


On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > Was the vc project for Axis2Transport changed to include the new files? If
> > not what are the files that need to be included in this project?
> 
> I have no idea on this. I think the files have not been added.
> 
> Just to let you know:
> To help find a solution, I copied older versions of 
> SecureChannel.cpp and SecureChannel.h into the folder and built the 
> project and the build was successful.
> 
> I am not sure why the latest SecureChannel.cpp and SecureChannel.h 
> are causing problems.
> 
> Samisa...
> 
> sanjaya singharage wrote:
> Was the vc project for Axis2Transport changed to include the new 
> files? If not what are the files that need to be included in this project?
> 
> sanjaya.
> ----- Original Message -----
> From: "Samisa Abeysinghe" 
> To: "Apache AXIS C Developers List" 
> Sent: Tuesday, November 30, 2004 5:32 PM
> Subject: Re: Axis2Transport does not build on windows
> 
> > Yes; AxisSocketUtils is not used anywhere.
> >
> > Looking at the email list, if I say changes to SecureChannel has started
> causing problems, am I
> > correct? If so I could revert back and try.
> >
> > Thanks,
> > Samisa...
> >
> > --- sanjaya singharage wrote:
> >
> > > winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> > > used anywhere.
> > >
> > > sanjaya.
> > >
> > > ----- Original Message -----
> > > From: "Samisa Abeysinghe" 
> > > To: "Apache AXIS C Developers List" 
> > > Sent: Tuesday, November 30, 2004 5:02 PM
> > > Subject: Re: Axis2Transport does not build on windows
> > >
> > >
> > > > None of the source files include winsock.h but winsock2.h.
> > > > However, windows.h included in
> > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > > > compiler run into confusion.
> > > > I still could not find a solution.
> > > >
> > > > Waht are we doing wrong here? I think before using platform headers it
> > > worked. I am not sure if
> > > > this problem came to life with platform headers.
> > > >
> > > > Samisa...
> > > >
> > > > --- sanjaya singharage wrote:
> > > >
> > > > > --------------------Configuration: Axis2Transport - Win32
> > > Debug--------------------
> > > > > Compiling...
> > > > > SecureChannel.cpp
> > > > >
> > >
> 
> d:\san\works\checkouts\head5\ws-
> axis\c\include\axis\axisexception.hpp(164) :
> > > warning C4275: non
> > > > > dll-interface class 'exception' used as base for dll-interface class
> > > 'axiscpp::AxisException'
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\exception(50) : see declaration of
> > > > > 'exception'
> > > > >
> > >
> 
> d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > > ption.h(51) :
> > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
std::char_traits,class
> > > > > std::allocator >' needs to have dll-interface to be used
> > > > > by clients of class 'AxisTransportException'
> > > > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99)
> :
> > > error C2011: 'fd_set' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(134) :
> > > warning C4005: 'FD_SET'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(83) : see previous
> > > > > definition of 'FD_SET'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(143) :
> > > error C2011: 'timeval' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(199) :
> > > error C2011: 'hostent' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(212) :
> > > error C2011: 'netent' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(219) :
> > > error C2011: 'servent' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(226) :
> > > error C2011: 'protoent'
> > > > > : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(310) :
> > > error C2011: 'in_addr' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(368) :
> > > error C2011:
> > > > > 'sockaddr_in' : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(378) :
> > > error C2011: 'WSAData' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(430) :
> > > warning C4005:
> > > > > 'SO_DONTLINGER' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(391) : see previous
> > > > > definition of 'SO_DONTLINGER'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(483) :
> > > warning C4005: 'AF_IPX'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(449) : see previous
> > > > > definition of 'AF_IPX'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(506) :
> > > warning C4005: 'AF_MAX'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(468) : see previous
> > > > > definition of 'AF_MAX'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(512) :
> > > error C2011: 'sockaddr'
> > > > > : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(521) :
> > > error C2011: 'sockproto'
> > > > > : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(560) :
> > > error C2011: 'linger' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(573) :
> > > warning C4005:
> > > > > 'SOMAXCONN' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(533) : see previous
> > > > > definition of 'SOMAXCONN'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(598) :
> > > warning C4005: 'FD_READ'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(551) : see previous
> > > > > definition of 'FD_READ'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(601) :
> > > warning C4005:
> > > > > 'FD_WRITE' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(552) : see previous
> > > > > definition of 'FD_WRITE'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(604) :
> > > warning C4005: 'FD_OOB'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(553) : see previous
> > > > > definition of 'FD_OOB'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(607) :
> > > warning C4005:
> > > > > 'FD_ACCEPT' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(554) : see previous
> > > > > definition of 'FD_ACCEPT'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(610) :
> > > warning C4005:
> > > > > 'FD_CONNECT' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(555) : see previous
> > > > > definition of 'FD_CONNECT'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(613) :
> > > warning C4005:
> > > > > 'FD_CLOSE' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(556) : see previous
> > > > > definition of 'FD_CLOSE'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1427) :
> > > error C2375: 'accept' :
> > > > > redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(707) : see declaration
> > > > > of 'accept'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1448) :
> > > error C2375: 'bind' :
> > > > > redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(710) : see declaration
> > > > > of 'bind'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1467) :
> > > error C2375:
> > > > > 'closesocket' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(712) : see declaration
> > > > > of 'closesocket'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1486) :
> > > error C2375: 'connect'
> > > > > : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(714) : see declaration
> > > > > of 'connect'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1507) :
> > > error C2375:
> > > > > 'ioctlsocket' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(716) : see declaration
> > > > > of 'ioctlsocket'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1528) :
> > > error C2375:
> > > > > 'getpeername' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(718) : see declaration
> > > > > of 'getpeername'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1549) :
> > > error C2375:
> > > > > 'getsockname' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(721) : see declaration
> > > > > of 'getsockname'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1572) :
> > > error C2375:
> > > > > 'getsockopt' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(724) : see declaration
> > > > > of 'getsockopt'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1593) :
> > > error C2375: 'htonl' :
> > > > > redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(727) : see declaration
> > > > > of 'htonl'
> > >
> > === message truncated ===
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - What will yours do?
> > http://my.yahoo.com
> >
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Meet the all-new My Yahoo! � Try it today!


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


		
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! � Try it today! 

Re: Axis2Transport does not build on windows

Posted by Damitha Kumarage <da...@opensource.lk>.
Hi Samisa,
The only different with the older ones is that now it does not contain ssl
speicfic header files. Using a SSLChannelFactory it dyanmically load the ssl
channel library and call its methods. The problem causing could be from
including PlatformAutoSense.hpp in SSLChannelFactory.hpp

damitha


On Tue, 30 Nov 2004 03:49:54 -0800 (PST), Samisa Abeysinghe wrote
> > Was the vc project for Axis2Transport changed to include the new files? If
> > not what are the files that need to be included in this project?
> 
> I have no idea on this. I think the files have not been added.
> 
> Just to let you know:
> To help find a solution, I copied older versions of 
> SecureChannel.cpp and SecureChannel.h into the folder and built the 
> project and the build was successful.
> 
> I am not sure why the latest SecureChannel.cpp and SecureChannel.h 
> are causing problems.
> 
> Samisa...
> 
> sanjaya singharage <sa...@opensource.lk> wrote:
> Was the vc project for Axis2Transport changed to include the new 
> files? If not what are the files that need to be included in this project?
> 
> sanjaya.
> ----- Original Message -----
> From: "Samisa Abeysinghe" 
> To: "Apache AXIS C Developers List" 
> Sent: Tuesday, November 30, 2004 5:32 PM
> Subject: Re: Axis2Transport does not build on windows
> 
> > Yes; AxisSocketUtils is not used anywhere.
> >
> > Looking at the email list, if I say changes to SecureChannel has started
> causing problems, am I
> > correct? If so I could revert back and try.
> >
> > Thanks,
> > Samisa...
> >
> > --- sanjaya singharage wrote:
> >
> > > winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> > > used anywhere.
> > >
> > > sanjaya.
> > >
> > > ----- Original Message -----
> > > From: "Samisa Abeysinghe" 
> > > To: "Apache AXIS C Developers List" 
> > > Sent: Tuesday, November 30, 2004 5:02 PM
> > > Subject: Re: Axis2Transport does not build on windows
> > >
> > >
> > > > None of the source files include winsock.h but winsock2.h.
> > > > However, windows.h included in
> > > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > > > compiler run into confusion.
> > > > I still could not find a solution.
> > > >
> > > > Waht are we doing wrong here? I think before using platform headers it
> > > worked. I am not sure if
> > > > this problem came to life with platform headers.
> > > >
> > > > Samisa...
> > > >
> > > > --- sanjaya singharage wrote:
> > > >
> > > > > --------------------Configuration: Axis2Transport - Win32
> > > Debug--------------------
> > > > > Compiling...
> > > > > SecureChannel.cpp
> > > > >
> > >
> 
> d:\san\works\checkouts\head5\ws-
> axis\c\include\axis\axisexception.hpp(164) :
> > > warning C4275: non
> > > > > dll-interface class 'exception' used as base for dll-interface class
> > > 'axiscpp::AxisException'
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\exception(50) : see declaration of
> > > > > 'exception'
> > > > >
> > >
> 
> d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > > ption.h(51) :
> > > > > warning C4251: 'm_sMessage' : class 'std::basic_string> >
std::char_traits,class
> > > > > std::allocator >' needs to have dll-interface to be used
> > > > > by clients of class 'AxisTransportException'
> > > > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99)
> :
> > > error C2011: 'fd_set' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(134) :
> > > warning C4005: 'FD_SET'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(83) : see previous
> > > > > definition of 'FD_SET'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(143) :
> > > error C2011: 'timeval' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(199) :
> > > error C2011: 'hostent' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(212) :
> > > error C2011: 'netent' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(219) :
> > > error C2011: 'servent' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(226) :
> > > error C2011: 'protoent'
> > > > > : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(310) :
> > > error C2011: 'in_addr' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(368) :
> > > error C2011:
> > > > > 'sockaddr_in' : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(378) :
> > > error C2011: 'WSAData' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(430) :
> > > warning C4005:
> > > > > 'SO_DONTLINGER' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(391) : see previous
> > > > > definition of 'SO_DONTLINGER'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(483) :
> > > warning C4005: 'AF_IPX'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(449) : see previous
> > > > > definition of 'AF_IPX'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(506) :
> > > warning C4005: 'AF_MAX'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(468) : see previous
> > > > > definition of 'AF_MAX'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(512) :
> > > error C2011: 'sockaddr'
> > > > > : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(521) :
> > > error C2011: 'sockproto'
> > > > > : 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(560) :
> > > error C2011: 'linger' :
> > > > > 'struct' type redefinition
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(573) :
> > > warning C4005:
> > > > > 'SOMAXCONN' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(533) : see previous
> > > > > definition of 'SOMAXCONN'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(598) :
> > > warning C4005: 'FD_READ'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(551) : see previous
> > > > > definition of 'FD_READ'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(601) :
> > > warning C4005:
> > > > > 'FD_WRITE' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(552) : see previous
> > > > > definition of 'FD_WRITE'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(604) :
> > > warning C4005: 'FD_OOB'
> > > > > : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(553) : see previous
> > > > > definition of 'FD_OOB'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(607) :
> > > warning C4005:
> > > > > 'FD_ACCEPT' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(554) : see previous
> > > > > definition of 'FD_ACCEPT'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(610) :
> > > warning C4005:
> > > > > 'FD_CONNECT' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(555) : see previous
> > > > > definition of 'FD_CONNECT'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(613) :
> > > warning C4005:
> > > > > 'FD_CLOSE' : macro redefinition
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(556) : see previous
> > > > > definition of 'FD_CLOSE'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1427) :
> > > error C2375: 'accept' :
> > > > > redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(707) : see declaration
> > > > > of 'accept'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1448) :
> > > error C2375: 'bind' :
> > > > > redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(710) : see declaration
> > > > > of 'bind'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1467) :
> > > error C2375:
> > > > > 'closesocket' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(712) : see declaration
> > > > > of 'closesocket'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1486) :
> > > error C2375: 'connect'
> > > > > : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(714) : see declaration
> > > > > of 'connect'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1507) :
> > > error C2375:
> > > > > 'ioctlsocket' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(716) : see declaration
> > > > > of 'ioctlsocket'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1528) :
> > > error C2375:
> > > > > 'getpeername' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(718) : see declaration
> > > > > of 'getpeername'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1549) :
> > > error C2375:
> > > > > 'getsockname' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(721) : see declaration
> > > > > of 'getsockname'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1572) :
> > > error C2375:
> > > > > 'getsockopt' : redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(724) : see declaration
> > > > > of 'getsockopt'
> > > > > c:\program files\microsoft visual
> studio\vc98\include\winsock2.h(1593) :
> > > error C2375: 'htonl' :
> > > > > redefinition; different linkage
> > > > > c:\program files\microsoft visual
> > > studio\vc98\include\winsock.h(727) : see declaration
> > > > > of 'htonl'
> > >
> > === message truncated ===
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - What will yours do?
> > http://my.yahoo.com
> >
> 
> 		
> ---------------------------------
> Do you Yahoo!?
>  Meet the all-new My Yahoo! – Try it today!


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
> Was the vc project for Axis2Transport changed to include the new files? If
> not what are the files that need to be included in this project?

I have no idea on this. I think the files have not been added.
 
Just to let you know:
To help find a solution, I copied older versions of SecureChannel.cpp and SecureChannel.h into the folder and built the project and the build was successful.
 
I am not sure why the latest SecureChannel.cpp and SecureChannel.h are causing problems.
 
Samisa...

sanjaya singharage <sa...@opensource.lk> wrote:
Was the vc project for Axis2Transport changed to include the new files? If
not what are the files that need to be included in this project?

sanjaya.
----- Original Message -----
From: "Samisa Abeysinghe" 
To: "Apache AXIS C Developers List" 
Sent: Tuesday, November 30, 2004 5:32 PM
Subject: Re: Axis2Transport does not build on windows


> Yes; AxisSocketUtils is not used anywhere.
>
> Looking at the email list, if I say changes to SecureChannel has started
causing problems, am I
> correct? If so I could revert back and try.
>
> Thanks,
> Samisa...
>
> --- sanjaya singharage wrote:
>
> > winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> > used anywhere.
> >
> > sanjaya.
> >
> > ----- Original Message -----
> > From: "Samisa Abeysinghe" 
> > To: "Apache AXIS C Developers List" 
> > Sent: Tuesday, November 30, 2004 5:02 PM
> > Subject: Re: Axis2Transport does not build on windows
> >
> >
> > > None of the source files include winsock.h but winsock2.h.
> > > However, windows.h included in
> > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > > compiler run into confusion.
> > > I still could not find a solution.
> > >
> > > Waht are we doing wrong here? I think before using platform headers it
> > worked. I am not sure if
> > > this problem came to life with platform headers.
> > >
> > > Samisa...
> > >
> > > --- sanjaya singharage wrote:
> > >
> > > > --------------------Configuration: Axis2Transport - Win32
> > Debug--------------------
> > > > Compiling...
> > > > SecureChannel.cpp
> > > >
> >
d:\san\works\checkouts\head5\ws-axis\c\include\axis\axisexception.hpp(164) :
> > warning C4275: non
> > > > dll-interface class 'exception' used as base for dll-interface class
> > 'axiscpp::AxisException'
> > > > c:\program files\microsoft visual
> > studio\vc98\include\exception(50) : see declaration of
> > > > 'exception'
> > > >
> >
d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > ption.h(51) :
> > > > warning C4251: 'm_sMessage' : class 'std::basic_string> > std::char_traits,class
> > > > std::allocator >' needs to have dll-interface to be used
> > > > by clients of class 'AxisTransportException'
> > > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99)
:
> > error C2011: 'fd_set' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(134) :
> > warning C4005: 'FD_SET'
> > > > : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(83) : see previous
> > > > definition of 'FD_SET'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(143) :
> > error C2011: 'timeval' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(199) :
> > error C2011: 'hostent' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(212) :
> > error C2011: 'netent' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(219) :
> > error C2011: 'servent' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(226) :
> > error C2011: 'protoent'
> > > > : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(310) :
> > error C2011: 'in_addr' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(368) :
> > error C2011:
> > > > 'sockaddr_in' : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(378) :
> > error C2011: 'WSAData' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(430) :
> > warning C4005:
> > > > 'SO_DONTLINGER' : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(391) : see previous
> > > > definition of 'SO_DONTLINGER'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(483) :
> > warning C4005: 'AF_IPX'
> > > > : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(449) : see previous
> > > > definition of 'AF_IPX'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(506) :
> > warning C4005: 'AF_MAX'
> > > > : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(468) : see previous
> > > > definition of 'AF_MAX'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(512) :
> > error C2011: 'sockaddr'
> > > > : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(521) :
> > error C2011: 'sockproto'
> > > > : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(560) :
> > error C2011: 'linger' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(573) :
> > warning C4005:
> > > > 'SOMAXCONN' : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(533) : see previous
> > > > definition of 'SOMAXCONN'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(598) :
> > warning C4005: 'FD_READ'
> > > > : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(551) : see previous
> > > > definition of 'FD_READ'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(601) :
> > warning C4005:
> > > > 'FD_WRITE' : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(552) : see previous
> > > > definition of 'FD_WRITE'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(604) :
> > warning C4005: 'FD_OOB'
> > > > : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(553) : see previous
> > > > definition of 'FD_OOB'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(607) :
> > warning C4005:
> > > > 'FD_ACCEPT' : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(554) : see previous
> > > > definition of 'FD_ACCEPT'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(610) :
> > warning C4005:
> > > > 'FD_CONNECT' : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(555) : see previous
> > > > definition of 'FD_CONNECT'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(613) :
> > warning C4005:
> > > > 'FD_CLOSE' : macro redefinition
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(556) : see previous
> > > > definition of 'FD_CLOSE'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1427) :
> > error C2375: 'accept' :
> > > > redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(707) : see declaration
> > > > of 'accept'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1448) :
> > error C2375: 'bind' :
> > > > redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(710) : see declaration
> > > > of 'bind'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1467) :
> > error C2375:
> > > > 'closesocket' : redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(712) : see declaration
> > > > of 'closesocket'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1486) :
> > error C2375: 'connect'
> > > > : redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(714) : see declaration
> > > > of 'connect'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1507) :
> > error C2375:
> > > > 'ioctlsocket' : redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(716) : see declaration
> > > > of 'ioctlsocket'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1528) :
> > error C2375:
> > > > 'getpeername' : redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(718) : see declaration
> > > > of 'getpeername'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1549) :
> > error C2375:
> > > > 'getsockname' : redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(721) : see declaration
> > > > of 'getsockname'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1572) :
> > error C2375:
> > > > 'getsockopt' : redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(724) : see declaration
> > > > of 'getsockopt'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1593) :
> > error C2375: 'htonl' :
> > > > redefinition; different linkage
> > > > c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(727) : see declaration
> > > > of 'htonl'
> >
> === message truncated ===
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
>



		
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! � Try it today! 

Re: Axis2Transport does not build on windows

Posted by sanjaya singharage <sa...@opensource.lk>.
Was the vc project for Axis2Transport changed to include the new files? If
not what are the files that need to be included in this project?

sanjaya.
----- Original Message -----
From: "Samisa Abeysinghe" <sa...@yahoo.com>
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Sent: Tuesday, November 30, 2004 5:32 PM
Subject: Re: Axis2Transport does not build on windows


> Yes; AxisSocketUtils is not used anywhere.
>
> Looking at the email list, if I say changes to SecureChannel has started
causing problems, am I
> correct? If so I could revert back and try.
>
> Thanks,
> Samisa...
>
> --- sanjaya singharage <sa...@opensource.lk> wrote:
>
> > winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> > used anywhere.
> >
> > sanjaya.
> >
> > ----- Original Message -----
> > From: "Samisa Abeysinghe" <sa...@yahoo.com>
> > To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
> > Sent: Tuesday, November 30, 2004 5:02 PM
> > Subject: Re: Axis2Transport does not build on windows
> >
> >
> > > None of the source files include winsock.h but winsock2.h.
> > > However, windows.h included in
> > src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > > compiler run into confusion.
> > > I still could not find a solution.
> > >
> > > Waht are we doing wrong here? I think before using platform headers it
> > worked. I am not sure if
> > > this problem came to life with platform headers.
> > >
> > > Samisa...
> > >
> > > --- sanjaya singharage <sa...@opensource.lk> wrote:
> > >
> > > > --------------------Configuration: Axis2Transport - Win32
> > Debug--------------------
> > > > Compiling...
> > > > SecureChannel.cpp
> > > >
> >
d:\san\works\checkouts\head5\ws-axis\c\include\axis\axisexception.hpp(164) :
> > warning C4275: non
> > > > dll-interface class 'exception' used as base for dll-interface class
> > 'axiscpp::AxisException'
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\exception(50) : see declaration of
> > > > 'exception'
> > > >
> >
d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> > ption.h(51) :
> > > > warning C4251: 'm_sMessage' : class 'std::basic_string<char,struct
> > std::char_traits<char>,class
> > > > std::allocator<char> >' needs to have dll-interface to be used
> > > > by clients of class 'AxisTransportException'
> > > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99)
:
> > error C2011: 'fd_set' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(134) :
> > warning C4005: 'FD_SET'
> > > > : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(83) : see previous
> > > > definition of 'FD_SET'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(143) :
> > error C2011: 'timeval' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(199) :
> > error C2011: 'hostent' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(212) :
> > error C2011: 'netent' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(219) :
> > error C2011: 'servent' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(226) :
> > error C2011: 'protoent'
> > > > : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(310) :
> > error C2011: 'in_addr' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(368) :
> > error C2011:
> > > > 'sockaddr_in' : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(378) :
> > error C2011: 'WSAData' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(430) :
> > warning C4005:
> > > > 'SO_DONTLINGER' : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(391) : see previous
> > > > definition of 'SO_DONTLINGER'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(483) :
> > warning C4005: 'AF_IPX'
> > > > : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(449) : see previous
> > > > definition of 'AF_IPX'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(506) :
> > warning C4005: 'AF_MAX'
> > > > : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(468) : see previous
> > > > definition of 'AF_MAX'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(512) :
> > error C2011: 'sockaddr'
> > > > : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(521) :
> > error C2011: 'sockproto'
> > > > : 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(560) :
> > error C2011: 'linger' :
> > > > 'struct' type redefinition
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(573) :
> > warning C4005:
> > > > 'SOMAXCONN' : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(533) : see previous
> > > > definition of 'SOMAXCONN'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(598) :
> > warning C4005: 'FD_READ'
> > > > : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(551) : see previous
> > > > definition of 'FD_READ'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(601) :
> > warning C4005:
> > > > 'FD_WRITE' : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(552) : see previous
> > > > definition of 'FD_WRITE'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(604) :
> > warning C4005: 'FD_OOB'
> > > > : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(553) : see previous
> > > > definition of 'FD_OOB'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(607) :
> > warning C4005:
> > > > 'FD_ACCEPT' : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(554) : see previous
> > > > definition of 'FD_ACCEPT'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(610) :
> > warning C4005:
> > > > 'FD_CONNECT' : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(555) : see previous
> > > > definition of 'FD_CONNECT'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(613) :
> > warning C4005:
> > > > 'FD_CLOSE' : macro redefinition
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(556) : see previous
> > > > definition of 'FD_CLOSE'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1427) :
> > error C2375: 'accept' :
> > > > redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(707) : see declaration
> > > > of 'accept'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1448) :
> > error C2375: 'bind' :
> > > > redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(710) : see declaration
> > > > of 'bind'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1467) :
> > error C2375:
> > > > 'closesocket' : redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(712) : see declaration
> > > > of 'closesocket'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1486) :
> > error C2375: 'connect'
> > > > : redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(714) : see declaration
> > > > of 'connect'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1507) :
> > error C2375:
> > > > 'ioctlsocket' : redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(716) : see declaration
> > > > of 'ioctlsocket'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1528) :
> > error C2375:
> > > > 'getpeername' : redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(718) : see declaration
> > > > of 'getpeername'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1549) :
> > error C2375:
> > > > 'getsockname' : redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(721) : see declaration
> > > > of 'getsockname'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1572) :
> > error C2375:
> > > > 'getsockopt' : redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(724) : see declaration
> > > > of 'getsockopt'
> > > > c:\program files\microsoft visual
studio\vc98\include\winsock2.h(1593) :
> > error C2375: 'htonl' :
> > > > redefinition; different linkage
> > > >         c:\program files\microsoft visual
> > studio\vc98\include\winsock.h(727) : see declaration
> > > > of 'htonl'
> >
> === message truncated ===
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
>



Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Yes; AxisSocketUtils is not used anywhere.

Looking at the email list, if I say changes to SecureChannel has started causing problems, am I
correct? If so I could revert back and try.

Thanks,
Samisa...

--- sanjaya singharage <sa...@opensource.lk> wrote:

> winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
> used anywhere.
> 
> sanjaya.
> 
> ----- Original Message -----
> From: "Samisa Abeysinghe" <sa...@yahoo.com>
> To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
> Sent: Tuesday, November 30, 2004 5:02 PM
> Subject: Re: Axis2Transport does not build on windows
> 
> 
> > None of the source files include winsock.h but winsock2.h.
> > However, windows.h included in
> src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> > compiler run into confusion.
> > I still could not find a solution.
> >
> > Waht are we doing wrong here? I think before using platform headers it
> worked. I am not sure if
> > this problem came to life with platform headers.
> >
> > Samisa...
> >
> > --- sanjaya singharage <sa...@opensource.lk> wrote:
> >
> > > --------------------Configuration: Axis2Transport - Win32
> Debug--------------------
> > > Compiling...
> > > SecureChannel.cpp
> > >
> d:\san\works\checkouts\head5\ws-axis\c\include\axis\axisexception.hpp(164) :
> warning C4275: non
> > > dll-interface class 'exception' used as base for dll-interface class
> 'axiscpp::AxisException'
> > >         c:\program files\microsoft visual
> studio\vc98\include\exception(50) : see declaration of
> > > 'exception'
> > >
> d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
> ption.h(51) :
> > > warning C4251: 'm_sMessage' : class 'std::basic_string<char,struct
> std::char_traits<char>,class
> > > std::allocator<char> >' needs to have dll-interface to be used
> > > by clients of class 'AxisTransportException'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99) :
> error C2011: 'fd_set' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(134) :
> warning C4005: 'FD_SET'
> > > : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(83) : see previous
> > > definition of 'FD_SET'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(143) :
> error C2011: 'timeval' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(199) :
> error C2011: 'hostent' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(212) :
> error C2011: 'netent' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(219) :
> error C2011: 'servent' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(226) :
> error C2011: 'protoent'
> > > : 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(310) :
> error C2011: 'in_addr' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(368) :
> error C2011:
> > > 'sockaddr_in' : 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(378) :
> error C2011: 'WSAData' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(430) :
> warning C4005:
> > > 'SO_DONTLINGER' : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(391) : see previous
> > > definition of 'SO_DONTLINGER'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(483) :
> warning C4005: 'AF_IPX'
> > > : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(449) : see previous
> > > definition of 'AF_IPX'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(506) :
> warning C4005: 'AF_MAX'
> > > : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(468) : see previous
> > > definition of 'AF_MAX'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(512) :
> error C2011: 'sockaddr'
> > > : 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(521) :
> error C2011: 'sockproto'
> > > : 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(560) :
> error C2011: 'linger' :
> > > 'struct' type redefinition
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(573) :
> warning C4005:
> > > 'SOMAXCONN' : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(533) : see previous
> > > definition of 'SOMAXCONN'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(598) :
> warning C4005: 'FD_READ'
> > > : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(551) : see previous
> > > definition of 'FD_READ'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(601) :
> warning C4005:
> > > 'FD_WRITE' : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(552) : see previous
> > > definition of 'FD_WRITE'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(604) :
> warning C4005: 'FD_OOB'
> > > : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(553) : see previous
> > > definition of 'FD_OOB'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(607) :
> warning C4005:
> > > 'FD_ACCEPT' : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(554) : see previous
> > > definition of 'FD_ACCEPT'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(610) :
> warning C4005:
> > > 'FD_CONNECT' : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(555) : see previous
> > > definition of 'FD_CONNECT'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(613) :
> warning C4005:
> > > 'FD_CLOSE' : macro redefinition
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(556) : see previous
> > > definition of 'FD_CLOSE'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1427) :
> error C2375: 'accept' :
> > > redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(707) : see declaration
> > > of 'accept'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1448) :
> error C2375: 'bind' :
> > > redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(710) : see declaration
> > > of 'bind'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) :
> error C2375:
> > > 'closesocket' : redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(712) : see declaration
> > > of 'closesocket'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1486) :
> error C2375: 'connect'
> > > : redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(714) : see declaration
> > > of 'connect'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1507) :
> error C2375:
> > > 'ioctlsocket' : redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(716) : see declaration
> > > of 'ioctlsocket'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1528) :
> error C2375:
> > > 'getpeername' : redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(718) : see declaration
> > > of 'getpeername'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1549) :
> error C2375:
> > > 'getsockname' : redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(721) : see declaration
> > > of 'getsockname'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1572) :
> error C2375:
> > > 'getsockopt' : redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(724) : see declaration
> > > of 'getsockopt'
> > > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1593) :
> error C2375: 'htonl' :
> > > redefinition; different linkage
> > >         c:\program files\microsoft visual
> studio\vc98\include\winsock.h(727) : see declaration
> > > of 'htonl'
> 
=== message truncated ===



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

Re: Axis2Transport does not build on windows

Posted by sanjaya singharage <sa...@opensource.lk>.
winsock.h is included in xisSocketUtils.cpp, but this doesn't seem to be
used anywhere.

sanjaya.

----- Original Message -----
From: "Samisa Abeysinghe" <sa...@yahoo.com>
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Sent: Tuesday, November 30, 2004 5:02 PM
Subject: Re: Axis2Transport does not build on windows


> None of the source files include winsock.h but winsock2.h.
> However, windows.h included in
src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
> compiler run into confusion.
> I still could not find a solution.
>
> Waht are we doing wrong here? I think before using platform headers it
worked. I am not sure if
> this problem came to life with platform headers.
>
> Samisa...
>
> --- sanjaya singharage <sa...@opensource.lk> wrote:
>
> > --------------------Configuration: Axis2Transport - Win32
Debug--------------------
> > Compiling...
> > SecureChannel.cpp
> >
d:\san\works\checkouts\head5\ws-axis\c\include\axis\axisexception.hpp(164) :
warning C4275: non
> > dll-interface class 'exception' used as base for dll-interface class
'axiscpp::AxisException'
> >         c:\program files\microsoft visual
studio\vc98\include\exception(50) : see declaration of
> > 'exception'
> >
d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexce
ption.h(51) :
> > warning C4251: 'm_sMessage' : class 'std::basic_string<char,struct
std::char_traits<char>,class
> > std::allocator<char> >' needs to have dll-interface to be used
> > by clients of class 'AxisTransportException'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(99) :
error C2011: 'fd_set' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(134) :
warning C4005: 'FD_SET'
> > : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(83) : see previous
> > definition of 'FD_SET'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(143) :
error C2011: 'timeval' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(199) :
error C2011: 'hostent' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(212) :
error C2011: 'netent' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(219) :
error C2011: 'servent' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(226) :
error C2011: 'protoent'
> > : 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(310) :
error C2011: 'in_addr' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(368) :
error C2011:
> > 'sockaddr_in' : 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(378) :
error C2011: 'WSAData' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(430) :
warning C4005:
> > 'SO_DONTLINGER' : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(391) : see previous
> > definition of 'SO_DONTLINGER'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(483) :
warning C4005: 'AF_IPX'
> > : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(449) : see previous
> > definition of 'AF_IPX'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(506) :
warning C4005: 'AF_MAX'
> > : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(468) : see previous
> > definition of 'AF_MAX'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(512) :
error C2011: 'sockaddr'
> > : 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(521) :
error C2011: 'sockproto'
> > : 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(560) :
error C2011: 'linger' :
> > 'struct' type redefinition
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(573) :
warning C4005:
> > 'SOMAXCONN' : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(533) : see previous
> > definition of 'SOMAXCONN'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(598) :
warning C4005: 'FD_READ'
> > : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(551) : see previous
> > definition of 'FD_READ'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(601) :
warning C4005:
> > 'FD_WRITE' : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(552) : see previous
> > definition of 'FD_WRITE'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(604) :
warning C4005: 'FD_OOB'
> > : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(553) : see previous
> > definition of 'FD_OOB'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(607) :
warning C4005:
> > 'FD_ACCEPT' : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(554) : see previous
> > definition of 'FD_ACCEPT'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(610) :
warning C4005:
> > 'FD_CONNECT' : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(555) : see previous
> > definition of 'FD_CONNECT'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(613) :
warning C4005:
> > 'FD_CLOSE' : macro redefinition
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(556) : see previous
> > definition of 'FD_CLOSE'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1427) :
error C2375: 'accept' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(707) : see declaration
> > of 'accept'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1448) :
error C2375: 'bind' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(710) : see declaration
> > of 'bind'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) :
error C2375:
> > 'closesocket' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(712) : see declaration
> > of 'closesocket'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1486) :
error C2375: 'connect'
> > : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(714) : see declaration
> > of 'connect'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1507) :
error C2375:
> > 'ioctlsocket' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(716) : see declaration
> > of 'ioctlsocket'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1528) :
error C2375:
> > 'getpeername' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(718) : see declaration
> > of 'getpeername'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1549) :
error C2375:
> > 'getsockname' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(721) : see declaration
> > of 'getsockname'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1572) :
error C2375:
> > 'getsockopt' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(724) : see declaration
> > of 'getsockopt'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1593) :
error C2375: 'htonl' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(727) : see declaration
> > of 'htonl'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1610) :
error C2375: 'htons' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(729) : see declaration
> > of 'htons'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1627) :
error C2375:
> > 'inet_addr' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(731) : see declaration
> > of 'inet_addr'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1644) :
error C2375:
> > 'inet_ntoa' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(733) : see declaration
> > of 'inet_ntoa'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1662) :
error C2375: 'listen' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(735) : see declaration
> > of 'listen'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1680) :
error C2375: 'ntohl' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(737) : see declaration
> > of 'ntohl'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1697) :
error C2375: 'ntohs' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(739) : see declaration
> > of 'ntohs'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1717) :
error C2375: 'recv' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(741) : see declaration
> > of 'recv'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1742) :
error C2375: 'recvfrom'
> > : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(743) : see declaration
> > of 'recvfrom'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1768) :
error C2375: 'select' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(746) : see declaration
> > of 'select'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1792) :
error C2375: 'send' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(749) : see declaration
> > of 'send'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1817) :
error C2375: 'sendto' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(751) : see declaration
> > of 'sendto'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1843) :
error C2375:
> > 'setsockopt' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(754) : see declaration
> > of 'setsockopt'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1865) :
error C2375: 'shutdown'
> > : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(757) : see declaration
> > of 'shutdown'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1885) :
error C2375: 'socket' :
> > redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(759) : see declaration
> > of 'socket'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1908) :
error C2375:
> > 'gethostbyaddr' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(763) : see declaration
> > of 'gethostbyaddr'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1927) :
error C2375:
> > 'gethostbyname' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(766) : see declaration
> > of 'gethostbyname'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1945) :
error C2375:
> > 'gethostname' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(768) : see declaration
> > of 'gethostname'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1964) :
error C2375:
> > 'getservbyport' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(770) : see declaration
> > of 'getservbyport'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(1983) :
error C2375:
> > 'getservbyname' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(772) : see declaration
> > of 'getservbyname'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(2001) :
error C2375:
> > 'getprotobynumber' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(775) : see declaration
> > of 'getprotobynumber'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(2018) :
error C2375:
> > 'getprotobyname' : redefinition; different linkage
> >         c:\program files\microsoft visual
studio\vc98\include\winsock.h(777) : see declaration
> > of 'getprotobyname'
> > c:\program files\microsoft visual studio\vc98\include\winsock2.h(2038) :
error C2375:
> > 'WSAStartup' : redefinition; different linkage
> >
> === message truncated ===
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
>



Re: Axis2Transport does not build on windows

Posted by Samisa Abeysinghe <sa...@yahoo.com>.
None of the source files include winsock.h but winsock2.h.
However, windows.h included in src/platforms/windows/PlatformSpecificWindows.hpp seems to make the
compiler run into confusion.
I still could not find a solution.

Waht are we doing wrong here? I think before using platform headers it worked. I am not sure if
this problem came to life with platform headers.

Samisa...

--- sanjaya singharage <sa...@opensource.lk> wrote:

> --------------------Configuration: Axis2Transport - Win32 Debug--------------------
> Compiling...
> SecureChannel.cpp
> d:\san\works\checkouts\head5\ws-axis\c\include\axis\axisexception.hpp(164) : warning C4275: non
> dll-interface class 'exception' used as base for dll-interface class 'axiscpp::AxisException'
>         c:\program files\microsoft visual studio\vc98\include\exception(50) : see declaration of
> 'exception'
> d:\san\works\checkouts\head5\ws-axis\c\src\transport\axis2\axistransportexception.h(51) :
> warning C4251: 'm_sMessage' : class 'std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >' needs to have dll-interface to be used 
> by clients of class 'AxisTransportException'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(99) : error C2011: 'fd_set' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(134) : warning C4005: 'FD_SET'
> : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(83) : see previous
> definition of 'FD_SET'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(143) : error C2011: 'timeval' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(199) : error C2011: 'hostent' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(212) : error C2011: 'netent' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(219) : error C2011: 'servent' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(226) : error C2011: 'protoent'
> : 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(310) : error C2011: 'in_addr' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(368) : error C2011:
> 'sockaddr_in' : 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(378) : error C2011: 'WSAData' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(430) : warning C4005:
> 'SO_DONTLINGER' : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(391) : see previous
> definition of 'SO_DONTLINGER'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(483) : warning C4005: 'AF_IPX'
> : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(449) : see previous
> definition of 'AF_IPX'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(506) : warning C4005: 'AF_MAX'
> : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(468) : see previous
> definition of 'AF_MAX'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(512) : error C2011: 'sockaddr'
> : 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(521) : error C2011: 'sockproto'
> : 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(560) : error C2011: 'linger' :
> 'struct' type redefinition
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(573) : warning C4005:
> 'SOMAXCONN' : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(533) : see previous
> definition of 'SOMAXCONN'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(598) : warning C4005: 'FD_READ'
> : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(551) : see previous
> definition of 'FD_READ'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(601) : warning C4005:
> 'FD_WRITE' : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(552) : see previous
> definition of 'FD_WRITE'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(604) : warning C4005: 'FD_OOB'
> : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(553) : see previous
> definition of 'FD_OOB'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(607) : warning C4005:
> 'FD_ACCEPT' : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(554) : see previous
> definition of 'FD_ACCEPT'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(610) : warning C4005:
> 'FD_CONNECT' : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(555) : see previous
> definition of 'FD_CONNECT'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(613) : warning C4005:
> 'FD_CLOSE' : macro redefinition
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(556) : see previous
> definition of 'FD_CLOSE'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1427) : error C2375: 'accept' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(707) : see declaration
> of 'accept'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1448) : error C2375: 'bind' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(710) : see declaration
> of 'bind'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1467) : error C2375:
> 'closesocket' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(712) : see declaration
> of 'closesocket'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1486) : error C2375: 'connect'
> : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(714) : see declaration
> of 'connect'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1507) : error C2375:
> 'ioctlsocket' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(716) : see declaration
> of 'ioctlsocket'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1528) : error C2375:
> 'getpeername' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(718) : see declaration
> of 'getpeername'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1549) : error C2375:
> 'getsockname' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(721) : see declaration
> of 'getsockname'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1572) : error C2375:
> 'getsockopt' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(724) : see declaration
> of 'getsockopt'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1593) : error C2375: 'htonl' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(727) : see declaration
> of 'htonl'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1610) : error C2375: 'htons' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(729) : see declaration
> of 'htons'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1627) : error C2375:
> 'inet_addr' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(731) : see declaration
> of 'inet_addr'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1644) : error C2375:
> 'inet_ntoa' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(733) : see declaration
> of 'inet_ntoa'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1662) : error C2375: 'listen' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(735) : see declaration
> of 'listen'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1680) : error C2375: 'ntohl' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(737) : see declaration
> of 'ntohl'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1697) : error C2375: 'ntohs' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(739) : see declaration
> of 'ntohs'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1717) : error C2375: 'recv' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(741) : see declaration
> of 'recv'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1742) : error C2375: 'recvfrom'
> : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(743) : see declaration
> of 'recvfrom'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1768) : error C2375: 'select' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(746) : see declaration
> of 'select'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1792) : error C2375: 'send' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(749) : see declaration
> of 'send'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1817) : error C2375: 'sendto' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(751) : see declaration
> of 'sendto'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1843) : error C2375:
> 'setsockopt' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(754) : see declaration
> of 'setsockopt'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1865) : error C2375: 'shutdown'
> : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(757) : see declaration
> of 'shutdown'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1885) : error C2375: 'socket' :
> redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(759) : see declaration
> of 'socket'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1908) : error C2375:
> 'gethostbyaddr' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(763) : see declaration
> of 'gethostbyaddr'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1927) : error C2375:
> 'gethostbyname' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(766) : see declaration
> of 'gethostbyname'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1945) : error C2375:
> 'gethostname' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(768) : see declaration
> of 'gethostname'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1964) : error C2375:
> 'getservbyport' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(770) : see declaration
> of 'getservbyport'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(1983) : error C2375:
> 'getservbyname' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(772) : see declaration
> of 'getservbyname'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(2001) : error C2375:
> 'getprotobynumber' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(775) : see declaration
> of 'getprotobynumber'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(2018) : error C2375:
> 'getprotobyname' : redefinition; different linkage
>         c:\program files\microsoft visual studio\vc98\include\winsock.h(777) : see declaration
> of 'getprotobyname'
> c:\program files\microsoft visual studio\vc98\include\winsock2.h(2038) : error C2375:
> 'WSAStartup' : redefinition; different linkage
> 
=== message truncated ===



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail