FS#54595 - [tinyxml2] linking fails with undefined reference

Attached to Project: Community Packages
Opened by Johannes Pointner (h4nn35) - Monday, 26 June 2017, 12:13 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 30 June 2017, 15:56 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
linking against tinyxml2 fails with
/usr/include/tinyxml2.h:1807: undefined reference to `tinyxml2::StrPair::GetStr()'

Additional info:
tinyxml2 5.0.0-1

But also compiling the library with an older version(4.0.1) doesn't solve the problem. But using the tinyxml2 from the archive works. So I'm guessing it could be gcc + tinyxml2 issue?


Steps to reproduce:
Link against libtinyxml2 and use e.g. XMLDocument::GetErrorStr1()
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 30 June 2017, 15:56 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Tuesday, 27 June 2017, 21:28 GMT
encfs seems to link against it just fine
Comment by Johannes Pointner (h4nn35) - Tuesday, 27 June 2017, 22:23 GMT
I did a quick search and it seems encfs doesn't use the problematic methods like XMLDocument::GetErrorStr1().
To show the problem I attached a simple example.
Comment by Alexander F. Rødseth (xyproto) - Friday, 30 June 2017, 15:56 GMT
Thanks for reporting and testing. Updating tinyxml2 to version 5.0.1 seems to solve the issue (the testcase works). The updated package will appear in [community] shortly.

Loading...