<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Compiled Perlscript hangs on Solaris - Comments</title>
 <link>http://community.activestate.com/forum-topic/compiled-perlscript-hangs-solaris</link>
 <description>Comments for &quot;Compiled Perlscript hangs on Solaris&quot;</description>
 <language>en</language>
<item>
 <title>--use option</title>
 <link>http://community.activestate.com/forum-topic/compiled-perlscript-hangs-solaris#comment-4456</link>
 <description>&lt;p&gt;I think you get the hangs because the PDK is compiling with a different version of libperl.so than your executable uses at runtime.&lt;/p&gt;
&lt;p&gt;Here is the telltale:&lt;/p&gt;
&lt;p&gt;libperl.so at &#039;/opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/CORE/libperl.so&#039; is not compatible with the PDK.&lt;br /&gt;
Using &#039;/opt/pdk/lib/libperl.so&#039; instead.&lt;/p&gt;
&lt;p&gt;The explanation for what is going on comes out of the Release Notes:&lt;br /&gt;
The PDK now uses a dynamically linked libperl.so on Unix instead of including statically linked libperl.a in each generated executable. This allowed implementation of the --xclude option for Unix, and --dependent and --xclude applications are much smaller now.&lt;br /&gt;
Only libperl.so from ActivePerl 819 and later is fully compatible with the new mechanism. PerlApp will use its own bundled libperl.so for older versions of ActivePerl. It also bundles a special libperl.so to use with Perl 5.6.&lt;/p&gt;
&lt;p&gt;Updating to a newer version of ActivePerl would fix the issue. Or you could set PerlApp&#039;s --use option to force the executable to use the same libperl.so that it was compiled with, and the odd behavior will probably go away. &lt;/p&gt;
&lt;p&gt;Should you consider copying the PDK libperl.so elsewhere, be careful to place it where it won&#039;t interfere with the 815 version of libperl.so, or the compatibility problems could go the other way.&lt;/p&gt;
</description>
 <pubDate>Thu, 06 Mar 2008 14:57:30 -0800</pubDate>
 <dc:creator>grahams</dc:creator>
 <guid isPermaLink="false">comment 4456 at http://community.activestate.com</guid>
</item>
<item>
 <title>Compiled Perlscript hangs on Solaris</title>
 <link>http://community.activestate.com/forum-topic/compiled-perlscript-hangs-solaris</link>
 <description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I have a strange problem with a compiled Perlscript on Solaris 9. After the script is finished it just hangs.&lt;/p&gt;
&lt;p&gt;Script looks like this:&lt;/p&gt;
&lt;p&gt;#!perl -w&lt;br /&gt;
use strict;&lt;br /&gt;
use Getopt::Std;&lt;br /&gt;
use Date::Manip;&lt;br /&gt;
use Mail::Sender;&lt;br /&gt;
use Config::General;&lt;br /&gt;
use Data::Dumper;&lt;/p&gt;
&lt;p&gt;.... Does some stuff (and this behaves as expected)....&lt;/p&gt;
&lt;p&gt;print &quot;exiting...\n&quot;;&lt;br /&gt;
exit 0;&lt;/p&gt;
&lt;p&gt;what happens is: It prints &quot;exiting...&quot; and then the prompt just hangs.&lt;/p&gt;
&lt;p&gt;Here&#039;s the output of perlapp and perl -v:&lt;/p&gt;
&lt;p&gt;------ Start Output ------&lt;br /&gt;
root@svrefa003:/opt/pdk/bin:./perlapp -v -f -script /home/haecs/checkpoint_debug1.pl -exe /home/haecs/checkpoint&lt;br /&gt;
PerlApp 7.0.0 build 277058 (perl 5.8.8)&lt;br /&gt;
Copyright (C) 1998-2007 ActiveState Software Inc. All rights reserved.&lt;br /&gt;
Standard license S80C11E2F5 for Christian Mueller &lt;/p&gt;
&lt;p&gt;libperl.so at &#039;/opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/CORE/libperl.so&#039; is not compatible with the PDK.&lt;br /&gt;
Using &#039;/opt/pdk/lib/libperl.so&#039; instead.&lt;/p&gt;
&lt;p&gt;Using Perl 5.8.7 located at:&lt;br /&gt;
*** /opt/ActivePerl-5.8/bin/perl-static&lt;/p&gt;
&lt;p&gt;Including modules:&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/AutoLoader.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Carp.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Carp/Heavy.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/Config.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/site_perl/5.8.7/Config/General.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/site_perl/5.8.7/Config/General/Extended.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/site_perl/5.8.7/Config/General/Interpolated.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/Config_dynamic.pl&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/Cwd.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/site_perl/5.8.7/Date/Manip.pm&lt;br /&gt;
+++ DynaLoader.pm (internal)&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/English.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/Errno.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Exporter.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Exporter/Heavy.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/Fcntl.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/File/Glob.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/File/Spec.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/File/Spec/Functions.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/File/Spec/Unix.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/FileHandle.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Getopt/Std.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/IO.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/IO/File.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/IO/Handle.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/IO/Seekable.pm&lt;br /&gt;
+++ List/Util.pm (internal)&lt;br /&gt;
Mac/FileSpec/Unixish.pm:&lt;br /&gt;
        warn: Can&#039;t locate Mac/FileSpec/Unixish.pm&lt;br /&gt;
        refby: /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/DynaLoader.pm line 63&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/PerlIO.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/PerlIO/scalar.pm&lt;br /&gt;
+++ Scalar/Util.pm (internal)&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/SelectSaver.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Symbol.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/Text/ParseWords.pm&lt;br /&gt;
+++ XSLoader.pm (internal)&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/attributes.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/Cwd/Cwd.so&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/DynaLoader/autosplit.ix&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/DynaLoader/dl_expandspec.al&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/DynaLoader/dl_find_symbol_anywhere.al&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/DynaLoader/dl_findfile.al&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/Fcntl/Fcntl.so&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/File/Glob/Glob.so&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/IO/IO.so&lt;br /&gt;
+++ auto/List/Util/Util.so (internal)&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/sun4-solaris-thread-multi/auto/PerlIO/scalar/scalar.so&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/base.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/integer.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/strict.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/vars.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/warnings.pm&lt;br /&gt;
+++ /opt/ActivePerl-5.8/lib/5.8.7/warnings/register.pm&lt;br /&gt;
+++ libperl.so (/opt/pdk/lib/libperl.so)&lt;/p&gt;
&lt;p&gt;Please run `perlapp --help DIAGNOSTICS` for more information&lt;br /&gt;
about the generated error and warning messages.&lt;/p&gt;
&lt;p&gt;Created &#039;/home/haecs/checkpoint&#039;&lt;/p&gt;
&lt;p&gt;root@svrefa003:/opt/pdk/bin:perl -v&lt;/p&gt;
&lt;p&gt;This is perl, v5.8.7 built for sun4-solaris-thread-multi&lt;br /&gt;
(with 13 registered patches, see perl -V for more detail)&lt;/p&gt;
&lt;p&gt;Copyright 1987-2005, Larry Wall&lt;/p&gt;
&lt;p&gt;Binary build 815 [211909] provided by ActiveState &lt;a href=&quot;http://www.ActiveState.com&quot; title=&quot;http://www.ActiveState.com&quot;&gt;http://www.ActiveState.com&lt;/a&gt;&lt;br /&gt;
ActiveState is a division of Sophos.&lt;br /&gt;
Built Nov  2 2005 02:41:13&lt;/p&gt;
&lt;p&gt;Perl may be copied only under the terms of either the Artistic License or the&lt;br /&gt;
GNU General Public License, which may be found in the Perl 5 source kit.&lt;/p&gt;
&lt;p&gt;Complete documentation for Perl, including FAQ lists, should be found on&lt;br /&gt;
this system using `man perl&#039; or `perldoc perl&#039;.  If you have access to the&lt;br /&gt;
Internet, point your browser at &lt;a href=&quot;http://www.perl.org/&quot; title=&quot;http://www.perl.org/&quot;&gt;http://www.perl.org/&lt;/a&gt;, the Perl Home Page.&lt;br /&gt;
------ End Output ------&lt;/p&gt;
&lt;p&gt;Has anyone experienced a similar problem or has any idea how to correct it?&lt;/p&gt;
&lt;p&gt;Thanx in advance.&lt;br /&gt;
Bernard&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/compiled-perlscript-hangs-solaris#comments</comments>
 <category domain="http://community.activestate.com/forums/pdk-support-0">PDK Support</category>
 <category domain="http://community.activestate.com/os/solaris">Solaris</category>
 <pubDate>Wed, 17 Oct 2007 02:53:43 -0700</pubDate>
 <dc:creator>boerni</dc:creator>
 <guid isPermaLink="false">1517 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
