<HTML><HEAD><TITLE>[fdo-users] RE: Postgis/OGR providers on Ubuntu?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY dir=ltr>
<DIV> </DIV>
<DIV>What version of GDAL/OGR are you linking against? It could be finding older ogr libraries somewhere in the path and trying to link against them. May be it is linking against the GDAL that comes with FDO, which is an old version and will not work, since it doesn't have these API calls.</DIV>
<DIV> </DIV>
<DIV>When I compiled on Linux, I installed both GDAL and Xerces using my distribution's (Gentoo x64) installer rather than compile the ones that come with FDO. I recommend this approach -- and also remove xerces and gdal from the /usr/local/fdo-3.2.2/lib if they are there.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Traian</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> fdo-users-bounces@lists.osgeo.org on behalf of Jo Cook <BR><B>Sent:</B> Wed 8/15/2007 11:04 AM <BR><B>To:</B> fdo-users@lists.osgeo.org <BR><B>Cc:</B> <BR><B>Subject:</B> [fdo-users] RE: Postgis/OGR providers on Ubuntu?<BR><BR></FONT></DIV><BR>
<P><FONT size=2>OK,<BR><BR>By including /usr/local/fdo-3.2.2/lib in LD_LIBRARY_PATH I have got rid of<BR>warnings, but I still have the following error:<BR><BR>==============begin============<BR>/tmp/ccgHSqr3.o: In function `.L313':OgrFdoUtil.cpp:(.text+0x6cb): undefined<BR>reference to `OGRFeature::SetField(int, int, int, int, int, int, int, int)'<BR>/tmp/ccgHSqr3.o: In function `.L310':OgrFdoUtil.cpp:(.text+0x99b): undefined<BR>reference to `OGRFeature::SetField(int, int, int, int, int, int, int, int)'<BR>/tmp/ccCoNaFF.o: In function<BR>`OgrConnection::Close()':OgrProvider.cpp:(.text+0x83): undefined reference<BR>to `OGRDataSource::DestroyDataSource(OGRDataSource*)'<BR>/tmp/ccCoNaFF.o: In function `__static_initialization_and_destruction_0(int,<BR>int)':OgrProvider.cpp:(.text+0xbb4): undefined reference to `OGRRegisterAll'<BR>/tmp/ccCoNaFF.o: In function `OgrFeatureReader::GetDateTime(wchar_t<BR>const*)':OgrProvider.cpp:(.text+0xeb0): undefined reference to<BR>`OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*, int*,<BR>int*)'<BR>/tmp/ccCoNaFF.o: In function<BR>`OgrConnection::Open()':OgrProvider.cpp:(.text+0x177c): undefined reference<BR>to `OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**)'<BR>/tmp/ccCoNaFF.o: In function `OgrDataReader::GetDateTime(wchar_t<BR>const*)':OgrProvider.cpp:(.text+0x46fd): undefined reference to<BR>`OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*, int*,<BR>int*)'<BR>collect2: ld returned 1 exit status<BR>=========end=========<BR><BR>Any thoughts?<BR><BR>Jo<BR><BR><BR>Jo Cook wrote:<BR>><BR>> Hi,<BR>><BR>> Hmm, I thought I'd sorted that, but it appears not. New error message from<BR>> compile.sh:<BR>><BR>> ===========begin error msg========<BR>><BR>> /usr/bin/ld: warning: libxalanMsg.so.17, needed by<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so, not found (try using -rpath or<BR>> -rpath-link)<BR>> /usr/bin/ld: warning: libxerces-c.so.25, needed by<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so, not found (try using -rpath or<BR>> -rpath-link)<BR>> /tmp/ccs942wc.o: In function `.L313':OgrFdoUtil.cpp:(.text+0x6cb):<BR>> undefined reference to `OGRFeature::SetField(int, int, int, int, int, int,<BR>> int, int)'<BR>> /tmp/ccs942wc.o: In function `.L310':OgrFdoUtil.cpp:(.text+0x99b):<BR>> undefined reference to `OGRFeature::SetField(int, int, int, int, int, int,<BR>> int, int)'<BR>> /tmp/ccXqYF0e.o: In function<BR>> `OgrConnection::Close()':OgrProvider.cpp:(.text+0x83): undefined reference<BR>> to `OGRDataSource::DestroyDataSource(OGRDataSource*)'<BR>> /tmp/ccXqYF0e.o: In function<BR>> `__static_initialization_and_destruction_0(int,<BR>> int)':OgrProvider.cpp:(.text+0xbb4): undefined reference to<BR>> `OGRRegisterAll'<BR>> /tmp/ccXqYF0e.o: In function `OgrFeatureReader::GetDateTime(wchar_t<BR>> const*)':OgrProvider.cpp:(.text+0xeb0): undefined reference to<BR>> `OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*, int*,<BR>> int*)'<BR>> /tmp/ccXqYF0e.o: In function<BR>> `OgrConnection::Open()':OgrProvider.cpp:(.text+0x177c): undefined<BR>> reference to `OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**)'<BR>> /tmp/ccXqYF0e.o: In function `OgrDataReader::GetDateTime(wchar_t<BR>> const*)':OgrProvider.cpp:(.text+0x46fd): undefined reference to<BR>> `OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*, int*,<BR>> int*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::DTDEntityDecl::getProtoType() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::ProblemListener::~ProblemListener()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLTransService::makeNewTranscoderFor(unsigned short const*,<BR>> xercesc_2_5::XMLTransService::Codes&, unsigned int,<BR>> xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XSLTInputSource::XSLTInputSource()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLRefInfo::getProtoType() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLPlatformUtils::Terminate()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::InputSource::setPublicId(unsigned short const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char const*,<BR>> xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_5::MemoryManager*,<BR>> xercesc_2_5::XMLGrammarPool*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xercesc_2_5::XMLException'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xercesc_2_5::BinInputStream'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::AbstractDOMParser::adoptDocument()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::Base64::decode(unsigned char const*, unsigned int*,<BR>> xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::BinInputStream::~BinInputStream()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::SAXParseException::getColumnNumber() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::DTDEntityDecl::isSerializable() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMemory::operator delete(void*,<BR>> xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XercesDOMParser::XercesDOMParser(xercesc_2_5::XMLValidator*,<BR>> xercesc_2_5::MemoryManager*, xercesc_2_5::XMLGrammarPool*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLUni::fgXercesLoadExternalDTD'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::SAXParseException::getLineNumber() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanTransformer::XalanTransformer()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLUni::fgDOMWRTFormatPrettyPrint'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLUni::fgXercesSchema'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLPlatformUtils::fgMemoryManager'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanTransformer::setStylesheetParam(xalanc_1_7::XalanDOMString<BR>> const&, xalanc_1_7::XalanDOMString const&)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xercesc_2_5::XMLEntityDecl'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xalanc_1_7::ProblemListener'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xercesc_2_5::SAXParseException'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanTransformer::transform(xalanc_1_7::XSLTInputSource<BR>> const&, xalanc_1_7::XSLTInputSource const&, void*, unsigned int (*)(char<BR>> const*, unsigned int, void*), void (*)(void*))'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLAttDefList::getProtoType() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMemory::operator new(unsigned int)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::ProblemListener::ProblemListener()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::SAXParseException::~SAXParseException()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanDOMString::XalanDOMString(char const*, unsigned int)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLRefInfo::serialize(xercesc_2_5::XSerializeEngine&)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::InputSource::setEncoding(unsigned short const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::SAXParseException::SAXParseException(xercesc_2_5::SAXParseException<BR>> const&)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMemory::operator delete(void*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanTransformer::initialize()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLString::release(unsigned char**)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLString::release(char**)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xercesc_2_5::InputSource'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLChar1_0::isValidQName(unsigned short const*, unsigned<BR>> int)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::AbstractDOMParser::parse(char const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::InputSource::InputSource(xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanTransformer::~XalanTransformer()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XercesDOMParser::setErrorHandler(xercesc_2_5::ErrorHandler*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::Base64::encode(unsigned char const*, unsigned int, unsigned<BR>> int*, xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLChar1_0::fgCharCharsTable1_0'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLRefInfo::isSerializable() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanDOMString::transcode() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::DOMImplementationRegistry::getDOMImplementation(unsigned<BR>> short const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLString::transcode(unsigned short const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::BinInputStream::BinInputStream()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xalanc_1_7::XSLTInputSource'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLString::release(unsigned short**)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLAttDefList::isSerializable() const'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLPlatformUtils::fgTransService'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xalanc_1_7::XalanTransformer::terminate()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::InputSource::~InputSource()'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::InputSource::setSystemId(unsigned short const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `typeinfo for<BR>> xalanc_1_7::XSLException'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLString::transcode(char const*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMLUni::fgXercescDefaultLocale'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::XMemory::operator new(unsigned int,<BR>> xercesc_2_5::MemoryManager*)'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to `vtable for<BR>> xalanc_1_7::XSLTInputSource'<BR>> /usr/local/fdo-3.2.2/lib/libFDO.so: undefined reference to<BR>> `xercesc_2_5::LocalFileFormatTarget::LocalFileFormatTarget(char const*,<BR>> xercesc_2_5::MemoryManager*)'collect2: ld returned 1 exit status<BR>> =======end error msg===========<BR>><BR>> So- do I need to install libxalan and libxerces or is it just asking me to<BR>> link something?<BR>><BR>> Thanks<BR>><BR>> Jo<BR>><BR>><BR>><BR>><BR>><BR>> Traian Stanev wrote:<BR>>><BR>>> <BR>>> Hi,<BR>>> <BR>>> Could you post the contents of the compilation shell file that you are<BR>>> using to compile the OGR provider? It should be a one line shell script.<BR>>> The one you are using may have the wrong location for FDO...<BR>>> FYI if you don't hear again from me till next week, it is because I have<BR>>> no internet where I am currently.<BR>>> <BR>>> Traian<BR>>><BR>>> -----Original Message-----<BR>>> From: fdo-users-bounces@lists.osgeo.org on behalf of Jo Cook<BR>>> Sent: Wed 8/15/2007 7:01 AM<BR>>> To: fdo-users@lists.osgeo.org<BR>>> Cc:<BR>>> Subject: [fdo-users] Postgis/OGR providers on Ubuntu?<BR>>> <BR>>> <BR>>><BR>>><BR>>> Hi All,<BR>>> <BR>>> I would like to add the OGR and Postgis providers to my Ubuntu install<BR>>> of<BR>>> Mapguide Open Source and would appreciate it if someone could give me a<BR>>> little help with it. I have tried to install the ogr provider from svn,<BR>>> but<BR>>> this failed at the beginning of the configure stage with the message<BR>>> <BR>>> stdafx.h:3:17: error: Fdo.h: No such file or directory<BR>>> <BR>>> followed by line upon line of error. I can post a log file of this if<BR>>> that<BR>>> would be handy. Because the readme file with the source said that it<BR>>> wanted<BR>>> gdal 1.4, and it wanted it somewhere accessible, I compiled and<BR>>> installed<BR>>> gdal1.4.0 from source, which installed itself in /usr/local/share/gdal.<BR>>> My<BR>>> fdo installation (installed as part of the mapguide installation) is in<BR>>> /usr/local/fdo-3.2.2.<BR>>> <BR>>> When I look at the postgis provider in svn, I can't even tell how I<BR>>> would go<BR>>> about installing it!<BR>>> <BR>>> I thought that another option would be to include the providers into the<BR>>> checkoutsvn.sh script for the fdo build, but I don't really know how I<BR>>> would<BR>>> proceed from there.<BR>>> <BR>>> If anyone can give me some pointers on this I'd be extremely grateful as<BR>>> I<BR>>> have a very lonely postgresql database that's simply yearning to be put<BR>>> on a<BR>>> map!<BR>>> <BR>>> Many thanks<BR>>> <BR>>> Jo<BR>>> <BR>>> --<BR>>> View this message in context:<BR>>> <A href="http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.html#a12158992">http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.html#a12158992</A><BR>>> Sent from the fdo-users mailing list archive at Nabble.com.<BR>>> <BR>>> _______________________________________________<BR>>> fdo-users mailing list<BR>>> fdo-users@lists.osgeo.org<BR>>> <A href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</A><BR>>> <BR>>><BR>>><BR>>> _______________________________________________<BR>>> fdo-users mailing list<BR>>> fdo-users@lists.osgeo.org<BR>>> <A href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</A><BR>>><BR>>><BR>><BR>><BR><BR>--<BR>View this message in context: <A href="http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.html#a12163869">http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.html#a12163869</A><BR>Sent from the fdo-users mailing list archive at Nabble.com.<BR><BR>_______________________________________________<BR>fdo-users mailing list<BR>fdo-users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</A><BR></FONT></P></BLOCKQUOTE></BODY></HTML>