Reagents and conditions: (i) propylamine, EtOH, reflux, 16 h; (ii) 1,6-hexanediamine, 2-methoxyethanol 16a or 1,4-phenylenediamine 16b, Pd(OAc)2, K2CO3, anhydrous DMF, reflux, 16 h; (iii) mofezolac (4), HOBt⋅H2O, DIEA, EDC⋅HCl, anhydrous CH2Cl2, r.t., 16 h.