quayle / 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 fails on Ubuntu 10.10 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just configure using ./configure --prefix=`pwd`
2. Compilation fails after make

What is the expected output? What do you see instead?

make  all-recursive
make[1]: Entering directory `/project/xmlplus-0.1'
Making all in src
make[2]: Entering directory `/project/xmlplus-0.1/src'
Making all in Poco
make[3]: Entering directory `/project/xmlplus-0.1/src/Poco'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/project/xmlplus-0.1/src/Poco'
Making all in XPlus
make[3]: Entering directory `/project/xmlplus-0.1/src/XPlus'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/project/xmlplus-0.1/src/XPlus'
Making all in DOM
make[3]: Entering directory `/project/xmlplus-0.1/src/DOM'
/bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../..    -g -O0 -I../../include -I../../foundation/include  -O2 -MT 
Attribute.lo -MD -MP -MF .deps/Attribute.Tpo -c -o Attribute.lo Attribute.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -g -O0 -I../../include 
-I../../foundation/include -O2 -MT Attribute.lo -MD -MP -MF .deps/Attribute.Tpo 
-c Attribute.cpp  -fPIC -DPIC -o .libs/Attribute.o
In file included from ../../include/DOM/Attribute.h:23,
                 from Attribute.cpp:20:
../../include/DOM/DOMCommonInc.h:25: fatal error: expat_external.h: No such 
file or directory
compilation terminated.
make[3]: *** [Attribute.lo] Error 1
make[3]: Leaving directory `/project/xmlplus-0.1/src/DOM'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/project/xmlplus-0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/project/xmlplus-0.1'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
xmlPlus 0.1

Please provide any additional information below.
Compilation problems on Fedora 12 are less severe.

Original issue reported on code.google.com by sutambe on 25 Nov 2010 at 10:15

GoogleCodeExporter commented 9 years ago
0. the error about expat_external.h, is reported because you dont have 
libexpat-dev    package on the box.
    Pls get that first using "apt-get install libexpat-dev" or using synaptics.
    (apologies if the docs dont mention that this package is required ) 

1. Pls retain your src/Document.cpp fix for include of <assert.h>

2. in xmlplus source root, do make clean

3. in src/Makefile.am do following fixes:

    2.1)   add -S option CXXFLAGS/CFLAGS , should look like this:

    AM_CXXFLAGS= -S -g -O0 -I$(top_srcdir)/include
    AM_CFLAGS= -S -g -O0 -I$(top_srcdir)/include -I$(top_srcdir)/src/DOM/

    2.2) remove fvisibility flag towards the end of the file, rather add -lexpat like so:

    before:    libxsdall_la_LDFLAGS = -fvisibility=default -lpthread
    after:       libxsdall_la_LDFLAGS = -lexpat -lpthread

   (some libtool versions, abort on seeing this option -fvisibility=default, and we dont need this option )

4. then run ./configure(or autogen.sh) in xmlplus source root again, and then 
"make && make install"

Note: A formal fix will be rolled out soon.

Original comment by xmlplus....@gmail.com on 27 Nov 2010 at 7:54

GoogleCodeExporter commented 9 years ago
Fixed in xmlplus-0.1 branch as well as trunk.

Following are the ways to use this fix:

1. download xmlplus-0.1.1.src.tar.gz from sourceforge, which has xmlplus-0.1 
plus fixes:
  https://sourceforge.net/projects/xmlplus/files/xmlplus/0.1.1/xmlplus-0.1.1.src.tar.gz/download

2. apply the xmlplus-0.1.patch.tgz attached with this bug.
   To apply the patch, place this xmlplus-0.1.patch.tgz archive inside your xmlplus-0.1 source root, and then run:

   tar -zxvf xmlplus-0.1.patch.tgz

   This will replace the files accordingly.
   After applying patch, one must run "make clean" followed by "configure, make, make install" again.

Original comment by xmlplus....@gmail.com on 29 Nov 2010 at 7:50

Attachments: