<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Frank, et al;<br>
<br>
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.&nbsp; I think I'm
getting closer after modifying&nbsp;
'--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.&nbsp; I've included error message
below.<br>
<br>
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.<br>
<br>
<a class="moz-txt-link-freetext" href="http://bugzilla.remotesensing.org/show_bug.cgi?id=340">http://bugzilla.remotesensing.org/show_bug.cgi?id=340</a><br>
<br>
I can add the legwork I've done to the bug report, but not sure how
much that will help.&nbsp; My problem is the exact same as the initial
reporter's.&nbsp; 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.&nbsp; <br>
<br>
One last thought, there have been a couple of mentions of Xerces'
default location.&nbsp; In fact if you compile Xerces from source there is
not default location.&nbsp; 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.&nbsp; Unfortunately, Xerces is a nasty
piece and there are many difference between the versions.&nbsp; For example,
1.6 has '$XERCESHOME/include' where as 2.3 has
'$XERCESHOME/include/xercesc' which seems kinda redundant.<br>
<br>
configure output...<br>
<br>
./configure --with-xerces
--with-xerces-inc=/usr/local/xerces-c-2_3_0/include/xercesc<br>
<br>
&lt;chop)<br>
checking for Xerces C++... requested, but compile or link fails!<br>
<br>
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<br>
<br>
In file included from conftest.cpp:1:<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:65:41:
xercesc/util/XMLException.hpp: No such file or directory<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:66:41:
xercesc/util/PanicHandler.hpp: No such file or directory<br>
In file included from conftest.cpp:1:<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:70:
syntax error before `;' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:82:
syntax error before `{' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:91:
syntax error before `&amp;' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:104:
syntax error before `{' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:140:
syntax error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:146:
syntax error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:191:
`XMLUni' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:191:
parse error before `::' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:222:
parse error before `::' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:242:
`FileHandle' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:242:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:253:
`FileHandle' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:253:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:265:
`FileHandle' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:265:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:277:
syntax error before `(' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:289:
syntax error before `(' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:301:
syntax error before `(' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:313:
syntax error before `(' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:324:
syntax error before `(' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:343:
`FileHandle' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:343:
parse error before `,' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:364:
`FileHandle' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:364:
parse error before `const'<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:377:
`FileHandle' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:377:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:402:
syntax error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:421:
syntax error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:435:
`XMLCh' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:435:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:446:
`XMLCh' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:446:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:458:
`XMLCh' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:458:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:473:
parse error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:494:
syntax error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:573:
syntax error before `*' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:710:
syntax error before `(' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:769:
`XMLCh' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:769:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:785:
parse error before `}' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:788:
`XMLPlatformUtilsException' was not declared in this scope<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:788:
parse error before `)' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:803:
ISO C++ forbids declaration of `MakeXMLException' with no type<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:803:
initializer list being treated as compound expression<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:803:
syntax error before `inline'<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:817:
parse error before `=' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:830:
syntax error before `::' token<br>
/usr/local/xerces-c-2_3_0/include/xercesc/util/PlatformUtils.hpp:837:
syntax error before `::' token<br>
conftest.cpp:2: syntax error before `int'<br>
<br>
configure: error: Please correct Xerces options, or don't enable Xerces.<br>
<br>
<br>
-------- Original Message --------
<table cellpadding="0" cellspacing="0" border="0">
  <tbody>
    <tr>
      <th valign="baseline" align="right" nowrap="nowrap">Subject: </th>
      <td>Re: [GRASSLIST:1175] GDAL support for GML</td>
    </tr>
    <tr>
      <th valign="baseline" align="right" nowrap="nowrap">Date: </th>
      <td>Wed, 10 Sep 2003 13:31:07 -0600</td>
    </tr>
    <tr>
      <th valign="baseline" align="right" nowrap="nowrap">From: </th>
      <td>Jack Varga <a class="moz-txt-link-rfc2396E" href="mailto:jvarga@boulder.net">&lt;jvarga@boulder.net&gt;</a></td>
    </tr>
    <tr>
      <th valign="baseline" align="right" nowrap="nowrap">Organization:
      </th>
      <td>Frankie's Blue Room</td>
    </tr>
    <tr>
      <th valign="baseline" align="right" nowrap="nowrap">To: </th>
      <td>Frank Warmerdam <a class="moz-txt-link-rfc2396E" href="mailto:warmerdam@pobox.com">&lt;warmerdam@pobox.com&gt;</a></td>
    </tr>
    <tr>
      <th valign="baseline" align="right" nowrap="nowrap">References: </th>
      <td><a class="moz-txt-link-rfc2396E" href="mailto:3F5F53C1.5040109@boulder.net">&lt;3F5F53C1.5040109@boulder.net&gt;</a>
<a class="moz-txt-link-rfc2396E" href="mailto:3F5F6A17.30603@pobox.com">&lt;3F5F6A17.30603@pobox.com&gt;</a> <a class="moz-txt-link-rfc2396E" href="mailto:3F5F72FC.4040009@boulder.net">&lt;3F5F72FC.4040009@boulder.net&gt;</a>
<a class="moz-txt-link-rfc2396E" href="mailto:3F5F74AD.7060905@pobox.com">&lt;3F5F74AD.7060905@pobox.com&gt;</a></td>
    </tr>
  </tbody>
</table>
<br>
<br>
<pre>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:

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

</pre>
</body>
</html>