Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#42593 - [boost] lib_serialization linking problem

Attached to Project: Arch Linux
Opened by T A V (deadlyninja) - Wednesday, 29 October 2014, 06:09 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 04 November 2014, 13:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Bartłomiej Piotrowski (Barthalion)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
boost::archive::xml_iarchive (and possibly other archive types) have internal linking errors. Specifically, there exists an undefined reference to boost::archive::detail::shared_ptr_helper::shared_ptr_helper()

Additional info:
* package version(s)
All 1.56 versions exhibit this behavior, 1.55 does not.
* config and/or log files etc.


Steps to reproduce:
example program:
================================================
#include <boost/archive/xml_iarchive.hpp>
#include <fstream>

int main() {
std::ifstream dummy;
boost::archive::xml_iarchive inputArchive(dummy);
return 0;
}


linker output:
================================================
$ g++ main.cpp -l boost_serialization
/tmp/ccVZ9H8B.o: In function `boost::archive::xml_iarchive::xml_iarchive(std::istream&, unsigned int)':
main.cpp:(.text._ZN5boost7archive12xml_iarchiveC2ERSij[_ZN5boost7archive12xml_iarchiveC5ERSij]+0x36): undefined reference to `boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'
/tmp/ccVZ9H8B.o: In function `boost::archive::xml_iarchive::~xml_iarchive()':
main.cpp:(.text._ZN5boost7archive12xml_iarchiveD2Ev[_ZN5boost7archive12xml_iarchiveD5Ev]+0x24): undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
collect2: error: ld returned 1 exit status
[tim@polaris-linux boosttest]$ g++ main.cpp -l boost_serialization -l boost_serialization
/tmp/ccBB6QFq.o: In function `boost::archive::xml_iarchive::xml_iarchive(std::istream&, unsigned int)':
main.cpp:(.text._ZN5boost7archive12xml_iarchiveC2ERSij[_ZN5boost7archive12xml_iarchiveC5ERSij]+0x36): undefined reference to `boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'
/tmp/ccBB6QFq.o: In function `boost::archive::xml_iarchive::~xml_iarchive()':
main.cpp:(.text._ZN5boost7archive12xml_iarchiveD2Ev[_ZN5boost7archive12xml_iarchiveD5Ev]+0x24): undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
collect2: error: ld returned 1 exit status
[tim@polaris-linux boosttest]$ g++ main.cpp -l boost_serialization
/tmp/cc11poUC.o: In function `boost::archive::xml_iarchive::xml_iarchive(std::istream&, unsigned int)':
main.cpp:(.text._ZN5boost7archive12xml_iarchiveC2ERSij[_ZN5boost7archive12xml_iarchiveC5ERSij]+0x36): undefined reference to `boost::archive::detail::shared_ptr_helper::shared_ptr_helper()'
/tmp/cc11poUC.o: In function `boost::archive::xml_iarchive::~xml_iarchive()':
main.cpp:(.text._ZN5boost7archive12xml_iarchiveD2Ev[_ZN5boost7archive12xml_iarchiveD5Ev]+0x24): undefined reference to `boost::archive::detail::shared_ptr_helper::~shared_ptr_helper()'
collect2: error: ld returned 1 exit status
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 04 November 2014, 13:49 GMT
Reason for closing:  Works for me
Additional comments about closing:  Also works for OP now.
Comment by T A V (deadlyninja) - Tuesday, 04 November 2014, 11:41 GMT
I believe this was actually a linker error as it no longer occurs even though the boost library has not been updated. Please close this task.

Loading...