From andrew.j.chalk at lmco.com Tue Jan 3 17:54:47 2017 From: andrew.j.chalk at lmco.com (Chalk, Andrew J) Date: Wed Jan 4 09:00:51 2017 Subject: [xsd-users] XSD compilation fails: "Global element declared more than once" Message-ID: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> Under Windows I get the same errors reported by Bj?rn Stresing here. I.e. error: global type 'complexType:AmcPurposeCodeType' declared more than once or also declared as simpleType error: global type 'complexType:AmcPurposeCodeType' declared more than once or also declared as simpleType error: global element 'MissionTypeWrapper' declared more than once I upgraded from CodeSynthesis XSD v4.0 to http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a3-i686-windows.zip with the same results. In essence, XSD cannot handle multiple (identical) definitions. gSOAP does not have this problem. XSD on Linux can. This was acknowledged as a Windows-only bug in May 12014. Is there a fix yet? Many thanks. From boris at codesynthesis.com Wed Jan 4 09:05:47 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Jan 4 09:05:56 2017 Subject: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> Message-ID: Hi Andrew, Chalk, Andrew J writes: > Is there a fix yet? I believe this has been fixed. Can you try the a10 pre-release? http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a10-i686-windows.zip Boris From andrej.gospodaric at gmail.com Wed Jan 4 09:10:17 2017 From: andrej.gospodaric at gmail.com (=?UTF-8?Q?Andrej_Gospodari=C4=87?=) Date: Wed Jan 4 09:10:47 2017 Subject: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> Message-ID: Hey Boris can you unsubscribe me? Am 04.01.2017 22:08 schrieb "Boris Kolpackov" : > Hi Andrew, > > Chalk, Andrew J writes: > > > Is there a fix yet? > > I believe this has been fixed. Can you try the a10 pre-release? > > http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a10-i686-windows.zip > > Boris > > From andrew.j.chalk at lmco.com Wed Jan 4 18:10:00 2017 From: andrew.j.chalk at lmco.com (Chalk, Andrew J) Date: Thu Jan 5 10:38:52 2017 Subject: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> Message-ID: <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> Thanks for the new version. Update: Same behavior. All of the xsd files that failed to compile in the prior versions still fail. Those that succeeded, succeed. Every XSD.EXE error reported when MS Build output is set to "Diagnostic" appears to be the result of the inability of XSD.EXE to handle multiple (identical) declarations. Viz: C:\Users\n32839\Documents\Visual Studio 2012\Projects\XSD2CPP\CodeSynthesisXSD\TestCodeSynthesisXSD.1>xsd.exe cxx-tree --output-dir "." --hxx-suffix ".hxx" --cxx-suffix ".cxx" --ixx-suffix ".ixx" --fwd-suffix "-fwd.hxx" supportrequest.xsd (TaskId:119) 1>supportrequest.xsd:33:38: error: global type 'complexType:SupportRequest' declared more than once or also declared as simpleType (TaskId:119) 1>supportrequest.xsd:81:43: error: global type 'simpleType:SupportRequestType' declared more than once or also declared as complexType (TaskId:119) 1>supportrequest.xsd:94:44: error: global type 'simpleType:SupportRequestState' declared more than once or also declared as complexType (TaskId:119) Many thanks for your help. - A -----Original Message----- From: Boris Kolpackov [mailto:boris@codesynthesis.com] Sent: Wednesday, January 04, 2017 8:06 AM To: Chalk, Andrew J (US N-AMERICAN CYBERSYSTEMS) Cc: xsd-users@codesynthesis.com Subject: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" Hi Andrew, Chalk, Andrew J writes: > Is there a fix yet? I believe this has been fixed. Can you try the a10 pre-release? http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a10-i686-windows.zip Boris From boris at codesynthesis.com Thu Jan 5 10:49:36 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Jan 5 10:49:44 2017 Subject: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> Message-ID: Hi Andrew, Chalk, Andrew J writes: > Update: Same behavior. Hm, that's strange. I would be very surprised if we have another bug like this, but who knows. Can you verify that XSD.exe you are running is actually the new version. Try adding --version to the options you pass to XSD from your project. If that still doesn't resolve it, will you be able to send me your schemas (off list, if you prefer) so that I can try to reproduce this? Boris From andrew.j.chalk at lmco.com Thu Jan 5 11:05:24 2017 From: andrew.j.chalk at lmco.com (Chalk, Andrew J) Date: Mon Jan 9 09:05:16 2017 Subject: EXTERNAL: Re: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> Message-ID: <9FFFD432B44ECB4EAAEE296EF2765BEAA98971@HVXDSP45.us.lmco.com> Many thanks for your reply. A couple of things: 1) I installed the 64-bit production version of CS-XSD on Fedora 20 (64 bit). It parsed all of the XSD files with no problems. 2) I am not allowed to release schemas. I would have to generate a 'white box' schema that replicated the problem. I am too time-pressed to do so right now. However, from the errors reported by VC++ with build output set to diagnostic it would appear one would just have to duplicate a type in two XSD files, one of which is included by the other. Here is a typical error: "supportrequest.xsd:33:38: error: global type 'complexType:SupportRequest' declared more than once or also declared as simpleType (TaskId:119)" Many thanks for your support. - A -----Original Message----- From: Boris Kolpackov [mailto:boris@codesynthesis.com] Sent: Thursday, January 05, 2017 9:50 AM To: Chalk, Andrew J (US N-AMERICAN CYBERSYSTEMS) Cc: xsd-users@codesynthesis.com Subject: EXTERNAL: Re: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" Hi Andrew, Chalk, Andrew J writes: > Update: Same behavior. Hm, that's strange. I would be very surprised if we have another bug like this, but who knows. Can you verify that XSD.exe you are running is actually the new version. Try adding --version to the options you pass to XSD from your project. If that still doesn't resolve it, will you be able to send me your schemas (off list, if you prefer) so that I can try to reproduce this? Boris From boris at codesynthesis.com Mon Jan 9 09:42:35 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Jan 9 09:42:45 2017 Subject: EXTERNAL: Re: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: <9FFFD432B44ECB4EAAEE296EF2765BEAA98971@HVXDSP45.us.lmco.com> References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA98971@HVXDSP45.us.lmco.com> Message-ID: Hi Andrew, Chalk, Andrew J writes: > 1) I installed the 64-bit production version of CS-XSD on Fedora > 20 (64 bit). It parsed all of the XSD files with no problems. Right, to me this strongly suggest this is the same bug that we fixed. Did you try to make sure your Windows build actually picks up the latest version and is not using the old one due to some path issues? > 2) I am not allowed to release schemas. I would have to generate a > 'white box' schema that replicated the problem. I am too time- > pressed to do so right now. However, from the errors reported > by VC++ with build output set to diagnostic it would appear one > would just have to duplicate a type in two XSD files, one of which > is included by the other. That would be a valid error. This issue has something to do with the case-insensitivity of the filesystem (i.e., subsequent includes are not being ignored on Windows due to the case -- that's the bug that has been fixed). Boris From andrew.j.chalk at lmco.com Mon Jan 9 15:20:26 2017 From: andrew.j.chalk at lmco.com (Chalk, Andrew J) Date: Tue Jan 10 10:17:36 2017 Subject: EXTERNAL: Re: EXTERNAL: Re: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA98971@HVXDSP45.us.lmco.com> Message-ID: <9FFFD432B44ECB4EAAEE296EF2765BEAA993EE@HVXDSP45.us.lmco.com> The version of XSD.EXE being called is 11,413KB. Version 4.1.0.a10. A disk scan showed no other versions of XSD.EXE - A -----Original Message----- From: Boris Kolpackov [mailto:boris@codesynthesis.com] Sent: Monday, January 09, 2017 8:43 AM To: Chalk, Andrew J (US N-AMERICAN CYBERSYSTEMS) Cc: xsd-users@codesynthesis.com Subject: EXTERNAL: Re: EXTERNAL: Re: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" Hi Andrew, Chalk, Andrew J writes: > 1) I installed the 64-bit production version of CS-XSD on Fedora > 20 (64 bit). It parsed all of the XSD files with no problems. Right, to me this strongly suggest this is the same bug that we fixed. Did you try to make sure your Windows build actually picks up the latest version and is not using the old one due to some path issues? > 2) I am not allowed to release schemas. I would have to generate a > 'white box' schema that replicated the problem. I am too time- > pressed to do so right now. However, from the errors reported > by VC++ with build output set to diagnostic it would appear one > would just have to duplicate a type in two XSD files, one of which > is included by the other. That would be a valid error. This issue has something to do with the case-insensitivity of the filesystem (i.e., subsequent includes are not being ignored on Windows due to the case -- that's the bug that has been fixed). Boris From boris at codesynthesis.com Tue Jan 17 09:15:27 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Jan 17 09:15:36 2017 Subject: EXTERNAL: Re: EXTERNAL: Re: EXTERNAL: Re: [xsd-users] XSD compilation fails: "Global element declared more than once" In-Reply-To: <9FFFD432B44ECB4EAAEE296EF2765BEAA993EE@HVXDSP45.us.lmco.com> References: <9FFFD432B44ECB4EAAEE296EF2765BEAA9879F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA9887F@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA98971@HVXDSP45.us.lmco.com> <9FFFD432B44ECB4EAAEE296EF2765BEAA993EE@HVXDSP45.us.lmco.com> Message-ID: Hi Andrew, Chalk, Andrew J writes: > The version of XSD.EXE being called is 11,413KB. Version 4.1.0.a10. Thanks for confirming this. Would you be able to outline the structure of the affected types and elements? I.e., in which schemas are the original and duplicate that are referred in the error messages and how these schemas are related (included/imported) to the root schema being compiled. Thanks, Boris From andrew.j.chalk at lmco.com Wed Jan 18 19:28:13 2017 From: andrew.j.chalk at lmco.com (Chalk, Andrew J) Date: Thu Jan 19 04:01:01 2017 Subject: [xsd-users] XSD Forward Declaration Bug Message-ID: <9FFFD432B44ECB4EAAEE296EF2765BEAAA1992@HVXDSP45.us.lmco.com> XSD 4.0.0. for Linux appears to have a bug in the C++ it generates. It creates incomplete types to provide declarations of classes. The problem is, it does this when the class is used in the translation unit in the definition of a derived class. I.e. Class A; class B : public A { // content }; Since the size of incomplete type A is unknown, the compilation fails. Can you replicate this? Thks, - A From boris at codesynthesis.com Thu Jan 19 09:59:16 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Jan 19 09:59:25 2017 Subject: [xsd-users] XSD Forward Declaration Bug In-Reply-To: <9FFFD432B44ECB4EAAEE296EF2765BEAAA1992@HVXDSP45.us.lmco.com> References: <9FFFD432B44ECB4EAAEE296EF2765BEAAA1992@HVXDSP45.us.lmco.com> Message-ID: Hi Andrew, Chalk, Andrew J writes: > XSD 4.0.0. for Linux appears to have a bug in the C++ it generates. > It creates incomplete types to provide declarations of classes. The > problem is, it does this when the class is used in the translation > unit in the definition of a derived class. I.e. > > Class A; > > class B : public A > { > // content > }; > > Since the size of incomplete type A is unknown, the compilation fails. > > Can you replicate this? It's hard to reproduce things just from the description of an error. But I remember we've fixed something similar for 4.1.0. Can you try this pre- release as a first step: http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a8-x86_64-linux-gnu.tar.bz2 Boris