Ask Your Question
0

make error: undefined reference to

asked 2017-01-20 20:13:13 +0200

punarvasu510 gravatar image

updated 2017-01-20 20:32:14 +0200

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.

/<somepath>/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*)'
/<somepath>/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!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2017-01-21 16:12:54 +0200

punarvasu510 gravatar image

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! :)

edit flag offensive delete link more
0

answered 2017-01-21 00:34:43 +0200

m.a.riosv gravatar image

Please do you question on dev's mailing list.

http://nabble.documentfoundation.org/...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-20 20:13:13 +0200

Seen: 272 times

Last updated: Jan 21 '17