dreamstreat / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

expat error during make (building trunk r492) #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. sh autogen.sh
2. ./configure --prefix=/usr/local/libkml/trunk-r492
3. make

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

/bin/bash ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../..  -I../../../src -I../../../third_party/boost_1_34_1
-I../../../third_party/uriparser-0.7.1/include
-I../../../third_party/googletest-r108/include  -Wall -Wextra
-Wno-unused-parameter -Werror -ansi -pedantic -fno-rtti -g -O2 -MT
expat_handler_ns.lo -MD -MP -MF .deps/expat_handler_ns.Tpo -c -o
expat_handler_ns.lo expat_handler_ns.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src
-I../../../third_party/boost_1_34_1
-I../../../third_party/uriparser-0.7.1/include
-I../../../third_party/googletest-r108/include -Wall -Wextra
-Wno-unused-parameter -Werror -ansi -pedantic -fno-rtti -g -O2 -MT
expat_handler_ns.lo -MD -MP -MF .deps/expat_handler_ns.Tpo -c
expat_handler_ns.cc  -fPIC -DPIC -o .libs/expat_handler_ns.o
In file included from ../../../src/kml/base/expat_handler_ns.h:32,
                 from expat_handler_ns.cc:26:
../../../src/kml/base/expat_handler.h:31:31: error: expat.h: No such file
or directory
In file included from ../../../src/kml/base/expat_handler_ns.h:32,
                 from expat_handler_ns.cc:26:
../../../src/kml/base/expat_handler.h:41: error: expected ‘,’ or ‘...’
before ‘*’ token
../../../src/kml/base/expat_handler.h:41: error: ISO C++ forbids
declaration of ‘XML_Char’ with no type
../../../src/kml/base/expat_handler.h:44: error: expected ‘,’ or ‘...’
before ‘*’ token
../../../src/kml/base/expat_handler.h:44: error: ISO C++ forbids
declaration of ‘XML_Char’ with no type
../../../src/kml/base/expat_handler.h:45: error: expected ‘,’ or ‘...’
before ‘*’ token
../../../src/kml/base/expat_handler.h:45: error: ISO C++ forbids
declaration of ‘XML_Char’ with no type
../../../src/kml/base/expat_handler.h:47: error: ‘XML_Parser’ has not been
declared
../../../src/kml/base/expat_handler.h:50: error: ‘XML_Parser’ does not name
a type
../../../src/kml/base/expat_handler.h:55: error: ‘XML_Parser’ does not name
a type
../../../src/kml/base/expat_handler.h: In member function ‘void
kmlbase::ExpatHandler::set_parser(int)’:
../../../src/kml/base/expat_handler.h:48: error: ‘parser_’ was not declared
in this scope
In file included from expat_handler_ns.cc:26:
../../../src/kml/base/expat_handler_ns.h: At global scope:
../../../src/kml/base/expat_handler_ns.h:73: error: expected ‘,’ or 
‘...’
before ‘*’ token
../../../src/kml/base/expat_handler_ns.h:73: error: ISO C++ forbids
declaration of ‘XML_Char’ with no type
../../../src/kml/base/expat_handler_ns.h:74: error: expected ‘,’ or 
‘...’
before ‘*’ token
../../../src/kml/base/expat_handler_ns.h:74: error: ISO C++ forbids
declaration of ‘XML_Char’ with no type
../../../src/kml/base/expat_handler_ns.h:75: error: expected ‘,’ or 
‘...’
before ‘*’ token
../../../src/kml/base/expat_handler_ns.h:75: error: ISO C++ forbids
declaration of ‘XML_Char’ with no type
In file included from expat_handler_ns.cc:30:
../../../src/kml/base/expat_parser.h:115: error: ‘XML_Parser’ does not name
a type
../../../src/kml/base/expat_parser.h:118: error: ‘XML_Parser’ has not been
declared
expat_handler_ns.cc:71: error: expected ‘,’ or ‘...’ before ‘*’ 
token
expat_handler_ns.cc:71: error: ISO C++ forbids declaration of ‘XML_Char’
with no type
expat_handler_ns.cc: In member function ‘virtual void
kmlbase::ExpatHandlerNs::CharData(int)’:
expat_handler_ns.cc:72: error: ‘s’ was not declared in this scope
expat_handler_ns.cc:72: error: ‘len’ was not declared in this scope
expat_handler_ns.cc: At global scope:
expat_handler_ns.cc:75: error: expected ‘,’ or ‘...’ before ‘*’ 
token
expat_handler_ns.cc:76: error: ISO C++ forbids declaration of ‘XML_Char’
with no type
expat_handler_ns.cc:79: error: expected ‘,’ or ‘...’ before ‘*’ 
token
expat_handler_ns.cc:79: error: ISO C++ forbids declaration of ‘XML_Char’
with no type
make[4]: *** [expat_handler_ns.lo] Error 1
make[4]: Leaving directory `/home/terickson/src/libkml/trunk/src/kml/base'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/terickson/src/libkml/trunk/src/kml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/terickson/src/libkml/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/terickson/src/libkml/trunk'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
trunk r492 on Ubuntu 8.10

Did you run the unit test suite that comes with the project? Did all tests
pass?
No, didn't get that far.

Please provide any additional information below.
the expat package is present
taericks@optiplexe:~/src/libkml/trunk$ aptitude show expat
Package: expat
State: installed
Automatically installed: no
Version: 2.0.1-4
Priority: optional
Section: universe/text
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Uncompressed Size: 81.9k
Depends: libc6 (>= 2.3.4), libexpat1 (>= 1.95.8)
Description: XML parsing C library - example application
 This package contains xmlwf, an example application of expat, the C
library for parsing XML.  The arguments to
 xmlwf are one or more files which are each to be checked for XML
well-formedness.
Homepage: http://expat.sourceforge.net

Original issue reported on code.google.com by tylerick...@gmail.com on 6 Mar 2009 at 3:38

GoogleCodeExporter commented 8 years ago
Where is expat.h on your system?

Original comment by kml.mash...@gmail.com on 6 Mar 2009 at 3:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
expat.h was missing.  turns out I needed to install the libexpat1-dev package.

Original comment by tylerick...@gmail.com on 6 Mar 2009 at 11:42

GoogleCodeExporter commented 8 years ago

Original comment by kml.mash...@gmail.com on 10 Mar 2009 at 11:10