Help: PERL executables on QNX 4.25
Hi,
How do I create executables from PERL scripts?
I am using perlcc.
Tried a simple script as follows:
-------------------------------------------------------
#!/usr/bin/perl
use strict;
use CGI ;
print header();
print start_html();
print h1('Hello Dynamic CGI Linux');
print div('Hello Dynamic CGI Linux!!!');
print div('I am:', `id -un`);
print end_html();
---------------------------------------------------
The command used: perlcc -o filename filename.pl
The error/warning messages are as follows:
--------------------------------------------------------------------------------
Compiling testpcc.pl:
--------------------------------------------------------------------------------
Making C(testpcc.pl.c) for testpcc.pl!
/usr/local/bin/perl -I/usr/local/lib/perl5/5.00502/x86-qnx
-I/usr/local/lib/perl5/5.00502
-I/usr/local/lib/perl5/site_perl/5.005/x86-qnx
-I/usr/local/lib/perl5/site_perl/5.005 -I. -MO=CC,-otestpcc.pl.c
testpcc.pl
testpcc.pl syntax OK
MultipartBuffer has method DESTROY: -uMultipartBuffer assumed
CGITempFile has method DESTROY: -uCGITempFile assumed
CGI has method new: -uCGI assumed
Can't locate object method "FLAGS" via package "B::SPECIAL" at
/usr/local/lib/perl5/5.00502/x86-qnx/B/Stackobj.pm line 216.
END failed--cleanup aborted.
ERROR: In generating code for testpcc.pl!
Any pointers are sincerely appreciated.
Thank you in advance.
|