Following up to my old email for the archives ...
I had a buildlink3.mk file that added -lXext to LDFLAGS. This conflicted
with another library that provided the same definitions. I tracked this
down by comparing the Makefile generated by the broken pkgsrc build and a
working build not using pkgsrc. Then I searched all my buildlink3.mk files
for this broken LDFLAGS and found it.