The port is confused by qt3 headers: #pkg_which /usr/local/include/qbitarray.h qt-3.3.8_3 You can temporary deinstall qt3 port to build py-qt4 ports or fix include path sequence in Makefile.