[Gdal-dev] [Fwd: Re: [GRASSLIST:1175] GDAL support for GML]

Jack Varga jvarga at boulder.net
Thu Sep 11 20:46:58 EDT 2003


Frank, et al;

I grabbed the latest (GDAL) source from CVS last night, as well as 
compiled and installed Xerces 1.6.0, (I was using the latest 2.3.0) and 
tried to build GDAL but still have the same problem.  I think I'm 
getting closer after modifying  
'--with-xerces-inc=/usr/local/xerces_2_3_0/include/xerces' as my error 
message different (I can finally find util/PlatformUtils.hpp), bu the 
linker is still choking on something.  I've included error message below.

I was getting ready to submit a bug report when I noticed one had 
already been created describing the exact same problem, although it 
appears I've gotten a bit further.

http://bugzilla.remotesensing.org/show_bug.cgi?id=340

I can add the legwork I've done to the bug report, but not sure how much 
that will help.  My problem is the exact same as the initial 
reporter's.  You made a comment that you've changed the code to work 
with Xerces 2.3.0, but you still needed to rework the configure logic, 
which is apparently where I'm having trouble also. 

One last thought, there have been a couple of mentions of Xerces' 
default location.  In fact if you compile Xerces from source there is 
not default location.  I've been manually relocating the build tree 
(which is the same as the source tree) to /usr/local/xerces-2_3_0 and 
/usr/local/xerces-1_6_0 respectively.  Unfortunately, Xerces is a nasty 
piece and there are many difference between the versions.  For example, 
1.6 has '$XERCESHOME/include' where as 2.3 has 
'$XERCESHOME/include/xercesc' which seems kinda redundant.

configure output...

./configure --with-xerces 
--with-xerces-inc=/usr/local/xerces-c-2_3_0/include/xercesc

<chop)
checking for Xerces C++... requested, but compile or link fails!

g++ -I/usr/local/xerces-c-2_3_0/include/xercesc -DHAVE_JASPER_UUID -o 
conftest conftest.cpp -lxerces-c1_6_0 -lpthread -ljasper -logdi31 -lgif 
-ljpeg -lpng -lcfitsio -lgrass5 -lz -lm -ldl

In file included from conftest.cpp:1:
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:65:41: 
xercesc/util/XMLException.hpp: No such file or directory
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:66:41: 
xercesc/util/PanicHandler.hpp: No such file or directory
In file included from conftest.cpp:1:
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:70: 
syntax error before `;' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:82: 
syntax error before `{' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:91: 
syntax error before `&' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:104: 
syntax error before `{' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:140: 
syntax error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:146: 
syntax error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:191: 
`XMLUni' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:191: 
parse error before `::' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:222: 
parse error before `::' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:242: 
`FileHandle' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:242: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:253: 
`FileHandle' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:253: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:265: 
`FileHandle' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:265: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:277: 
syntax error before `(' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:289: 
syntax error before `(' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:301: 
syntax error before `(' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:313: 
syntax error before `(' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:324: 
syntax error before `(' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:343: 
`FileHandle' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:343: 
parse error before `,' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:364: 
`FileHandle' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:364: 
parse error before `const'
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:377: 
`FileHandle' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:377: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:402: 
syntax error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:421: 
syntax error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:435: 
`XMLCh' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:435: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:446: 
`XMLCh' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:446: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:458: 
`XMLCh' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:458: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:473: 
parse error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:494: 
syntax error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:573: 
syntax error before `*' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:710: 
syntax error before `(' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:769: 
`XMLCh' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:769: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:785: 
parse error before `}' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:788: 
`XMLPlatformUtilsException' was not declared in this scope
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:788: 
parse error before `)' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:803: 
ISO C++ forbids declaration of `MakeXMLException' with no type
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:803: 
initializer list being treated as compound expression
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:803: 
syntax error before `inline'
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:817: 
parse error before `=' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:830: 
syntax error before `::' token
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:837: 
syntax error before `::' token
conftest.cpp:2: syntax error before `int'

configure: error: Please correct Xerces options, or don't enable Xerces.


-------- Original Message --------
Subject: 	Re: [GRASSLIST:1175] GDAL support for GML
Date: 	Wed, 10 Sep 2003 13:31:07 -0600
From: 	Jack Varga <jvarga at boulder.net>
Organization: 	Frankie's Blue Room
To: 	Frank Warmerdam <warmerdam at pobox.com>
References: 	<3F5F53C1.5040109 at boulder.net> <3F5F6A17.30603 at pobox.com> 
<3F5F72FC.4040009 at boulder.net> <3F5F74AD.7060905 at pobox.com>



I suspect there is a problem with the more recent Xerces releases and 
gdal's references to it.  It is actually the simple conftest during 
config that fails.

I thought you might be using 1.6.0 as your example for compling 
includes a reference...

--with-xerces-lib=opts Xerces C++ link option(s)
                            ie. -L/usr/local/lib -lxerces-c1_6_0 -lpthread

...but I wasn't sure where to find reference to the necessary link options.

I'll grab the Xerces 1.6.0 source, retry, and post my results, but 1.6.0 
is five revisions old and several hundred fixes, additions, etc., behind. 

I will dig further and see if I can find out why???

-jv

Frank Warmerdam wrote:

> Jack Varga wrote:
>
>> Frank
>>
>> No worries and thanks.  I know you're a busy guy so I do what I can, 
>> but I suspected you might be the only person who could help.
>> Should I grab source from the tree then and retry?  When you say you 
>> installed Xerces to /usr/local does that mean /usr/local/Xercesc and 
>> everything Xerces (inludes, libs, binaries, etc.) under there?  Did 
>> you compile Xerces or grab the binaries?
>> I didn't spend a  lot of time digging on Xerces, but it seems light 
>> on documentation/detail...
>> Maybe a build direct from the source tree will solve my problem with 
>> HDF4 support as well if you saw my problem with that.
>> best regards,
>
>
> Jack,
>
> I don't honestly remember what I did.  I think there was some kind of 
> funny
> stuff about how xerces was built, but I just followed the guide info that
> came with it.  I would *imagine* there was some sort of default 
> install option
> that I used but I am not sure now.
>
> I see the Readme.html says:
>
>   http://xml.apache.org/xerces-c/build.html
>
>   Just remember, don't jump into the builds without reading the build 
> instructions
>   COMPLETELY.  It will save you lot of sleepless nights.
>
> Hmm, looking over my GDALmake.opt it looks like I am still linking 
> against
> Xerces 1.6.0 though I was using the 2.2.0 for a while.
>
> I guess my general advice is ... good luck muddling through!  It 
> shouldn't
> be rocket science, but I don't remember what I did.  That of course is 
> part
> of why I didn't answer before.
>
> For the source, just grab the last nightly snapshot if you don't want to
> fool with CVS.
>
> Best regards,
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20030911/c173966a/attachment.html


More information about the Gdal-dev mailing list