I fixed the problem on my system by uninstalling libpthread-dev. Now my programs are compiling just fine. This is odd.
-- [FEISTY] Problems compiling programs with pthread https://launchpad.net/bugs/81169 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs