Author Topic: Compile error Ubuntu 23.10/24.04  (Read 6231 times)

Offline Havadebo72

  • Single posting newcomer
  • *
  • Posts: 2
Compile error Ubuntu 23.10/24.04
« on: April 23, 2024, 11:29:19 am »
Hi

Compile error since revision 13437 (- Build: Fixes building using autotools without passing --disable-shared (ticket #1452, thanks Mehdi Chinoune).)

Code
/usr/bin/ld: .libs/parsemanager.o: in function `ParseManager::ParseProjectSearchDirs(cbProject const&)':
parsemanager.cpp:(.text+0xebcd): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xebe8): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xec32): undefined reference to `TiXmlNode::NextSiblingElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xec49): undefined reference to `TiXmlElement::Attribute(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0xec59): undefined reference to `TiXmlElement::Attribute(char const*) const'
/usr/bin/ld: .libs/parsemanager.o: in function `ParseManager::SetProjectSearchDirs(cbProject&, wxArrayString const&)':
parsemanager.cpp:(.text+0x140a1): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
/usr/bin/ld: parsemanager.cpp:(.text+0x140b5): undefined reference to `TiXmlNode::Clear()'
/usr/bin/ld: parsemanager.cpp:(.text+0x140f3): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
/usr/bin/ld: parsemanager.cpp:(.text+0x140fe): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
/usr/bin/ld: parsemanager.cpp:(.text+0x14112): undefined reference to `TiXmlElement::~TiXmlElement()'
/usr/bin/ld: parsemanager.cpp:(.text+0x14145): undefined reference to `TiXmlElement::SetAttribute(char const*, char const*)'
/usr/bin/ld: parsemanager.cpp:(.text+0x141dc): undefined reference to `TiXmlElement::TiXmlElement(char const*)'
/usr/bin/ld: parsemanager.cpp:(.text+0x141e7): undefined reference to `TiXmlNode::InsertEndChild(TiXmlNode const&)'
/usr/bin/ld: parsemanager.cpp:(.text+0x141fb): undefined reference to `TiXmlElement::~TiXmlElement()'
/usr/bin/ld: .libs/parsemanager.o: in function `ParseManager::SetProjectSearchDirs(cbProject&, wxArrayString const&) [clone .cold]':
parsemanager.cpp:(.text.unlikely+0x22ec): undefined reference to `TiXmlElement::~TiXmlElement()'
/usr/bin/ld: parsemanager.cpp:(.text.unlikely+0x230f): undefined reference to `TiXmlElement::~TiXmlElement()'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:702: libcodecompletion.la] Error 1
make[4]: Leaving directory '/home/havadebo/trunk/src/plugins/codecompletion'
make[3]: *** [Makefile:783: all-recursive] Error 1
make[3]: Leaving directory '/home/hains/trunk/src/plugins/codecompletion'
make[2]: *** [Makefile:536: all-recursive] Error 1
make[2]: Leaving directory '/home/havadebo/trunk/src/plugins'
make[1]: *** [Makefile:543: all-recursive] Error 1
make[1]: Leaving directory '/home/havadebo/trunk/src'
make: *** [Makefile:675: all-recursive] Error 1

I must apply this patch to make the compilation successful.

Code
Index: src/plugins/codecompletion/Makefile.am
===================================================================
--- src/plugins/codecompletion/Makefile.am (revision 13449)
+++ src/plugins/codecompletion/Makefile.am (working copy)
@@ -11,7 +11,8 @@
 libcodecompletion_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
 
 libcodecompletion_la_LIBADD = ../../sdk/libcodeblocks.la\
- $(WX_LIBS)
+ $(WX_LIBS) \
+ $(CB_TINYXML_LIBS)
 
 libcodecompletion_la_SOURCES = ccoptionsdlg.cpp \
  ccoptionsprjdlg.cpp \
Index: src/plugins/debuggergdb/Makefile.am
===================================================================
--- src/plugins/debuggergdb/Makefile.am (revision 13449)
+++ src/plugins/debuggergdb/Makefile.am (working copy)
@@ -13,7 +13,8 @@
 
 libdebugger_la_LIBADD = ../../sdk/libcodeblocks.la \
  $(WX_LIBS) \
- $(WX_GTK_LIBS)
+ $(WX_GTK_LIBS) \
+ $(CB_TINYXML_LIBS)
 
 libdebugger_la_SOURCES = cdb_driver.cpp \
  databreakpointdlg.cpp \
Index: src/plugins/openfileslist/Makefile.am
===================================================================
--- src/plugins/openfileslist/Makefile.am (revision 13449)
+++ src/plugins/openfileslist/Makefile.am (working copy)
@@ -9,7 +9,8 @@
 libopenfileslist_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
 
 libopenfileslist_la_LIBADD = ../../sdk/libcodeblocks.la \
- $(WX_LIBS)
+ $(WX_LIBS) \
+ $(CB_TINYXML_LIBS)
 
 libopenfileslist_la_SOURCES = openfileslistplugin.cpp
 noinst_HEADERS = openfileslistplugin.h
Index: src/plugins/projectsimporter/Makefile.am
===================================================================
--- src/plugins/projectsimporter/Makefile.am (revision 13449)
+++ src/plugins/projectsimporter/Makefile.am (working copy)
@@ -11,7 +11,8 @@
 libprojectsimporter_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
 
 libprojectsimporter_la_LIBADD = ../../sdk/libcodeblocks.la \
- $(WX_LIBS)
+ $(WX_LIBS) \
+ $(CB_TINYXML_LIBS)
 
 libprojectsimporter_la_SOURCES = projectsimporter.cpp \
  devcpploader.cpp \

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Compile error Ubuntu 23.10/24.04
« Reply #1 on: April 23, 2024, 11:49:07 am »
Thank you for reporting, I will fix this ASAP.

EDIT: Fixed in r13512.
« Last Edit: April 23, 2024, 05:03:05 pm by Miguel Gimenez »

Offline Havadebo72

  • Single posting newcomer
  • *
  • Posts: 2
Re: Compile error Ubuntu 23.10/24.04
« Reply #2 on: April 23, 2024, 08:26:06 pm »
Thanks.

Offline blauzahn

  • Almost regular
  • **
  • Posts: 179
Re: Compile error Ubuntu 23.10/24.04
« Reply #3 on: April 24, 2024, 08:00:38 am »
R13512 builds ok without compile-error under arch-linux x86_64.