Crash on Ubuntu 16.10 with libunittest++

Bug #1626418 reported by Jonathan Thomas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unittest++ (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When linking against unittest++ on Ubuntu 16.10 (64-bit), I get a ton of errors similar to this one:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/6/../../../../lib/libunittest++.a(Test.o): relocation R_X86_64_32S against symbol `_ZTVN8UnitTest4TestE' can not be used when making a shared object; recompile with -fPIC

Here is a build log from my recipe on Launchpad (the errors are at the very bottom of the this log): https://launchpadlibrarian.net/285452385/buildlog_ubuntu-yakkety-amd64.libopenshot_0.1.2+0+561+103+201609200333+daily~ubuntu16.10.1_BUILDING.txt.gz

On all other versions of Ubuntu, my recipe on Launchpad works fine. But on 64-bit Ubuntu 16.10, it fails with these errors. Just curious if something has changed in this source package, that would only affect this architecture/platform.

Please let me know if you would like additional info.

Thanks!
-Jonathan

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unittest++ (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark Thornton (mthornton-2) wrote :

Happens to me with an auto generated project under CodeLite that contains only a trivial test.

Revision history for this message
Mark Thornton (mthornton-2) wrote :

I notice that the packaged version is 1.4.0-3, unchanged since 2011. The current latest release from the project source https://github.com/unittest-cpp/unittest-cpp is 2.0.0. Removing the package and building 2.0.0 from source solved my problem. At least it would build and run. The CodeLite plugin for UnitTest++ unfortunately doesn't work.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

I did package 2.0.0 in Debian a few minutes ago, will sync for AA (next Ubuntu stable)

Changed in unittest++ (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.