Make error: undefined reference to

I have been trying to build LibreOffice from the past few days and I’m getting stuck.

After running ./autogen.sh, I executed the command “make” just as how it as mentioned here. But I got the following errors.

//LibreOffice/core/workdir/LinkTarget/StaticLibrary/libopencollada_parser.a(COLLADASaxFWLVersionParser.o):
In function `COLLADASaxFWL::VersionParser::parse15(char const*, GeneratedSaxParser::ParserAttributes const&)':
COLLADASaxFWLVersionParser.cpp:(.text+0x342): undefined reference to `COLLADASaxFWL15::ColladaParserAutoGen15Private::ColladaParserAutoGen15Private(COLLADASaxFWL15::ColladaParserAutoGen15*, GeneratedSaxParser::IErrorHandler*)'
//LibreOffice/core/workdir/LinkTarget/StaticLibrary/libopencollada_parser.a(COLLADASaxFWLVersionParser.o): In function `_GLOBAL__sub_I_COLLADASaxFWLVersionParser.cpp':
COLLADASaxFWLVersionParser.cpp:(.text.startup+0x11f): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__asset__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x12b): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_animation_clips__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x137): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_animations__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x143): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_cameras__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x14f): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_controllers__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x15b): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_effects__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x167): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_force_fields__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x173): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_geometries__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x17f): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_images__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x18b): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_lights__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x197): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_materials__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x1a3): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_nodes__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x1af): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_physics_materials__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x1bb): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_physics_models__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x1c7): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_physics_scenes__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x1d3): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__library_visual_scenes__allChildren()'

COLLADASaxFWLVersionParser.cpp:(.text.startup+0x1df): undefined reference to `COLLADASaxFWL15::FunctionMapFactory::createFunctionMap__scene__allChildren()'

collect2: error: ld returned 1 exit status
make[1]:***[/....../LibreOffice/core/instdir/program/libavmedialo.so] Error 1
make: *** [build] Error 2

How do I fix this? Please help!

To fix this, instead of executing make immediately after running autogen.sh, I executed make opencollada.clean && make opencollada and then make

So what I did is as follows:

 
$ git clone git://anongit.freedesktop.org/libreoffice/core 
$ cd core
$ ./autogen.sh
$ make opencollada.clean && make opencollada
$ make

Thanks to people on the IRC channel! :slight_smile:

Please do you question on dev’s mailing list.

http://nabble.documentfoundation.org/Dev-f1639786.html