This is most likely a problem of your awk interpreter. pdweave uses awk features which have been added by the authors in 1985 in a revised version of their program, which they called nawk. Since then, most Unix Systems contain the nawk interpreter under the name awk. But if pdweave doesn't work with the awk on your system, then you can try to replace the first line of the pdweave script with '#!/usr/bin/nawk -f', if you have the nawk interpreter. If this still doesn't work, you can get the GNU version of awk which exists for almost all platforms [gawk]. It is sometimes installed under the name gawk.