We have measured two structurally similar superconducting systems, RuSr2GdCu2O8 and GdBa2Cu3O7 by means of high-resolution ac susceptibility. The real and the imaginary part of ac susceptibility of both bulk-ceramic and powdered samples have been studied down to the very small magnetic-field levels. We show that there are significant differences in the evolution of superconductivity in the two studied superconducting systems. In particular, we show that the superconducting transition in the grains in RuSr2GdCu2O8 system is masked with intrinsic magnetism of complex origin.