Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Compile error Ubuntu 23.10/24.04

(1/1)

Havadebo72:
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

--- End code ---

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 \

--- End code ---

Miguel Gimenez:
Thank you for reporting, I will fix this ASAP.

EDIT: Fixed in r13512.

Havadebo72:
Thanks.

blauzahn:
R13512 builds ok without compile-error under arch-linux x86_64.

Navigation

[0] Message Index

Go to full version