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

I have a perl script which uses Tcl module but this works fine if I use the env variable.

.  $ENV{PERL_DL_NONLAZY} = 1;

But if i convert it to a binary then this is not working.

perl version v5.8.8

Tcl module version Tcl-1.05

Tcl version 8.5

I have tried perl Makefile.PL --nousestubs in the Tcl module folder but it wont work.

Need some suggestions

  • Comment on Tcl module in perl segmentation fault for perl executable and not for perl script
  • Download Code

Replies are listed 'Best First'.
Re: Tcl module in perl segmentation fault for perl executable and not for perl script
by Anonymous Monk on Oct 18, 2016 at 06:14 UTC
    What did you do that is not working? Be specific

      I have written a perl script which uses tcl data for calculation. ( Tcl module )

      If I execute the script by setting env variable it wont give segmentation fault.

      #!/usr/bin/perl BEGIN { $ENV{PERL_DL_NONLAZY} = 1; } use strict; use Tcl;

      It is breaking at use Tcl syntax if I unhash this it will run.

      If I convert the script to executable it is throwing segmentation fault

      error info segmentation fault core dumped

      perl version 5.8.8

      Tcl module version 1.05

      Tcl version installed in the system 8.5

        Hi, I suggested more specific