In order to build loadable device modules from Verilog-A, the following requirements must be met.
That being said, I haven't noticed any problems, even in the case of using different major versions to compile the module and to compile the program, but this can not be counted on. The safest approach is to build WRspice from source, which should not be hard since the build environment is already set up.