Author Topic: configure/make error when libtinyxml-dev installed.  (Read 4961 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
configure/make error when libtinyxml-dev installed.
« on: May 10, 2017, 03:55:06 am »
Code
libtinyxml-dev TinyXml library - header and static library

Code
.libs/nativeparser.o: In function `NativeParser::OnProjectLoadingHook(cbProject*, TiXmlElement*, bool)':
nativeparser.cpp:(.text+0xe81f): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
nativeparser.cpp:(.text+0xe837): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
nativeparser.cpp:(.text+0xe87f): undefined reference to `TiXmlNode::NextSiblingElement(char const*) const'
nativeparser.cpp:(.text+0xe896): undefined reference to `TiXmlElement::Attribute(char const*) const'
nativeparser.cpp:(.text+0xe8a6): undefined reference to `TiXmlElement::Attribute(char const*) const'
nativeparser.cpp:(.text+0xe8f3): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
nativeparser.cpp:(.text+0xe90d): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
nativeparser.cpp:(.text+0xe918): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
nativeparser.cpp:(.text+0xe92c): undefined reference to `TiXmlElement::~TiXmlElement()'
nativeparser.cpp:(.text+0xe954): undefined reference to `TiXmlNode::Clear()'
nativeparser.cpp:(.text+0xe996): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
nativeparser.cpp:(.text+0xe9e8): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
nativeparser.cpp:(.text+0xe9f3): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
nativeparser.cpp:(.text+0xea07): undefined reference to `TiXmlElement::~TiXmlElement()'
nativeparser.cpp:(.text+0xea85): undefined reference to `TiXmlElement::~TiXmlElement()'

Trying to get past this error by using "--disable-code-completion" in configuration.

Code
$ uname -a
Linux debian 4.9.0-2-amd64 #1 SMP Debian 4.9.18-1 (2017-03-30) x86_64 GNU/Linux

Code
Revision: 11059

Tim S.
« Last Edit: May 10, 2017, 04:08:34 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #1 on: May 10, 2017, 04:22:22 am »
I had to disable three core plugins for the same issue.

Code
--disable-code-completion --disable-debugger --disable-projects-importer
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #2 on: May 10, 2017, 04:24:02 am »
Code
.libs/envvars.o: In function `EnvVars::OnProjectLoadingHook(cbProject*, TiXmlElement*, bool)':
envvars.cpp:(.text+0x1f7f): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
envvars.cpp:(.text+0x1fa0): undefined reference to `TiXmlElement::Attribute(char const*) const'
envvars.cpp:(.text+0x2109): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
envvars.cpp:(.text+0x2121): undefined reference to `TiXmlNode::Clear()'
envvars.cpp:(.text+0x2261): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
envvars.cpp:(.text+0x22c0): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
envvars.cpp:(.text+0x22cb): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
envvars.cpp:(.text+0x22df): undefined reference to `TiXmlElement::~TiXmlElement()'
envvars.cpp:(.text+0x2391): undefined reference to `TiXmlElement::~TiXmlElement()'

Looks like I am going to uninstall libtinyxml-dev because I need the envvars plugin.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: configure/make error when libtinyxml-dev installed.
« Reply #3 on: May 10, 2017, 06:16:40 am »
Can you tell me the debian-version (not the kernel) ? stable, testing, unstable ?
So I can set up a test-machine.
I use it on Fedora with installed tinyxml-devel without issues.
The config.log (at least the tinyxml-related parts) is also of interest.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #4 on: May 10, 2017, 03:40:11 pm »
Can you tell me the debian-version (not the kernel) ? stable, testing, unstable ?
So I can set up a test-machine.
I use it on Fedora with installed tinyxml-devel without issues.
The config.log (at least the tinyxml-related parts) is also of interest.

Edit: stretch it was testing; but, it looks like it might be stable now or in the very near future.

I will try reinstalling tinyxml-devel and post the config.log.

Tim S.
« Last Edit: May 10, 2017, 03:42:31 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #5 on: May 10, 2017, 04:57:56 pm »
Trying to attach the config.log a second time.

I am still building Code::Blocks to confirm the problem returned after installing libtinyxml-dev.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #6 on: May 10, 2017, 05:18:59 pm »
Still has the make error.

Code
make[4]: Entering directory '/home/stahta01/devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/codecompletion'
/bin/bash ../../../libtool  --tag=CXX   --mode=link g++  -O2 -ffast-math  -Winvalid-pch -fPIC -fexceptions -module -shared -version-info 0:1:0 -no-undefined -avoid-version -Wl,--no-undefined  -o libcodecompletion.la -rpath /opt/codeblocks-git/lib/codeblocks/plugins ccoptionsdlg.lo ccoptionsprjdlg.lo cctreectrl.lo classbrowser.lo classbrowserbuilderthread.lo codecompletion.lo coderefactoring.lo doxygen_parser.lo gotofunctiondlg.lo insertclassmethoddlg.lo nativeparser.lo nativeparser_base.lo selectincludefile.lo systemheadersthread.lo parser/ccdebuginfo.lo parser/cclogger.lo parser/parser.lo parser/parser_base.lo parser/parserthread.lo parser/parserthreadedtask.lo parser/profiletimer.lo parser/token.lo parser/tokenizer.lo parser/tokentree.lo parser/searchtree.lo parser/expression.lo ../../sdk/libcodeblocks.la -L/usr/lib/x86_64-linux-gnu -pthread   -lwx_gtk2u_aui-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0  -lpthread -ldl
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o  .libs/ccoptionsdlg.o .libs/ccoptionsprjdlg.o .libs/cctreectrl.o .libs/classbrowser.o .libs/classbrowserbuilderthread.o .libs/codecompletion.o .libs/coderefactoring.o .libs/doxygen_parser.o .libs/gotofunctiondlg.o .libs/insertclassmethoddlg.o .libs/nativeparser.o .libs/nativeparser_base.o .libs/selectincludefile.o .libs/systemheadersthread.o parser/.libs/ccdebuginfo.o parser/.libs/cclogger.o parser/.libs/parser.o parser/.libs/parser_base.o parser/.libs/parserthread.o parser/.libs/parserthreadedtask.o parser/.libs/profiletimer.o parser/.libs/token.o parser/.libs/tokenizer.o parser/.libs/tokentree.o parser/.libs/searchtree.o parser/.libs/expression.o   -Wl,-rpath -Wl,/home/stahta01/devel/open_source_code/version_control/codeblocks_https_metadata-git/src/sdk/.libs -Wl,-rpath -Wl,/opt/codeblocks-git/lib ../../sdk/.libs/libcodeblocks.so -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_aui-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lpthread -ldl -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/6/crtfastmath.o /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o  -O2 -Wl,--no-undefined -pthread   -pthread -Wl,-soname -Wl,libcodecompletion.so -o .libs/libcodecompletion.so
.libs/nativeparser.o: In function `NativeParser::OnProjectLoadingHook(cbProject*, TiXmlElement*, bool)':
nativeparser.cpp:(.text+0xe81f): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
nativeparser.cpp:(.text+0xe837): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
nativeparser.cpp:(.text+0xe87f): undefined reference to `TiXmlNode::NextSiblingElement(char const*) const'
nativeparser.cpp:(.text+0xe896): undefined reference to `TiXmlElement::Attribute(char const*) const'
nativeparser.cpp:(.text+0xe8a6): undefined reference to `TiXmlElement::Attribute(char const*) const'
nativeparser.cpp:(.text+0xe8f3): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
nativeparser.cpp:(.text+0xe90d): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
nativeparser.cpp:(.text+0xe918): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
nativeparser.cpp:(.text+0xe92c): undefined reference to `TiXmlElement::~TiXmlElement()'
nativeparser.cpp:(.text+0xe954): undefined reference to `TiXmlNode::Clear()'
nativeparser.cpp:(.text+0xe996): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
nativeparser.cpp:(.text+0xe9e8): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
nativeparser.cpp:(.text+0xe9f3): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
nativeparser.cpp:(.text+0xea07): undefined reference to `TiXmlElement::~TiXmlElement()'
nativeparser.cpp:(.text+0xea85): undefined reference to `TiXmlElement::~TiXmlElement()'
collect2: error: ld returned 1 exit status
Makefile:684: recipe for target 'libcodecompletion.la' failed
make[4]: *** [libcodecompletion.la] Error 1

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: configure/make error when libtinyxml-dev installed.
« Reply #7 on: May 10, 2017, 11:37:33 pm »
I commit a fix this evening (UTC+2).
C::B core is already fixed in my working copy, I compile contrib-plugins currently.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: configure/make error when libtinyxml-dev installed.
« Reply #8 on: May 11, 2017, 01:02:57 am »
Can you test revision 11062 ?
I hope I did not miss a plugin.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #9 on: May 11, 2017, 01:07:33 am »
Can you test revision 11062 ?
I hope I did not miss a plugin.

OK, Rebooting now to Linux; be about 1 to 2 hours before it gets done.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #10 on: May 11, 2017, 01:53:35 am »
Code
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginS.o  .libs/openfileslistplugin.o   -Wl,-rpath -Wl,/home/stahta01/devel/open_source_code/version_control/codeblocks_https_metadata-git/src/sdk/.libs -Wl,-rpath -Wl,/opt/codeblocks-git/lib ../../sdk/.libs/libcodeblocks.so -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_aui-3.0 -lwx_gtk2u_propgrid-3.0 -lwx_gtk2u_richtext-3.0 -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lpthread -ldl -L/usr/lib/gcc/x86_64-linux-gnu/6 -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/6/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/6/crtfastmath.o /usr/lib/gcc/x86_64-linux-gnu/6/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crtn.o  -O2 -Wl,--no-undefined -pthread   -pthread -Wl,-soname -Wl,libopenfileslist.so -o .libs/libopenfileslist.so
.libs/openfileslistplugin.o: In function `OpenFilesListPlugin::OnProjectOpened(CodeBlocksEvent&)':
openfileslistplugin.cpp:(.text+0x3e7c): undefined reference to `TiXmlDocument::TiXmlDocument()'
openfileslistplugin.cpp:(.text+0x402b): undefined reference to `vtable for TiXmlDocument'
openfileslistplugin.cpp:(.text+0x405e): undefined reference to `TiXmlNode::~TiXmlNode()'
openfileslistplugin.cpp:(.text+0x410c): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
openfileslistplugin.cpp:(.text+0x4124): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
openfileslistplugin.cpp:(.text+0x416a): undefined reference to `TiXmlElement::Attribute(char const*) const'
openfileslistplugin.cpp:(.text+0x4184): undefined reference to `TiXmlElement::Attribute(char const*) const'
openfileslistplugin.cpp:(.text+0x4255): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
openfileslistplugin.cpp:(.text+0x4293): undefined reference to `TiXmlElement::Attribute(char const*) const'
openfileslistplugin.cpp:(.text+0x4366): undefined reference to `TiXmlNode::NextSiblingElement() const'
openfileslistplugin.cpp:(.text+0x439f): undefined reference to `TiXmlNode::NextSiblingElement() const'
openfileslistplugin.cpp:(.text+0x447f): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
.libs/openfileslistplugin.o: In function `OpenFilesListPlugin::OnProjectClosed(CodeBlocksEvent&)':
openfileslistplugin.cpp:(.text+0x66e4): undefined reference to `TiXmlDocument::TiXmlDocument()'
openfileslistplugin.cpp:(.text+0x66eb): undefined reference to `TiXmlBase::condenseWhiteSpace'
openfileslistplugin.cpp:(.text+0x6757): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
openfileslistplugin.cpp:(.text+0x67e0): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
openfileslistplugin.cpp:(.text+0x67ef): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
openfileslistplugin.cpp:(.text+0x6801): undefined reference to `TiXmlElement::~TiXmlElement()'
openfileslistplugin.cpp:(.text+0x6825): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
openfileslistplugin.cpp:(.text+0x68a3): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
openfileslistplugin.cpp:(.text+0x6948): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
openfileslistplugin.cpp:(.text+0x695a): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
openfileslistplugin.cpp:(.text+0x6969): undefined reference to `TiXmlElement::~TiXmlElement()'
openfileslistplugin.cpp:(.text+0x6995): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
openfileslistplugin.cpp:(.text+0x6ab9): undefined reference to `vtable for TiXmlDocument'
openfileslistplugin.cpp:(.text+0x6aec): undefined reference to `TiXmlNode::~TiXmlNode()'
openfileslistplugin.cpp:(.text+0x6c43): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
openfileslistplugin.cpp:(.text+0x6e13): undefined reference to `TiXmlElement::~TiXmlElement()'
openfileslistplugin.cpp:(.text+0x6e46): undefined reference to `TiXmlElement::~TiXmlElement()'
.libs/openfileslistplugin.o: In function `TiXmlDocument::~TiXmlDocument()':
openfileslistplugin.cpp:(.text._ZN13TiXmlDocumentD2Ev[_ZN13TiXmlDocumentD5Ev]+0x3): undefined reference to `vtable for TiXmlDocument'
openfileslistplugin.cpp:(.text._ZN13TiXmlDocumentD2Ev[_ZN13TiXmlDocumentD5Ev]+0x2c): undefined reference to `TiXmlNode::~TiXmlNode()'
.libs/openfileslistplugin.o: In function `TiXmlDocument::~TiXmlDocument()':
openfileslistplugin.cpp:(.text._ZN13TiXmlDocumentD0Ev[_ZN13TiXmlDocumentD5Ev]+0x3): undefined reference to `vtable for TiXmlDocument'
openfileslistplugin.cpp:(.text._ZN13TiXmlDocumentD0Ev[_ZN13TiXmlDocumentD5Ev]+0x2b): undefined reference to `TiXmlNode::~TiXmlNode()'
collect2: error: ld returned 1 exit status
Makefile:544: recipe for target 'libopenfileslist.la' failed
make[3]: *** [libopenfileslist.la] Error 1

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #11 on: May 11, 2017, 06:14:38 am »
Now building Revision: 11063.

With
Code
./configure --prefix=/opt/codeblocks-git --disable-open-files-list --with-contrib-plugins=all

Made it past the core plugins.

Edit: No idea why open-files-list failed; posted the error in prior post.

Edit2: Finished making all the contrib plugins without error.

Tim S.
« Last Edit: May 11, 2017, 07:24:57 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: configure/make error when libtinyxml-dev installed.
« Reply #12 on: May 11, 2017, 06:29:37 am »
Should be fixed now, sorry.
I used a clone of my github-mirror and that was not up to date and missed commit 11060.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: configure/make error when libtinyxml-dev installed.
« Reply #13 on: May 11, 2017, 08:06:22 am »
This problem looks to be fixed, now.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org