Return-Path: Delivered-To: apmail-xerces-c-dev-archive@www.apache.org Received: (qmail 60344 invoked from network); 28 Nov 2005 18:25:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 18:25:35 -0000 Received: (qmail 7435 invoked by uid 500); 28 Nov 2005 18:25:31 -0000 Delivered-To: apmail-xerces-c-dev-archive@xerces.apache.org Received: (qmail 7403 invoked by uid 500); 28 Nov 2005 18:25:31 -0000 Mailing-List: contact c-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-dev@xerces.apache.org Delivered-To: mailing list c-dev@xerces.apache.org Received: (qmail 7381 invoked by uid 99); 28 Nov 2005 18:25:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 10:25:31 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [208.13.57.168] (HELO mail.arxan.com) (208.13.57.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 10:27:01 -0800 Received: (qmail 6591 invoked by uid 1011); 28 Nov 2005 18:25:09 -0000 Received: from 172.24.0.156 by usps-1.dmz.arxan.com (envelope-from , uid 1002) with qmail-scanner-1.25 (clamdscan: 0.85.1/893. spamassassin: 3.0.2. Clear:RC:1(172.24.0.156):. Processed in 0.121944 secs); 28 Nov 2005 18:25:09 -0000 Received: from unknown (HELO workstation19) (ddunkle@172.24.0.156) by mail.arxan.com with SMTP; 28 Nov 2005 18:25:09 -0000 From: "David Dunkle" To: Cc: "'David Dunkle'" Subject: RE: Xerces-C for Windows AMD64 Date: Mon, 28 Nov 2005 10:25:04 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcXxKtmBPfhITQWYROuUo1kElc1gLwDHdKSA In-Reply-To: <43860F5D.8060205@apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Qmail-Scanner-Message-ID: <11332023096866584@usps-1.dmz.arxan.com> X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20051128182701.9447310FB021@asf.osuosl.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks. I just filed a "new feature" request for Xerces-C++ so that I can follow it, as you suggested. I believe that the issue "key" is XERCESC_1531. -David D -----Original Message----- From: David Bertoni [mailto:dbertoni@apache.org] Sent: Thursday, November 24, 2005 11:07 AM To: c-dev@xerces.apache.org Subject: Re: Xerces-C for Windows AMD64 David Dunkle wrote: > We would like a working xerces-C++ for Windows XP 64, specifically > AMD64. I am starting to try to build the source for this platform > using Visual Studio 8 (Visual Studio 2005 - the final version), and I > have some questions. > > 1) I have seen one or two other people asking about this in the email > archives, but before I go to far, I would like to know if anyone has > gotten a functional xerces for 64 bit Windows. > 2) We would like to build with VC8, but there is no VC8 project in the > 2.7.0 release. Should we plan on creating one? > 3) I have most of the subprojects now compiling and linking for me, > without changing any source, but I still see 3 compile errors and many > disturbing compiler warnings. > > The warnings: > > The most bothersome warnings seem to me to be those where "long" is > assumed to be 64 bits; on this platform, I believe that long is 32 > bits even though pointers are 64. At least according to Microsoft's > documentation. An example warning is below, but there are many more. > > Configuration: Debug x64 ------ > Compiling... > PSVIWriterHandlers.cpp > ..\..\..\..\..\src\xercesc/internal/XSerializeEngine.hpp(818) > : warning C4244: 'return' : conversion from '__int64' > to 'unsigned long', possible loss of data > I've already prepared a patch for this warning, but it means a change in the public API, so it cannot go in until the 3.0 release. For the time being, you can ignore it. > Is there a some way to deal with these kind of warnings that I don't > understand built into xerces, or should we plan on changing the > source? The problem seems pretty systemic. > > Here are the errors. > > Are there known solutions for these errors or should we plan on fixing > the xerces source? > > ------ Build started: Project: PSVIWriter, > Configuration: Debug x64 ------ > Compiling... ... > ..\..\..\..\..\samples\PSVIWriter\PSVIWriterHandlers.cpp(1617) > : error C2440: 'type cast' : cannot convert from > 'xercesc_2_7::XSObject *' to 'unsigned long' > The target is not large enough The fix for this is a bit complicated, so I'll have to work on a fix for this. > Build log was saved at > "file://c:\ddunkleworkspace\mytests\xerces-c-src_2_7_0\Projects\Win32\VC8\xe rces-all\PSVIWriter\x64\Debug\BuildLog.htm" > PSVIWriter - 1 error(s), 2 warning(s) > ------ Build started: Project: xml4com, Configuration: > Debug x64 ------ > Compiling... > XMLHTTPRequest.cpp > ..\..\..\..\..\src\xercesc\com\XMLHTTPRequest.cpp(40) > : warning C4996: '_tcsncpy' was declared deprecated > C:\Program Files (x86)\Microsoft Visual Studio > 8\VC\include\tchar.h(1467) : see declaration of '_tcsncpy' > Message: 'This function or variable may be unsafe. Consider > using _tcsncpy_s instead. To disable deprecation, use > _CRT_SECURE_NO_DEPRECATE. See online help for details.' This is Microsoft's idea of a joke, I guess. They are trying to become security conscious, so they decided to mark all sort of functions as "deprecated." You can ignore these errors. I will be checking in a fix that disables them. Also, I suspect you will have to disable the COM wrappers, because they will probably not build in 64-bit mode. I don't think anyone is even maintaining them now, and I'm not sure if COM can work with 64-bit applications. ... > Build log was saved at > "file://c:\ddunkleworkspace\mytests\xerces-c-src_2_7_0\Projects\Win32\VC8\xe rces-all\xerces-com\x64\Debug\BuildLog.htm" > xml4com - 2 error(s), 8 warning(s) > ------ Build started: Project: MemHandlerTest, > Configuration: Debug x64 ------ > Compiling... > SimpleHashPtr.cpp > ..\..\..\..\..\tests\MemHandlerTest\SimpleHashPtr.cpp(32) > : error C2440: 'type cast' : cannot convert from 'const void *const ' > to 'long' > The target is not large enough The fix is to cast size_t instead of long. I will check in a fix for this. If you want to track these fixes, feel free to create Jira enhancement request, and I'll make sure to update it when the fixes are in the SVN repository. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org For additional commands, e-mail: c-dev-help@xerces.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org For additional commands, e-mail: c-dev-help@xerces.apache.org