davidtzai / xplus-xsd2cpp

Automatically exported from code.google.com/p/xplus-xsd2cpp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Compilation errors on Ubuntu 12.10 #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download Ubuntu 12.10 32bit desktop
2. apt-get install automake autoconf libtool xsltproc libexpat1 libexpat1-dev
3. ./autogen.sh
4. make

What is the expected output? What do you see instead?
Compilation error:

depbase=`echo XSD/UrTypes.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
    /bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..    -g -O0 -I../include  -O2 -MT XSD/UrTypes.lo -MD -MP -MF $depbase.Tpo -c -o XSD/UrTypes.lo XSD/UrTypes.cpp &&\
    mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -O0 -I../include -O2 -MT 
XSD/UrTypes.lo -MD -MP -MF XSD/.deps/UrTypes.Tpo -c XSD/UrTypes.cpp  -fPIC 
-DPIC -o XSD/.libs/UrTypes.o
In file included from ../include/XSD/UrTypes.h:36:0,
                 from ../include/XSD/PrimitiveTypes.h:20,
                 from XSD/UrTypes.cpp:23:
../include/XSD/Facets.h: In instantiation of 'void 
XMLSchema::NativeTypeCFacet<T>::stringValue(DOM::DOMString) [with T = 
XPlus::UString; DOM::DOMString = XPlus::UString]':
../include/XSD/PrimitiveTypes.h:51:47:   required from here
../include/XSD/Facets.h:288:7: error: 'value' was not declared in this scope, 
and no declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
../include/XSD/Facets.h:288:7: note: declarations in dependent base 
'XMLSchema::ConstrainingFacet<XPlus::UString>' are not found by unqualified 
lookup
../include/XSD/Facets.h:288:7: note: use 'this->value' instead
../include/XSD/Facets.h: In instantiation of 'void 
XMLSchema::NativeTypeOrderableCFacet<T>::stringValue(DOM::DOMString) [with T = 
unsigned int; DOM::DOMString = XPlus::UString]':
../include/XSD/PrimitiveTypes.h:2073:39:   required from here
../include/XSD/Facets.h:307:7: error: 'value' was not declared in this scope, 
and no declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
../include/XSD/Facets.h:307:7: note: declarations in dependent base 
'XMLSchema::ConstrainingFacet<unsigned int>' are not found by unqualified lookup
../include/XSD/Facets.h:307:7: note: use 'this->value' instead
../include/XSD/Facets.h: In instantiation of 'void 
XMLSchema::NativeTypeOrderableCFacet<T>::stringValue(DOM::DOMString) [with T = 
double; DOM::DOMString = XPlus::UString]':
XSD/UrTypes.cpp:1735:1:   required from here
../include/XSD/Facets.h:307:7: error: 'value' was not declared in this scope, 
and no declarations were found by argument-dependent lookup at the point of 
instantiation [-fpermissive]
../include/XSD/Facets.h:307:7: note: declarations in dependent base 
'XMLSchema::ConstrainingFacet<double>' are not found by unqualified lookup
../include/XSD/Facets.h:307:7: note: use 'this->value' instead

What version of the product are you using? On what operating system?
xmlplus-0.2.1, Ubuntu 12.10 32bit

Please provide any additional information below.

Original issue reported on code.google.com by spenc...@gmail.com on 5 Apr 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Tried it on Ubuntu 12.04, and was unable to repro the compilation failure.
Will try it on 12.10 in some time.

Original comment by xmlplus....@gmail.com on 23 Apr 2013 at 4:24

GoogleCodeExporter commented 9 years ago
Any update? Same error on Ubuntu 13.04 32 bit. Thank you.

Original comment by docmanz...@gmail.com on 12 Jun 2013 at 3:09

GoogleCodeExporter commented 9 years ago
Confirmed. I have the same problem on 12.10. One remark that might help: Ubuntu 
12.10 uses libexpat1 and libexpat1-dev i.s.o. libexpat.

Original comment by marcin.g...@gmail.com on 18 Jul 2013 at 1:32

GoogleCodeExporter commented 9 years ago
as a workaround I changed value to this->value (as said by compiler error )and 
build worked.

Original comment by hemu.m...@gmail.com on 1 Aug 2013 at 4:34

GoogleCodeExporter commented 9 years ago
The code is checked in the trunk, to fix the build. The source release tar.gz 
coming up soon. One could always get latest source from trunk through svn. 
Thanks for reporting the problem.

Note: on a side note, license is being changed to lgpl v3 from gpl v3, to avoid 
confusions around usage of xmlplus source/libraries as well as generated source.

Original comment by sptripa...@gmail.com on 31 Aug 2013 at 8:45

GoogleCodeExporter commented 9 years ago
In addition to the source update, one might need a few more steps for ubuntu 
13.1 :

1. Install mingw g++ package
    $ sudo apt-get install g++-mingw-w64-i686

2. clean any earlier make
    $ make clean

3. run autogen.sh. Provide alternate build path [optional]  
    $ ./autogen.sh --prefix=/home/goofy/xplusbuild

4. make and install
    $ make && make install

Original comment by sptripa...@gmail.com on 31 Aug 2013 at 8:51

GoogleCodeExporter commented 9 years ago
New LGPL release (along with above instructions) should fix the ubuntu 13.1 
build issue.

     https://sourceforge.net/projects/xmlplus/files/xmlplus/0.2/xmlplus-0.2.2-lgpl.tar.gz/download

Please reopen the bug if this issue resurfaces, or does not seem fixed for you.

Original comment by xmlplus....@gmail.com on 2 Sep 2013 at 8:13

GoogleCodeExporter commented 9 years ago

Original comment by xmlplus....@gmail.com on 2 Sep 2013 at 8:14