I have configured with : ./configure --enable-reproducible-builds
Did you install the Perl development libraries and headers?
If you're not using rlm_perl, then just delete src/modules/rlm_perl, and re-start the "make" process.
Thanks for the hints Alan.