perlcc

Discussion in 'Perl Misc' started by ngoc, Dec 10, 2003.

  1. ngoc

    ngoc Guest

    Hi
    I try to compile my perl program to binary form using command
    perlcc -o program_name program_name.pl
    but get error message
    No definition for sub Fcntl::FD_CLOEXEC
    No definition for sub Fcntl::FD_CLOEXEC (unable to autoload)
    No definition for sub Fcntl::O_RANDOM
    No definition for sub Fcntl::O_RANDOM(unable to autoload)
    ................................................
    ...............................................
    and
    Can't locate object method "savecv" via package "B::SPECIAL" (perhaps you
    forgot to load "B::SPECIAL"

    My PERL5LIB point to Fcntl location, so I don't know what is wrong
    Please help me.
    Ngoc
     
    ngoc, Dec 10, 2003
    #1
    1. Advertising

  2. ngoc

    Sisyphus Guest

    ngoc wrote:
    > Hi
    > I try to compile my perl program to binary form using command
    > perlcc -o program_name program_name.pl
    > but get error message
    > No definition for sub Fcntl::FD_CLOEXEC
    > No definition for sub Fcntl::FD_CLOEXEC (unable to autoload)
    > No definition for sub Fcntl::O_RANDOM
    > No definition for sub Fcntl::O_RANDOM(unable to autoload)
    > ...............................................
    > ..............................................
    > and
    > Can't locate object method "savecv" via package "B::SPECIAL" (perhaps you
    > forgot to load "B::SPECIAL"
    >
    > My PERL5LIB point to Fcntl location, so I don't know what is wrong
    > Please help me.
    > Ngoc
    >
    >


    perlcc is buggy.
    Try 'PAR' from cpan.

    Cheers,
    Rob

    --
    To reply by email u have to take out the u in kalinaubears.
     
    Sisyphus, Dec 11, 2003
    #2
    1. Advertising

  3. ngoc

    ngoc Guest

    Hi
    I use pp -o program_name program_name.pl to compile.
    But get error message:
    Missing }.

    I just modify #!perl to # use perl in pp because #!perl do not run.
    How to solve that problem ?

    Ngoc

    "Sisyphus" <> wrote in message
    news:3fd8130d$0$1751$...
    > ngoc wrote:
    > > Hi
    > > I try to compile my perl program to binary form using command
    > > perlcc -o program_name program_name.pl
    > > but get error message
    > > No definition for sub Fcntl::FD_CLOEXEC
    > > No definition for sub Fcntl::FD_CLOEXEC (unable to autoload)
    > > No definition for sub Fcntl::O_RANDOM
    > > No definition for sub Fcntl::O_RANDOM(unable to autoload)
    > > ...............................................
    > > ..............................................
    > > and
    > > Can't locate object method "savecv" via package "B::SPECIAL" (perhaps

    you
    > > forgot to load "B::SPECIAL"
    > >
    > > My PERL5LIB point to Fcntl location, so I don't know what is wrong
    > > Please help me.
    > > Ngoc
    > >
    > >

    >
    > perlcc is buggy.
    > Try 'PAR' from cpan.
    >
    > Cheers,
    > Rob
    >
    > --
    > To reply by email u have to take out the u in kalinaubears.
    >
     
    ngoc, Dec 11, 2003
    #3
  4. ngoc wrote:
    > Hi
    > I use pp -o program_name program_name.pl to compile.
    > But get error message:
    > Missing }.


    Sounds like your script doesn't compile. What is the output of

    perl -c program_name.pl

    This will need to be sorted before you try to do anything with pp

    > I just modify #!perl to # use perl in pp because #!perl do not run.
    > How to solve that problem ?


    The #! line should contain the path to your perl executable. You don't
    tell us anything about your setup, but assuming you're on some form of
    *nix you should run

    which perl

    and put the output on the first line after #!

    eg #!/usr/bin/perl

    Your script must also have execute permissions to be run directly, so
    assuming you have sorted out the first line you should then do:

    chmod 755 program_name.pl

    to allow you to then run it using:

    ../program_name.pl
     
    Simon Andrews, Dec 11, 2003
    #4
  5. ngoc

    ngoc Guest

    Hi
    perl -c program_name.pl give output syntax is ok.

    I change
    # use perl
    eval 'exec perl -S $0 ${1+"$@"}'
    if 0;
    to #path of which perl
    and pp -o program_name program_name.pl . It gives no error message.

    But when I run it ./program_name. It shows "format error: bad signature:
    ....." before it shows the GUI.

    I have to thank to Perl community. You are helpful. It is my first time in
    newsgroup. I get answers quickly and learn much.

    Ngoc

    "Simon Andrews" <> wrote in message
    news:br9viu$ath$...
    > ngoc wrote:
    > > Hi
    > > I use pp -o program_name program_name.pl to compile.
    > > But get error message:
    > > Missing }.

    >
    > Sounds like your script doesn't compile. What is the output of
    >
    > perl -c program_name.pl
    >
    > This will need to be sorted before you try to do anything with pp
    >
    > > I just modify #!perl to # use perl in pp because #!perl do not run.
    > > How to solve that problem ?

    >
    > The #! line should contain the path to your perl executable. You don't
    > tell us anything about your setup, but assuming you're on some form of
    > *nix you should run
    >
    > which perl
    >
    > and put the output on the first line after #!
    >
    > eg #!/usr/bin/perl
    >
    > Your script must also have execute permissions to be run directly, so
    > assuming you have sorted out the first line you should then do:
    >
    > chmod 755 program_name.pl
    >
    > to allow you to then run it using:
    >
    > ./program_name.pl
    >
     
    ngoc, Dec 11, 2003
    #5
  6. ngoc

    Alan Stewart Guest

    On Thu, 11 Dec 2003 16:37:47 +0100, "ngoc" <> wrote:

    >Hi
    >perl -c program_name.pl give output syntax is ok.
    >
    >I change
    ># use perl
    > eval 'exec perl -S $0 ${1+"$@"}'
    > if 0;
    >to #path of which perl
    >and pp -o program_name program_name.pl . It gives no error message.
    >
    >But when I run it ./program_name. It shows "format error: bad signature:
    >...." before it shows the GUI.
    >


    If you have Archive::Zip version 1.09 (latest version), there is a
    known bug with PAR version 0.76 that causes that error message. The
    author has a possible fix testing now and should produce PAR 0.77 real
    soon. PAR is worth waiting for...
     
    Alan Stewart, Dec 12, 2003
    #6
  7. ngoc

    Sisyphus Guest

    Alan Stewart wrote:

    >
    >
    > If you have Archive::Zip version 1.09 (latest version), there is a
    > known bug with PAR version 0.76 that causes that error message. The
    > author has a possible fix testing now and should produce PAR 0.77 real
    > soon. PAR is worth waiting for...
    >


    I see a fix for this has just been released. You can get it from:
    http://aut.dyndns.org/dist/PAR-0.76_98.tar.gz

    Cheers,
    Rob


    --
    To reply by email u have to take out the u in kalinaubears.
     
    Sisyphus, Dec 12, 2003
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt Ittigson

    Problem with perlcc

    Matt Ittigson, Sep 30, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,253
    Matt Ittigson
    Sep 30, 2003
  2. makko

    perlcc error

    makko, Mar 2, 2005, in forum: Perl
    Replies:
    0
    Views:
    627
    makko
    Mar 2, 2005
  3. Paul Urbanus
    Replies:
    0
    Views:
    2,263
    Paul Urbanus
    Apr 7, 2006
  4. butt-fuzz

    perlcc makes it big

    butt-fuzz, Jul 21, 2003, in forum: Perl Misc
    Replies:
    9
    Views:
    168
    Juha Laiho
    Jul 28, 2003
  5. Warren Bell

    Perlcc and converting scripts to bytecode

    Warren Bell, Dec 7, 2003, in forum: Perl Misc
    Replies:
    4
    Views:
    170
    Robert
    Dec 7, 2003
Loading...

Share This Page