Adhesives based on polyamides obtained by reactions forming a carboxylic amide link in the main chain Adhesives based on derivatives of such polymers