Found it. The issue is with debian/patches/05_makefile.diff. The link command in the patched Makefile is wrong, it has the -lasound2 -lpthread options (ALSALIB variable) before everything else. This won't work with gcc 4.6+ which is very picky about the order of linked libraries (unless you link with -Wl,--no-as-needed).
Suggested patch (bzr diff -p1) attached. ** Patch added: "Suggested changes to debian/patches/05_makefile.diff to properly link libportmidi.so." https://bugs.launchpad.net/ubuntu/+source/portmidi/+bug/1110326/+attachment/3511894/+files/portmidi12.04.1-makefile.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1110326 Title: portmidi 1:200-0ubuntu1.12.04.1 is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/portmidi/+bug/1110326/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs