Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 111896
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: audreyt [...] audreyt.org
walter.gnadenberger [...] rbinternational.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: PAR Question Solaris 10
Date: Tue, 9 Feb 2016 14:36:39 +0100
To: cpan [...] audreyt.org, bug-par [...] rt.cpan.org
From: walter.gnadenberger [...] rbinternational.com
Hello Audrey, I installed PAR:Packer at differnt OS (Windows/AIX/solaris 10 ). The idea is to copy the binary between different system without installing perl and perl modules. With the Solaris Installation I have the problem that the binary is not a standalone binary. There are libaries which solaris make dynamic and static. libperl.so => /home/misnh5/lib/libperl.so libdb-4.8.so => /home/misnh5/lib/libdb-4.8.so The question is: How can I influence pp or the linker of solaris, so that this libary get linked static? Thanks for your help! PAR Versions: PAR -- 1.010 PAR::Dist -- 0.49 PAR::Packer -- 1.029 Freundliche Grüße / Kind regards, Walter GNADENBERGER Software Development & Testing Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com | http://www.rbinternational.com Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien).
CC: cpan [...] audreyt.org, bug-par [...] rt.cpan.org
Subject: Re: PAR Question Solaris 10
Date: Tue, 9 Feb 2016 21:45:14 +0800
To: walter.gnadenberger [...] rbinternational.com
From: Audrey Tang <audreyt [...] audreyt.org>
Hi, this sounds similar to https://rt.cpan.org/Public/Bug/Display.html?id=63083 <https://rt.cpan.org/Public/Bug/Display.html?id=63083> — sorry I do not have access to a Solaris machine to test fixes to find libperl in an extracted executable. Solaris does not support static linking at all, so Marc’s excellent http://search.cpan.org/~mlehmann/App-Staticperl-1.44/staticperl.pod <http://search.cpan.org/~mlehmann/App-Staticperl-1.44/staticperl.pod> (which is guaranteed to produce a static application) may not work so well either, but it’s worth a try. Cheers, Audrey Show quoted text
> On Feb 9, 2016, at 9:36 PM, walter.gnadenberger@rbinternational.com wrote: > > Hello Audrey, > > I installed PAR:Packer at differnt OS (Windows/AIX/solaris 10 ). > The idea is to copy the binary between different system without installing perl and perl modules. > > > With the Solaris Installation I have the problem that the binary is not a standalone binary. > There are libaries which solaris make dynamic and static. > libperl.so => /home/misnh5/lib/libperl.so > libdb-4.8.so => /home/misnh5/lib/libdb-4.8.so > > The question is: How can I influence pp or the linker of solaris, so that this libary get linked static? > > > Thanks for your help! > > > PAR Versions: > PAR -- 1.010 > PAR::Dist -- 0.49 > PAR::Packer -- 1.029 > > Freundliche Grüße / Kind regards, > > Walter GNADENBERGER > Software Development & Testing > > Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com <mailto:walter.gnadenberger@rbinternational.com> | http://www.rbinternational.com <http://www.rbinternational.com/> > > Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. > > This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. > Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. > Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien).
On 2016-02-09 08:36:55, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> With the Solaris Installation I have the problem that the binary is > not > a standalone binary. > There are libaries which solaris make dynamic and static. > libperl.so => /home/misnh5/lib/libperl.so > libdb-4.8.so => /home/misnh5/lib/libdb-4.8.so > > The question is: How can I influence pp or the linker of solaris, so > that > this libary get linked static?
You can't - this is either a (build time) bug in PAR::Packer or an incorrectly set up perl installation. Are you using a "homebrew" perl? Anyway, please provide the output of the following commands: $ ldd /your/perl $ /your/perl -V If you built PAR::Packer yourself, please attach the _full_ output of building it, i.e. $ /your/perl Makefile.PL $ make $ make test Cheers, Roderich
Subject: Re: [rt.cpan.org #111896] PAR Question Solaris 10
Date: Tue, 9 Feb 2016 15:37:49 +0100
To: bug-par [...] rt.cpan.org
From: walter.gnadenberger [...] rbinternational.com
Hello Roderich, thanks for the answer: I am using following perl xsnoahd01:/home/misnh1>which perl /opt/csw/bin/perl xsnoahd01:/home/misnh1>/opt/csw/bin/perl --version This is perl, v5.10.1 (csw-5.10.1*) built for sun4-solaris-thread-multi Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. xsnoahd01:/home/misnh1>pkgchk -l -p /opt/csw/bin/perl NOTE: Couldn't lock the package database. Pathname: /opt/csw/bin/perl Type: regular file Expected mode: 0755 Expected owner: root Expected group: bin Expected file size (bytes): 9696 Expected sum(1) of contents: 5164 Expected last modification: Jul 24 09:22:52 PM 2012 Referenced by the following packages: CSWperl Current status: installed xsnoahd01:/home/misnh1>pkginfo -l CSWperl PKGINST: CSWperl NAME: perl - A high-level, general-purpose programming language CATEGORY: application ARCH: sparc VERSION: 5.10.1,REV=2012.07.24 BASEDIR: / VENDOR: http://www.cpan.org/src packaged for CSW by Peter Bonivart PSTAMP: bonivart@unstable10s-20120724213320 INSTDATE: Jan 20 2016 11:54 HOTLINE: http://www.opencsw.org/bugtrack/ EMAIL: bonivart@opencsw.org STATUS: completely installed FILES: 1801 installed pathnames 4 linked files 252 directories 89 executables 62520 blocks used (approx) xsnoahd01:/home/misnh1>ldd /opt/csw/bin/perl libperl.so => /opt/csw/lib/sparcv8/libperl.so libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libdb-4.8.so => /opt/csw/bdb48/lib/libdb-4.8.so libdl.so.1 => /usr/lib/libdl.so.1 libm.so.2 => /usr/lib/libm.so.2 libpthread.so.1 => /usr/lib/libpthread.so.1 libc.so.1 => /usr/lib/libc.so.1 libmp.so.2 => /usr/lib/libmp.so.2 libmd.so.1 => /usr/lib/libmd.so.1 libscf.so.1 => /usr/lib/libscf.so.1 libresolv.so.2 => /usr/lib/libresolv.so.2 librt.so.1 => /usr/lib/librt.so.1 libdoor.so.1 => /usr/lib/libdoor.so.1 libuutil.so.1 => /usr/lib/libuutil.so.1 libgen.so.1 => /usr/lib/libgen.so.1 libaio.so.1 => /usr/lib/libaio.so.1 /lib/libm/libm_hwcap1.so.2 /platform/sun4v/lib/libc_psr.so.1 /platform/sun4v/lib/libmd_psr.so.1 From Audrey I got following hints:  https://rt.cpan.org/Public/Bug/Display.html?id=63083 http://search.cpan.org/~mlehmann/App-Staticperl-1.44/staticperl.pod I am browsing the information for some hints. My Workaround yet is: Copy needed libs to /home/misnh5/lib xsnoahd05:/home/misnh5/bin>export LD_LIBRARY_PATH=/home/misnh5/lib:$LD_LIBRARY_PATH xsnoahd05:/home/misnh5/bin>./filechecker.bin  ------------------------------------------------------------------  | FILECHECKER v2.17                                                |  ------------------------------------------------------------------ ==> No input file / pattern provided, Exit Code 1! Hope that we finde a solution for it! Thanks for your help! Freundliche Grüße / Kind regards, Walter GNADENBERGER Software Development & Testing Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com | http://www.rbinternational.com Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien). From: bug-par@rt.cpan.org To: walter.gnadenberger@rbinternational.com, Date: 09.02.2016 14:51 Subject: [rt.cpan.org #111896] PAR Question Solaris 10 <URL: https://rt.cpan.org/Ticket/Display.html?id=111896 > On 2016-02-09 08:36:55, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> With the Solaris Installation I have the problem that the binary is > not > a standalone binary. > There are libaries which solaris make dynamic and static. > libperl.so => /home/misnh5/lib/libperl.so > libdb-4.8.so => /home/misnh5/lib/libdb-4.8.so > > The question is: How can I influence pp or the linker of solaris, so > that > this libary get linked static?
You can't - this is either a (build time) bug in PAR::Packer or an incorrectly set up perl installation. Are you using a "homebrew" perl? Anyway, please provide the output of the following commands: $ ldd /your/perl $ /your/perl -V If you built PAR::Packer yourself, please attach the _full_ output of building it, i.e. $ /your/perl Makefile.PL $ make $ make test Cheers, Roderich

Message body is not shown because it is too large.

Download graycol.gif
image/gif 105b
graycol.gif
On 2016-02-09 09:38:04, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> I am using following perl > xsnoahd01:/home/misnh1>which perl > /opt/csw/bin/perl > xsnoahd01:/home/misnh1>/opt/csw/bin/perl --version
Please provide the output of (note the uppercase "V") $ /opt/csw/bin/perl -V The problem that libperl.so is missing from the packed executable may perhaps be fixed - at least PAR::Packer has a provision to pack that, though incorrect configuration information of your perl or a bug in PAR::Packer's build process may have prevented it. That's why I need the above information and also the log of how you built PAR::Packer. Cheers, Roderich
Subject: Re: [rt.cpan.org #111896] PAR Question Solaris 10
Date: Tue, 9 Feb 2016 16:57:59 +0100
To: bug-par [...] rt.cpan.org
From: walter.gnadenberger [...] rbinternational.com
Hello Roderich, xsnoahd01:/home/misnh1>/opt/csw/bin/perl -V Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Commit id: f49f26c46eb30e17edc39f23c060b8294c44115b Platform: osname=solaris, osvers=2.10, archname=sun4-solaris-thread-multi uname='sunos unstable10s 5.10 generic_142909-17 sun4v sparc sunw,sparc-enter prise-t5220' config_args='' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='/opt/SUNWspro/bin/cc', ccflags ='-D_REENTRANT -xO3 -m32 -xarch=sparc -I/ opt/csw/bdb48/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS =64 -DPERL_USE_SAFE_PUTENV', optimize='-xO3 -m32 -xarch=sparc', cppflags='-D_REENTRANT -xO3 -m32 -xarch=sparc -I/opt/csw/bdb48/include -I/op t/csw/include' ccversion='Sun C 5.9 SunOS_sparc Patch 124867-16 2010/08/11', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize =8 alignbytes=8, prototype=define Linker and Libraries: ld='/opt/SUNWspro/bin/cc', ldflags ='-m32 -xarch=sparc -L/opt/csw/lib -lperl -L/opt/csw/bdb48/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib' libpth=/usr/lib /usr/ccs/lib /lib /opt/csw/lib libs=-lsocket -lnsl -lgdbm -ldb-4.8 -ldl -lm -lpthread -lc -lperl perllibs=-lsocket -lnsl -ldb-4.8 -ldl -lm -lpthread -lc -lperl libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.5.10.1 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /opt/csw/lib' cccdlflags='-KPIC', lddlflags='-G -L/opt/csw/lib -L/opt/csw/bdb48/lib -L/usr /lib -L/usr/ccs/lib -L/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_USE_SAFE_PUTENV USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE Built under solaris Compiled at Jul 24 2012 13:41:27 @INC: /opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw /opt/csw/share/perl/csw /opt/csw/share/perl/csw /opt/csw/lib/perl/5.10.1 /opt/csw/share/perl/5.10.1 . Freundliche Grüße / Kind regards, Walter GNADENBERGER Software Development & Testing Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com | http://www.rbinternational.com Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien). From: bug-par@rt.cpan.org To: walter.gnadenberger@rbinternational.com, Date: 09.02.2016 16:05 Subject: [rt.cpan.org #111896] PAR Question Solaris 10 <URL: https://rt.cpan.org/Ticket/Display.html?id=111896 > On 2016-02-09 09:38:04, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> I am using following perl > xsnoahd01:/home/misnh1>which perl > /opt/csw/bin/perl > xsnoahd01:/home/misnh1>/opt/csw/bin/perl --version
Please provide the output of (note the uppercase "V") $ /opt/csw/bin/perl -V The problem that libperl.so is missing from the packed executable may perhaps be fixed - at least PAR::Packer has a provision to pack that, though incorrect configuration information of your perl or a bug in PAR::Packer's build process may have prevented it. That's why I need the above information and also the log of how you built PAR::Packer. Cheers, Roderich

Message body is not shown because it is too large.

Download graycol.gif
image/gif 105b
graycol.gif
On 2016-02-09 10:58:20, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> xsnoahd01:/home/misnh1>/opt/csw/bin/perl -V
Thanks. The only short-term workaround I see is to build PAR::Packer yourself with some tweaks. Are you up to that? I can provide instructions, but don't have access to Solaris machines so can't try myself. Note that this will require the SunPro compiler (/opt/SUNWspro/bin/cc) as your perl was compiled with it... Cheers, Roderich
Subject: Re: [rt.cpan.org #111896] PAR Question Solaris 10
Date: Wed, 10 Feb 2016 08:58:29 +0100
To: bug-par [...] rt.cpan.org
From: walter.gnadenberger [...] rbinternational.com
Hello Roderich, Yes I already compiled modules for myself. Will be fine if you can give me some advice/instruction, especially at the compiler/link options. I am going to discuss it with my project team. Till yet we working with a workaround (copy lib to target system and using LD_LIBRARY_PATH). I 'll contact you, Thanks for your help! Freundliche Grüße / Kind regards, Walter GNADENBERGER Software Development & Testing Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com | http://www.rbinternational.com Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien). From: bug-par@rt.cpan.org To: walter.gnadenberger@rbinternational.com, Date: 09.02.2016 17:28 Subject: [rt.cpan.org #111896] PAR Question Solaris 10 <URL: https://rt.cpan.org/Ticket/Display.html?id=111896 > On 2016-02-09 10:58:20, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> xsnoahd01:/home/misnh1>/opt/csw/bin/perl -V
Thanks. The only short-term workaround I see is to build PAR::Packer yourself with some tweaks. Are you up to that? I can provide instructions, but don't have access to Solaris machines so can't try myself. Note that this will require the SunPro compiler (/opt/SUNWspro/bin/cc) as your perl was compiled with it... Cheers, Roderich
Download graycol.gif
image/gif 105b
graycol.gif
On 2016-02-10 02:58:49, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> Yes I already compiled modules for myself. > Will be fine if you can give me some advice/instruction, especially at the > compiler/link options.
Great! First the usual: unpack the PAR::Packer tarball, chdir into its top level directory, run "perl Makefile.pl". If you have previously built stuff there, remove myldr/boot_embedded_files.c. Edit myldr/Makefile: locate the stanza for boot_embedded_files.c boot_embedded_files.c: ./par $(PERLRUN) ./file2c.pl -c 30000 "./par" ...stuff... > $@ and replace ...stuff... with /opt/csw/lib/sparcv8/libperl.so /opt/csw/bdb48/lib/libdb-4.8.so Run "make". If you want to try it out before "make install" use "perl -Mblib blib/script/pp ..." instead of "pp ..." to pack. Cheers, Roderich
Subject: Re: [rt.cpan.org #111896] PAR Question Solaris 10
Date: Thu, 11 Feb 2016 10:50:06 +0100
To: bug-par [...] rt.cpan.org
From: walter.gnadenberger [...] rbinternational.com
Hello Roderich, Thanks, I tested it, The libs libperl.so and libdb-4.8.so are shared again. I did following. 1. Download /PAR-Packer-1.029 2. unzip + extract file 3. Generate MakeFile xsnoahd01:/home/misnh1/tmp/PAR-Packer-1.029>perl Makefile.PL Checking if your kit is complete... Looks good Prototype mismatch: sub main::prompt: none vs ($;$) at /opt/csw/share/perl/5.10.1/ExtUtils/MakeMaker.pm line 228 Warning (mostly harmless): No library found for -ldb-4.8 Generating a Unix-style Makefile Writing Makefile for myldr Writing MYMETA.yml and MYMETA.json Generating a Unix-style Makefile Writing Makefile for PAR::Packer Writing MYMETA.yml and MYMETA.json 4. Edit myldr/Makefile orignal: boot_embedded_files.c: ./par $(PERLRUN) ./file2c.pl -c 30000 "./par" "/opt/csw/lib/libperl.so.5.10.1" > $@ New: boot_embedded_files.c: ./par $(PERLRUN) ./file2c.pl -c 30000 "./par" /opt/csw/lib/sparcv8/libperl.so /opt/csw/bdb48/lib/libdb-4.8.so > $@ 5. make ...... /opt/SUNWspro/bin/cc main.o -R /opt/csw/lib -m32 -xarch=sparc -L/opt/csw/lib -lperl -L/opt/csw/bdb48/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib -L/opt/csw/lib/perl/5.10.1/CORE -lperl -lsocket -lnsl -ldl -lm -lpthread -lc -lperl -o ./par true "/opt/csw/bin/perl" encode_append.pl Dynamic.in ./par Dynamic.pm "/opt/csw/bin/perl" ./file2c.pl -c 30000 "./par" /opt/csw/lib/sparcv8/libperl.so /opt/csw/bdb48/lib/libdb-4.8.so > boot_embedded_files.c /opt/SUNWspro/bin/cc -c -D_REENTRANT -xO3 -m32 -xarch=sparc -I/opt/csw/bdb48/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -I/opt/csw/lib/perl/5.10.1/CORE -DPARL_EXE=\"parl\" -xO3 -m32 -xarch=sparc boot.c "boot_embedded_files.c", line 252828: warning: newline not last character in file /opt/SUNWspro/bin/cc boot.o -R /opt/csw/lib -m32 -xarch=sparc -L/opt/csw/lib -lperl -L/opt/csw/bdb48/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib -L/opt/csw/lib/perl/5.10.1/CORE -lperl -lsocket -lnsl -ldl -lm -lpthread -lc -lperl -o ./boot true "/opt/csw/bin/perl" encode_append.pl Static.in ./boot Static.pm cp Static.pm ../blib/lib/PAR/StrippedPARL/Static.pm cp Dynamic.pm ../blib/lib/PAR/StrippedPARL/Dynamic.pm "/opt/csw/bin/perl" -Mblib=.. run_with_inc.pl ./par -q -B -Oparldyn cp parldyn ../blib/script/parldyn true ../blib/script/parldyn "/opt/csw/bin/perl" -Mblib=.. run_with_inc.pl ./boot -q -B -Oparl cp parl ../blib/script/parl true ../blib/script/parl Manifying 2 pod documents cp script/tkpp blib/script/tkpp "/opt/csw/bin/perl" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/tkpp cp script/pp blib/script/pp "/opt/csw/bin/perl" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/pp cp script/par.pl blib/script/par.pl "/opt/csw/bin/perl" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/par.pl 6. Test perl -Mblib blib/script/pp -o filechecker.bin ../../filechecker/filechecker.pl :/home/misnh1/tmp/PAR-Packer-1.029>ldd filechecker.bin libperl.so => /opt/csw/lib/libperl.so libsocket.so.1 => /lib/libsocket.so.1 libnsl.so.1 => /lib/libnsl.so.1 libdl.so.1 => /lib/libdl.so.1 libm.so.2 => /lib/libm.so.2 libpthread.so.1 => /lib/libpthread.so.1 libc.so.1 => /lib/libc.so.1 libdb-4.8.so => /opt/csw/bdb48/lib//libdb-4.8.so libmp.so.2 => /lib/libmp.so.2 libmd.so.1 => /lib/libmd.so.1 libscf.so.1 => /lib/libscf.so.1 libresolv.so.2 => /lib/libresolv.so.2 librt.so.1 => /lib/librt.so.1 libdoor.so.1 => /lib/libdoor.so.1 libuutil.so.1 => /lib/libuutil.so.1 libgen.so.1 => /lib/libgen.so.1 libaio.so.1 => /lib/libaio.so.1 /lib/libm/libm_hwcap1.so.2 /platform/sun4v/lib/libc_psr.so.1 /platform/sun4v/lib/libmd_psr.so.1 Freundliche Grüße / Kind regards, Walter GNADENBERGER Software Development & Testing Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com | http://www.rbinternational.com Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien). From: bug-par@rt.cpan.org To: audreyt@audreyt.org, walter.gnadenberger@rbinternational.com, Date: 10.02.2016 11:27 Subject: [rt.cpan.org #111896] PAR Question Solaris 10 <URL: https://rt.cpan.org/Ticket/Display.html?id=111896 > On 2016-02-10 02:58:49, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> Yes I already compiled modules for myself. > Will be fine if you can give me some advice/instruction, especially at
the Show quoted text
> compiler/link options.
Great! First the usual: unpack the PAR::Packer tarball, chdir into its top level directory, run "perl Makefile.pl". If you have previously built stuff there, remove myldr/boot_embedded_files.c. Edit myldr/Makefile: locate the stanza for boot_embedded_files.c boot_embedded_files.c: ./par $(PERLRUN) ./file2c.pl -c 30000 "./par" ...stuff... > $@ and replace ...stuff... with /opt/csw/lib/sparcv8/libperl.so /opt/csw/bdb48/lib/libdb-4.8.so Run "make". If you want to try it out before "make install" use "perl -Mblib blib/script/pp ..." instead of "pp ..." to pack. Cheers, Roderich

Message body is not shown because it is too large.

Download graycol.gif
image/gif 105b
graycol.gif
On 2016-02-11 04:50:30, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> The libs libperl.so and libdb-4.8.so are shared again.
Yikes, that's another bug which has been there for almost 3 years and nobody noticed. Remove the file myldr/boot, once more edit myldr/Makefile and change ./boot: boot.o $(LD) boot.o ...some stuff... -o ./boot so that the second line just reads $(LD) boot.o -o ./boot (as boot - and hence any packed executable - has absolutely no business being linked with anything but the standard C library). Then "make" and test as before. If this got rid of the shared libraries, try to run the packed executable on a machine that doesn't have perl installed (that's what the first workaround actually was intended to solve). Sorry for inconvenience, Roderich
CC: audreyt [...] audreyt.org
Subject: Re: [rt.cpan.org #111896] PAR Question Solaris 10
Date: Thu, 11 Feb 2016 15:50:00 +0100
To: bug-par [...] rt.cpan.org
From: walter.gnadenberger [...] rbinternational.com
Heureka Senores, we did it! :-) I recompiled and reinstalled it and it works fine yet. Also get an okay from the project owner: THANKS for your HELP! Was really great for me to work with you! Show quoted text
bin>./filechecker.bin3
+------------------------------------------------------------------+ | FILECHECKER v2.17 | +------------------------------------------------------------------+ ==> No input file / pattern provided, Exit Code 1! xsnoahd05:/home/misnh5/bin>ldd filechecker.bin3 libc.so.1 => /usr/lib/libc.so.1 libm.so.2 => /usr/lib/libm.so.2 /lib/libm/libm_hwcap1.so.2 /platform/sun4v/lib/libc_psr.so.1 THANKS a lot!! Freundliche Grüße / Kind regards, Walter GNADENBERGER Software Development & Testing Raiffeisen Bank International AG | Am Stadtpark 9, 1030 Vienna, Austria | Tel.: +43 1 71707-5633 | Fax: +43 1 71707-765633 | walter.gnadenberger@rbinternational.com | http://www.rbinternational.com Bitte denken Sie an die Umwelt, bevor Sie drucken. / Please consider the environment before printing. This message and any attachment ("the Message") are confidential. If you have received the Message in error, please notify the sender immediately and delete the Message from your system, any use of the Message is forbidden. Correspondence via e-mail is primarily for information purposes. RBI neither makes nor accepts legally binding statements via e-mail unless explicitly agreed otherwise. Information pursuant to § 14 Austrian Companies Code: Raiffeisen Bank International AG; Registered Office: Am Stadtpark 9, A-1030 Vienna; Company Register Number: FN 122119m at the Commercial Court of Vienna (Handelsgericht Wien). From: bug-par@rt.cpan.org To: audreyt@audreyt.org, walter.gnadenberger@rbinternational.com, Date: 11.02.2016 12:27 Subject: [rt.cpan.org #111896] PAR Question Solaris 10 <URL: https://rt.cpan.org/Ticket/Display.html?id=111896 > On 2016-02-11 04:50:30, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> The libs libperl.so and libdb-4.8.so are shared again.
Yikes, that's another bug which has been there for almost 3 years and nobody noticed. Remove the file myldr/boot, once more edit myldr/Makefile and change ./boot: boot.o $(LD) boot.o ...some stuff... -o ./boot so that the second line just reads $(LD) boot.o -o ./boot (as boot - and hence any packed executable - has absolutely no business being linked with anything but the standard C library). Then "make" and test as before. If this got rid of the shared libraries, try to run the packed executable on a machine that doesn't have perl installed (that's what the first workaround actually was intended to solve). Sorry for inconvenience, Roderich
Download graycol.gif
image/gif 105b
graycol.gif
On 2016-02-11 09:50:20, walter.gnadenberger@rbinternational.com wrote: Show quoted text
> we did it! :-) > I recompiled and reinstalled it and it works fine yet.
Thanks for testing. This manual intervention will not be necessary with the next release of PAR::Packer. Cheers, Roderich