Using the Perl Dynaloader module we are loading a .so file and using "DynaLoader::dl_find_symbol" to find the symbols and install it using "DynaLoader::dl_install_xsub" finally we are calling the function as &ExConfig_fnInitialize('', 0, 1, 5, 1).
The above steps work in all Linux machines with the below configuration
RedHat Linux 3.10.0-1160.42.2.el7.x86_64
Perl 5.16
We newly created a maching with below configuration then the script giving "Usage: ExConfig::fnInitialize(szLogFileName, nFileLevel, bLogToConsole, nConsoleLevel, bUsePipe) at ./Services.pl line 807." for all parameterized function.
RedHad Linux 5.4.17-2102.201.3.el8uek.x86_64 (Redhad 8.x)
Perl 5.26
I can reproduce the error in the working environment by removing any of the parameters in the function call.
So, anyone please shed some light on why it is giving "Usage" error even we hard code the function parameters.