Perhaps there is more than one component.ppu on your system.
Search for all copies (grep, or whatever) of the component.ppu and .a and .o and remove them wherever they are. (This assumes 'component.pas' has only ever been used to name the unit of your current learning component. If not, you have a problem.)
Then recompile the component package (or probably better, rebuild the IDE with the 'clean' option which will regenerate everything, including your newly installed component, in its proper path, and remove any unwanted files you have missed).