The invention relates to compounds of the general formula (I) where: R2 is a hydrogen or fluorine atom or a hydroxyl, cyano, trifluoromethyl, C1-6-alkyl, C1-6-alkoxy, or NR8R9 group; m and p have a value of 1; n and o have the same value which is 0 or 1; A is a covalent bond or a C1-8-alkylene group; R1 is an optionally substituted aryl or heteroaryl group; R3 is a hydrogen or fluorine atom or a C1-6-alkyl group or a trifluoromethyl group; R4 is an optionally substituted 5-membered heterocyclic compound; wherein the compounds can be in the state of a base or an acid addition salt. The present invention can be used in therapeutics.