On Sun, Mar 16, 2003 at 04:48:32PM -0600, Bruce Winter wrote:
> This module does several does a require on a posix termios.ph file, which
> was generated from a standard .h file with h2ph asm/termios.h.  It tries
> several different requires, including require 'termios.ph' and require
> 'asm/termios.ph', then if those all fail, gives the above message.  This is
> done with in a loop with eval, so that might explain why pp did not find and
> include it.

Rather, I believe there's no support for .ph files in Module::ScanDeps.
Patches welcome on that adrea.

> When I tried the ActiveState perlapp compiler, I was able to get past this
> problem by using this option:  --add termios.ph.
> Could we update pp to allow for some sort of manual specification of
> additional modules to include, like the perlapp --add option?

Sure we could.  Does 'pp -A' sound okay?  Or should we extent -M to
recognize full path-to-file, too?

> The GD problem might trickier.   I tested it with this:
> 
>  pp -o test2 -e 'use GD'
>  ./test2
> 
>  Can't locate loadable object for module GD in @INC (@INC contains:
> CODE(0x83a8108) CODE(0x83fb1b4) /usr/local/lib/perl5/5.8.0/i686-linux
> /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux
> /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
> /loader/0x81c9580/PAR/Heavy.pm line 98
> 
> I never got this to work with the perlapp either.  I did get a suggestion
> that it might be a problem with loading a dynamic gd library, so maybe we
> could use the same --add type option to include libs like libgd.so ?

You may wish to check out the shlib patchset from snapshot:

    % wget http://p4.elixus.org/snap/PAR.tar.gz
    09:21:00 (49.37 KB/s) - `PAR.tar.gz' saved [53433/53433]
    % tar zxf PAR.tar.gz
    % cd PAR
    % patch < patches/shlib.diff
    % perl Makefile.PL
    % sudo make install
    % pp -l /usr/local/lib/libdb.so -e 'use DB_File; print $DB_File::db_version'
    % env PAR_DEBUG=1 ./a.out
    Extracting "shlib/libdb.so" to "/tmp/par_priv.15691.tmp/libdb.so", and loading the 
file
    4.0

It enables the 'pp -l' switch for adding shared libraries to the packed
binary.  The excellent shlib patchset was contributed by Markus Jansen
(thanks a lot, Markus!), but heavily modified by yours truly -- so if
anything breaks, be sure to let us know before I merge it into 0.70.

If somebody on Win32 can help testing / porting the shlib support to
that platform, I'll gladly merge it earlier.

Thanks,
/Autrijus/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to