Isn't it you fair use right to create copies of things you already own? E.g. for backup, or for your own music compilations, ...
Duplicating CDs (or DVDs or books) for private use is indeed legal in France (even if the original comes from a library). The "taxe sur la copie privée" is intended to compensate for the fact that fewer copies are sold because of such private copy. It has nothing to do with piracy.
At least that is what is supposed to do. In reality ... well you might want to learn German for that and read this interesting tidbit about the rights holder association of Germany (GEMA): hxxp://www.musiker-online.de/Newsdetails.newsdetails.0.html?&tx_ttnews[tt_news]=267&tx_ttnews[backPid]=10&cHash=226c5da554