in reply to Re^2: Prototypes required even after mocking a sub
in thread Prototypes required even after mocking a sub

A recent thread 1215668 discussed the difficulty of overriding a function called by a module. The solution required executing the override before compiling the module. The details may apply to your problem.
Bill
  • Comment on Re^3: Prototypes required even after mocking a sub