jobinjoseph121 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I have downloaded the perl-5.16 source from cpan.org build and installed on windows box using VS2K10 compiler and MKS tool kit(not using other perl setup like active/strawberry), and downloaded DateTime, DateTime::Locale, DateTime::TimeZone, DateTime::Format::Strptime modules, installed.

When using any of these modules, getting error as "The Procedure entry point Perl_Tstack_base_ptr could not be located in the dynamic link library libperl516.dll"
Sample Script Which I was using during testing of these modules
use constant IS_WINDOWS => $^O eq "MSWin32" ? 1 : 0; use constant IS_SUSE => -f "/etc/SuSE-release" ? 1 + : 0; use Config::General; use Config::Properties; use Locale::Language; use Locale::Country; use FindBin qw($Bin); use Fcntl qw(:DEFAULT :flock); use Time::Local; use POSIX; use DateTime::Format::Strptime ; use Log::Log4perl; use Log::Log4perl::Level; use Storable qw(store nstore retrieve freeze thaw); use File::Basename; use File::Copy;


Could any one help me on this issue or give me some pointers.
  • Comment on In windows facing issues with DateTime, DateTime::Locale, DateTime::TimeZone, DateTime::Format::Strptime perl modules.
  • Download Code

Replies are listed 'Best First'.
Re: In windows facing issues with DateTime, DateTime::Locale, DateTime::TimeZone, DateTime::Format::Strptime perl modules.
by 1nickt (Canon) on Aug 17, 2015 at 18:22 UTC

    Did you also build and install the modules from source code with the same compiler? Is there more than one perl on your system? This error looks like a perl version mismatch somewhere.

    FWIW I used to get a kick out of building everything from source, somehow it felt "cleaner" especially on a new box. I got over that particular obsession and it has saved me a lot of heartache. The whole reason for the existence of pre-built distributions like Strawberry Perl is to avoid problems like this.

    The way forward always starts with a minimal test.
      I am using the same perl version (5.16) and using the same compiler built and installed these modules.
      There is no other perl version installed in my box earlier. Perl 5.16 is the only perl which is available in my box.
        How did you compile perl (what commands did you call)?
Re: In windows facing issues with DateTime, DateTime::Locale, DateTime::TimeZone, DateTime::Format::Strptime perl modules.
by ikegami (Patriarch) on Aug 18, 2015 at 17:28 UTC
    As part of installing them, did you run the test suite? If so, did it work then (did the tests pass)?
Re: In windows facing issues with DateTime, DateTime::Locale, DateTime::TimeZone, DateTime::Format::Strptime perl modules.
by Anonymous Monk on Aug 18, 2015 at 22:49 UTC