[mapguide-users] OGR Provider in FC4

Eliot Cline eliot at gospatial.com
Wed Jun 28 00:09:21 EDT 2006


Hello Traian,

Thank you for your help. Yes, the compilation went fine for both the MGOS software and relevant components. I had some problems with the mgserver hanging, as well as the "make check" step for compiling the debug profile. Fixed that by upgrading gcc to 4.0.2. My entry in providers.xml is:

  <FeatureProvider>
 <Name>OSGeo.OGR.0.1</Name>
 <DisplayName>FDO Provider forr OGR</DisplayName>
 <Description>Access to OGR data sources</Description>
 <IsManaged>False</IsManaged>
 <Version>0.1.0.0</Version>
 <FeatureDataObjectsVersion>3.0.0.0</FeatureDataObjectsVersion>
 <LibraryPath>/usr/local/fdo-3.0.0/lib/libOGRProvider.so</LibraryPath>
  </FeatureProvider> 

Shape and SDF providers are working fine, but unfornately they are of no use to me. I checked the server error log and there were some messages about FDO. The funny things is that these messages showed up in the log yesterday morning. I have been messing about constantly since then and no more error mesages of any kind have been written to the log since that time. I even changed the name of libOGRProvider.so in providers.xml hoping to force an error of some kind just to see if there was any attempt by the server to actually load the .so file. Here is the message I found in the log:

<2006-06-27T08:45:14>    
 Error: An exception occurred in FDO component.
        CLNT_8_UNABLE_TO_LOAD_LIBRARY
 StackTrace:
  - MgOpTestFeatureSourceConnection.Execute line 104 file OpTestFeatureSourceConnection.cpp
  - MgFdoConnectionManager.Open line 263 file FdoConnectionManager.cppAn exception occurred in FDO component.
CLNT_8_UNABLE_TO_LOAD_LIBRARY

This is the only error in the log, but is repeated a number of time. Ran ldd - r on libOGRProvider.so and it looks ok, output is below. One other strange thing, that is a little off-topic, is that apache is now spitting a dummy when I try to shut it down with apachectl --stop. It throws this error:

(98)Address already in use: make_sock: could not bind to address [::]:8008
no listening sockets available, shutting down
Unable to open logs

The only thing listening to 8008 is apache, so I don't get this one at all. All was well until I upgraded gcc. Don't know if it is related or not, but if anybody has seen this and knows how to fix it, please let me know.

Regards,

Eliot Cline


Below is the output of ldd -r libOGRProvider.so 

 linux-gate.so.1 =>  (0x003e3000)
 libFdo.so.3 => /usr/local/fdo-3.0.0/lib/libFdo.so.3 (0x00516000)
 libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0x00bb2000)
 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00185000)
 libm.so.6 => /lib/libm.so.6 (0x00111000)
 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00135000)
 libc.so.6 => /lib/libc.so.6 (0x00264000)
 libxalan-c.so => /usr/local/fdo-3.0.0/lib/libxalan-c.so (0x00f13000)
 libxalanMsg.so.17 => /usr/local/fdo-3.0.0/lib/libxalanMsg.so.17 (0x0013f000)
 libxerces-c.so.25 => /usr/local/fdo-3.0.0/lib/libxerces-c.so.25 (0x07cbc000)
 libpthread.so.0 => /lib/libpthread.so.0 (0x00147000)
 libdl.so.2 => /lib/libdl.so.2 (0x00159000)
 libgeos.so.2 => /usr/local/lib/libgeos.so.2 (0x008a3000)
 libungif.so.4 => /usr/lib/libungif.so.4 (0x0015d000)
 libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00165000)
 libtiff.so.3 => /usr/lib/libtiff.so.3 (0x0038e000)
 libpng12.so.0 => /usr/lib/libpng12.so.0 (0x003e4000) 
 libpq.so.4 => /usr/local/pgsql/lib/libpq.so.4 (0x00408000)
 libz.so.1 => /usr/lib/libz.so.1 (0x0041f000)
 librt.so.1 => /lib/librt.so.1 (0x00432000)
 /lib/ld-linux.so.2 (0x00b96000)
 libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00a61000)
 libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00446000)
 libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00a6a000)
 libcrypt.so.1 => /lib/libcrypt.so.1 (0x00460000)
 libresolv.so.2 => /lib/libresolv.so.2 (0x0048e000)
 libnsl.so.1 => /lib/libnsl.so.1 (0x004a1000)


  ----- Original Message ----- 
  From: Traian Stanev 
  To: users at mapguide.osgeo.org 
  Sent: Tuesday, June 27, 2006 7:44 PM
  Subject: RE: [mapguide-users] OGR Provider in FC4



  It could be several things causing this. I assume you compiled and installed the provider successfully (by adding an entry to providers.xml), since you get a Data Connection page for it in Studio. One thing I would check is whether the libOGRProvider.so has missing dependencies (by running ldd -r on it). Also check the MapGuide server error log for any Fdo exceptions -- there should be a message if it can't even create a connection to OGR. If you run the server from a command line (using /interactive), you will also be able to see the exceptions printed on the console (the OGR provider may also print some debug information to the console that you won't see in the logs). Also make sure the FDO version listed in providers.xml entry for OGR matches the versions listed for the other providers (there are some overzealous version checks in the 1.0 code).



  Traian



------------------------------------------------------------------------------
  From: Eliot Cline [mailto:eliot at gospatial.com] 
  Sent: Tuesday, June 27, 2006 12:03 AM
  To: users at mapguide.osgeo.org
  Subject: [mapguide-users] OGR Provider in FC4


  Hi,

  I just got MGOS up and running today on Fedora Core 4. I am trying to use the OGR provider to access data in PostgreSQL. When I try to create a new data connection in Studio, the connection properties section is blank. No "DataSource" or "ReadOnly" properties showing. Any help would be appreciated.

  Thanks,

  Eliot Cline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060628/0a45bff4/attachment.html


More information about the Mapguide-users mailing list