As shown in Scheme 9, a compound of the formula (I) wherein R5 is an aryl or heteroaryl group (for example an optionally substituted phenyl group) can be formed by reacting the substituted benzoic acid (X), or a protected form thereof in which the phenolic hydroxy groups are protected, with an amine RNH2 under amide forming conditions of the type described above.