[fdo-users] RE: Postgis/OGR providers on Ubuntu?

Jo Cook j.cook at OXFORDARCH.CO.UK
Wed Aug 15 11:04:29 EDT 2007


OK,

By including /usr/local/fdo-3.2.2/lib in LD_LIBRARY_PATH I have got rid of
warnings, but I still have the following error: 

==============begin============
/tmp/ccgHSqr3.o: In function `.L313':OgrFdoUtil.cpp:(.text+0x6cb): undefined
reference to `OGRFeature::SetField(int, int, int, int, int, int, int, int)'
/tmp/ccgHSqr3.o: In function `.L310':OgrFdoUtil.cpp:(.text+0x99b): undefined
reference to `OGRFeature::SetField(int, int, int, int, int, int, int, int)'
/tmp/ccCoNaFF.o: In function
`OgrConnection::Close()':OgrProvider.cpp:(.text+0x83): undefined reference
to `OGRDataSource::DestroyDataSource(OGRDataSource*)'
/tmp/ccCoNaFF.o: In function `__static_initialization_and_destruction_0(int,
int)':OgrProvider.cpp:(.text+0xbb4): undefined reference to `OGRRegisterAll'
/tmp/ccCoNaFF.o: In function `OgrFeatureReader::GetDateTime(wchar_t
const*)':OgrProvider.cpp:(.text+0xeb0): undefined reference to
`OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*, int*,
int*)'
/tmp/ccCoNaFF.o: In function
`OgrConnection::Open()':OgrProvider.cpp:(.text+0x177c): undefined reference
to `OGRSFDriverRegistrar::Open(char const*, int, OGRSFDriver**)'
/tmp/ccCoNaFF.o: In function `OgrDataReader::GetDateTime(wchar_t
const*)':OgrProvider.cpp:(.text+0x46fd): undefined reference to
`OGRFeature::GetFieldAsDateTime(int, int*, int*, int*, int*, int*, int*,
int*)'
collect2: ld returned 1 exit status
=========end=========

Any thoughts?

Jo


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

-- 
View this message in context: http://www.nabble.com/Postgis-OGR-providers-on-Ubuntu--tf4272057s18162.html#a12163869
Sent from the fdo-users mailing list archive at Nabble.com.



More information about the fdo-users mailing list