1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
autotools: fix link error when system tinyxml is used. (Thanks hesti)
See discussion in C::B forum:
https://forums.codeblocks.org/index.php/topic,26015.msg177209.html
Authored by: christoj 2026-05-26
https://sourceforge.net/p/codeblocks/code/13855/
$ svn diff -r r13854:r13855 > r13855.patch
Patch amended to apply on Gentoo (adds 'a/' and 'b/' prefixes).
This should fix dev-util/codeblocks-25.03 'undefined reference'
compile errors such as the following:
libtool: link: x86_64-pc-linux-gnu-g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/15/crtbeginS.o .libs/AutoVersioning.o .libs/avChangesDlg.o .libs/avHeader.o .libs/avSvnRevision.o .libs/avVersionEditorDlg.o -Wl,-rpath -Wl,/var/tmp/portage/dev-util/codeblocks-25.03-r2/work/codeblocks_25.03/src/sdk/.libs -Wl,--as-needed ../../../sdk/.libs/libcodeblocks.so -L/usr/lib64 -lwx_gtk3u_aui-3.2 -lwx_gtk3u_propgrid-3.2 -lwx_gtk3u_richtext-3.2 -lwx_gtk3u_xrc-3.2 -lwx_gtk3u_html-3.2 -lwx_gtk3u_qa-3.2 -lwx_gtk3u_core-3.2 -lwx_baseu_xml-3.2 -lwx_baseu_net-3.2 -lwx_baseu-3.2 -lpthread -ldl -L/usr/lib/gcc/x86_64-pc-linux-gnu/15 -L/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../.. -L/lib -L/usr/lib -lstdc++ -lm -lgcc_s -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/15/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../lib64/crtn.o -O2 -march=x86-64 -mtune=generic -Wl,--no-undefined -Wl,-O1 -Wl,-z -Wl,pack-relative-relocs -pthread -Wl,-soname -Wl,libAutoVersioning.so -o .libs/libAutoVersioning.so
/usr/x86_64-pc-linux-gnu/binutils-bin/2.47/ld: .libs/AutoVersioning.o: in function `AutoVersioning::OnProjectLoadingHook(cbProject*, TiXmlElement*, bool)':
AutoVersioning.cpp:(.text+0x7755): undefined reference to `TiXmlNode::FirstChildElement(char const*) const'
$ find /usr/lib64/ -name "libtinyxml.so" | xargs -I {} sh -c 'nm -D --defined-only ${1} 2>/dev/null | grep FirstChildElement && echo ${1}' _ {}
000000000000db00 T _ZNK11TiXmlHandle17FirstChildElementEPKc
000000000000dac0 T _ZNK11TiXmlHandle17FirstChildElementEv
000000000000aa70 T _ZNK9TiXmlNode17FirstChildElementEPKc
000000000000aa30 T _ZNK9TiXmlNode17FirstChildElementEv
/usr/lib64/libtinyxml.so
Index: src/plugins/contrib/AutoVersioning/Makefile.am
===================================================================
--- a/src/plugins/contrib/AutoVersioning/Makefile.am (revision 13854)
+++ b/gsrc/plugins/contrib/AutoVersioning/Makefile.am (revision 13855)
@@ -11,6 +11,10 @@
libAutoVersioning_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libAutoVersioning_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libAutoVersioning_la_SOURCES = AutoVersioning.cpp \
avChangesDlg.cpp \
avHeader.cpp \
Index: src/plugins/contrib/BrowseTracker/Makefile.am
===================================================================
--- a/src/plugins/contrib/BrowseTracker/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/BrowseTracker/Makefile.am (revision 13855)
@@ -11,6 +11,10 @@
libBrowseTracker_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libBrowseTracker_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libBrowseTracker_la_SOURCES = BrowseTracker.cpp \
Version.cpp \
BrowseMarks.cpp \
Index: src/plugins/contrib/CppCheck/Makefile.am
===================================================================
--- a/src/plugins/contrib/CppCheck/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/CppCheck/Makefile.am (revision 13855)
@@ -13,6 +13,10 @@
libCppCheck_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libCppCheck_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libCppCheck_la_SOURCES = CppCheck.cpp \
CppCheckListLog.cpp \
ConfigPanel.cpp
Index: src/plugins/contrib/DoxyBlocks/Makefile.am
===================================================================
--- a/src/plugins/contrib/DoxyBlocks/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/DoxyBlocks/Makefile.am (revision 13855)
@@ -11,6 +11,10 @@
libDoxyBlocks_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libDoxyBlocks_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libDoxyBlocks_la_SOURCES = AutoDoc.cpp \
Config.cpp \
ConfigPanel.cpp \
Index: src/plugins/contrib/EditorConfig/Makefile.am
===================================================================
--- a/src/plugins/contrib/EditorConfig/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/EditorConfig/Makefile.am (revision 13855)
@@ -11,6 +11,10 @@
libEditorConfig_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libEditorConfig_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libEditorConfig_la_SOURCES = \
EditorConfigUI.cpp \
EditorConfig.cpp
Index: src/plugins/contrib/Valgrind/Makefile.am
===================================================================
--- a/src/plugins/contrib/Valgrind/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/Valgrind/Makefile.am (revision 13855)
@@ -13,6 +13,10 @@
libValgrind_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libValgrind_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libValgrind_la_SOURCES = Valgrind.cpp \
ValgrindListLog.cpp \
valgrind_config.cpp
Index: src/plugins/contrib/clangd_client/Makefile.am
===================================================================
--- a/src/plugins/contrib/clangd_client/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/clangd_client/Makefile.am (revision 13855)
@@ -36,6 +36,10 @@
$(WX_LIBS)
if ! CODEBLOCKS_NT
+libclangd_client_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
+if ! CODEBLOCKS_NT
libclangd_client_la_LIBADD += -lutil
endif
Index: src/plugins/contrib/codesnippets/Makefile.am
===================================================================
--- a/src/plugins/contrib/codesnippets/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/codesnippets/Makefile.am (revision 13855)
@@ -18,6 +18,10 @@
$(WX_GTK_LIBS) \
$(WX_X11_LIBS)
+if ! CODEBLOCKS_NT
+libcodesnippets_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libcodesnippets_la_SOURCES = codesnippets.cpp \
codesnippetstreectrl.cpp \
codesnippetswindow.cpp \
Index: src/plugins/contrib/envvars/Makefile.am
===================================================================
--- a/src/plugins/contrib/envvars/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/envvars/Makefile.am (revision 13855)
@@ -13,6 +13,10 @@
libenvvars_la_LIBADD = ../../../sdk/libcodeblocks.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libenvvars_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libenvvars_la_SOURCES = envvars.cpp \
envvars_cfgdlg.cpp \
envvars_common.cpp \
Index: src/plugins/contrib/lib_finder/Makefile.am
===================================================================
--- a/src/plugins/contrib/lib_finder/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/lib_finder/Makefile.am (revision 13855)
@@ -17,6 +17,10 @@
../wxContribItems/wxFlatNotebook/libwxflatnotebook.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+liblib_finder_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
liblib_finder_la_SOURCES = \
librariesdlg.cpp \
dirlistdlg.cpp \
Index: src/plugins/contrib/wxSmithAui/Makefile.am
===================================================================
--- a/src/plugins/contrib/wxSmithAui/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/wxSmithAui/Makefile.am (revision 13855)
@@ -16,6 +16,10 @@
../wxSmith/libwxsmithlib.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libwxSmithAui_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
EXTRA_DIST = $(srcdir)/images/*.xpm \
$(srcdir)/images/*.xcf \
$(srcdir)/wxsmith/*.wxs \
Index: src/plugins/contrib/wxSmithContribItems/Makefile.am
===================================================================
--- a/src/plugins/contrib/wxSmithContribItems/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/wxSmithContribItems/Makefile.am (revision 13855)
@@ -40,6 +40,10 @@
../wxContribItems/wxmathplot/libwxmathplot.la \
$(WX_LIBS)
+if ! CODEBLOCKS_NT
+libwxsmithcontribitems_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
EXTRA_DIST = $(srcdir)/wxchart/*.xpm \
$(srcdir)/wxchart/*.png \
$(srcdir)/wximagebutton/*.xpm \
Index: src/plugins/contrib/SpellChecker/Makefile.am
===================================================================
--- a/src/plugins/contrib/SpellChecker/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/SpellChecker/Makefile.am (revision 13855)
@@ -17,6 +17,10 @@
$(WX_LIBS) \
$(CB_HUNSPELL_LIBS)
+if ! CODEBLOCKS_NT
+libSpellChecker_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libSpellChecker_la_SOURCES = DictionariesNeededDialog.cpp \
MySpellingDialog.cpp \
OnlineSpellChecker.cpp \
Index: src/plugins/contrib/source_exporter/Makefile.am
===================================================================
--- a/src/plugins/contrib/source_exporter/Makefile.am (revision 13854)
+++ b/src/plugins/contrib/source_exporter/Makefile.am (revision 13855)
@@ -18,6 +18,10 @@
wxPdfDocument/libwxPdfDocument.la \
$(WX_LIBS) $(CB_FONTCONFIG_LIBS)
+if ! CODEBLOCKS_NT
+libexporter_la_LIBADD += $(CB_TINYXML_LIBS)
+endif
+
libexporter_la_SOURCES = BaseExporter.cpp \
exporter.cpp \
HTMLExporter.cpp \
|