473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Problem with perlcc

I'm getting the following error(s) running perlcc and can't find any
explanation or work around. I'm including the errors and the script
itself. I get the same errors on a cygwin+Win2k box as a debian box
(with perl 5.8). Thanks.

File:
----------------------------------
#!/usr/bin/perl

use PDF::API2;
my $file;

if (-f $ARGV[0])
{
$file = $ARGV[0];
}
else
{
print "File not found.\n";
exit 1;
}

my $url = "http://XXX";

my $pdf = PDF::API2->open($file);
# page 1
draw_url($pdf, 1, [250, 10, 355, 23], $ssd);

$pdf->update;
$pdf->end;

sub draw_url
{
my ($pdf, $page_num, $dims, $url) = @_;

my $page = $pdf->openpage($page_num);
my $an = $page->annotation;
$an->url($url, (-rect => $dims), (-border => [0, 0, 0]));
$page->update;
}

Error:
----------------------------------
/usr/bin/perlcc: pdf.pl did not compile, which can't happen:
Starting compile
Walking tree
PDF::API2::PDF::Objind saved (it is in PDF::API2::PDF::String's @ISA)
Exporter saved (it is in Symbol's @ISA)
PDF::API2::PDF::Filter saved (it is in PDF::API2::PDF::ASCII85Decode's
@ISA)
PDF::API2::PDF::Dict saved (it is in PDF::API2::PDF::Pages's @ISA)
PDF::API2::Hybrid saved (it is in PDF::API2::PdfImage's @ISA)
PDF::API2::Gfx saved (it is in PDF::API2::Hybrid's @ISA)
PDF::API2::Content saved (it is in PDF::API2::Gfx's @ISA)
PDF::API2::Text saved (it is in PDF::API2::Hybrid's @ISA)
IO::Handle saved (it is in IO::File's @ISA)
IO::Seekable saved (it is in IO::File's @ISA)
PDF::API2::Outline saved (it is in PDF::API2::Outlines's @ISA)
PDF::API2::PDF::Array saved (it is in PDF::API2::ColorSpace's @ISA)
PDF::API2::PDF::FlateDecode saved (it is in
PDF::API2::PDF::LZWDecode's @ISA)
DynaLoader saved (it is in Compress::Zlib's @ISA)
PDF::API2::PDF::Image saved (it is in PDF::API2::PDF::ImagePPM's @ISA)
PDF::API2::PDF::File saved (it is in PDF::API2::PDF::FileAPI's @ISA)
PDF::API2::Font saved (it is in PDF::API2::PSFont's @ISA)
Prescan
Saving methods
Bootstrap Cwd /usr/lib/perl/5.8.0/XSLoader.pm
No definition for sub Fcntl::O_LARGEFILE
No definition for sub Fcntl::O_LARGEFILE (unable to autoload)
No definition for sub Fcntl::FD_CLOEXEC
No definition for sub Fcntl::FD_CLOEXEC (unable to autoload)
No definition for sub Fcntl::F_WRACC
No definition for sub Fcntl::F_WRACC (unable to autoload)
No definition for sub Fcntl::O_NOCTTY
No definition for sub Fcntl::O_NOCTTY (unable to autoload)
No definition for sub Fcntl::F_SETLK64
No definition for sub Fcntl::F_SETLK64 (unable to autoload)
No definition for sub Fcntl::F_SETOWN
No definition for sub Fcntl::F_SETOWN (unable to autoload)
No definition for sub Fcntl::O_RAW
No definition for sub Fcntl::O_RAW (unable to autoload)
No definition for sub Fcntl::O_DSYNC
No definition for sub Fcntl::O_DSYNC (unable to autoload)
No definition for sub Fcntl::F_WRDNY
No definition for sub Fcntl::F_WRDNY (unable to autoload)
No definition for sub Fcntl::F_GETLK
No definition for sub Fcntl::F_GETLK (unable to autoload)
No definition for sub Fcntl::O_BINARY
No definition for sub Fcntl::O_BINARY (unable to autoload)
No definition for sub Fcntl::F_FSYNC64
No definition for sub Fcntl::F_FSYNC64 (unable to autoload)
No definition for sub Fcntl::O_SYNC
No definition for sub Fcntl::O_SYNC (unable to autoload)
No definition for sub Fcntl::SEEK_SET
No definition for sub Fcntl::SEEK_SET (unable to autoload)
No definition for sub Fcntl::F_RDLCK
No definition for sub Fcntl::F_RDLCK (unable to autoload)
No definition for sub Fcntl::F_SETLKW
No definition for sub Fcntl::F_SETLKW (unable to autoload)
No definition for sub Fcntl::O_RSRC
No definition for sub Fcntl::O_RSRC (unable to autoload)
No definition for sub Fcntl::F_ALLOCSP
No definition for sub Fcntl::F_ALLOCSP (unable to autoload)
No definition for sub Fcntl::F_FREESP64
No definition for sub Fcntl::F_FREESP64 (unable to autoload)
No definition for sub Fcntl::F_UNLCK
No definition for sub Fcntl::F_UNLCK (unable to autoload)
No definition for sub Fcntl::O_RANDOM
No definition for sub Fcntl::O_RANDOM (unable to autoload)
No definition for sub Fcntl::F_WRLCK
No definition for sub Fcntl::F_WRLCK (unable to autoload)
No definition for sub Fcntl::O_RDONLY
No definition for sub Fcntl::O_RDONLY (unable to autoload)
No definition for sub Fcntl::O_NDELAY
No definition for sub Fcntl::O_NDELAY (unable to autoload)
No definition for sub Fcntl::F_RDACC
No definition for sub Fcntl::F_RDACC (unable to autoload)
Bootstrap Fcntl /usr/lib/perl/5.8.0/XSLoader.pm
No definition for sub Fcntl::F_GETFD
No definition for sub Fcntl::F_GETFD (unable to autoload)
No definition for sub Fcntl::F_EXLCK
No definition for sub Fcntl::F_EXLCK (unable to autoload)
No definition for sub Fcntl::O_NONBLOCK
No definition for sub Fcntl::O_NONBLOCK (unable to autoload)
No definition for sub Fcntl::O_ACCMODE
No definition for sub Fcntl::O_ACCMODE (unable to autoload)
No definition for sub Fcntl::O_RSYNC
No definition for sub Fcntl::O_RSYNC (unable to autoload)
No definition for sub Fcntl::F_UNSHARE
No definition for sub Fcntl::F_UNSHARE (unable to autoload)
No definition for sub Fcntl::O_RDWR
No definition for sub Fcntl::O_RDWR (unable to autoload)
No definition for sub Fcntl::O_EXLOCK
No definition for sub Fcntl::O_EXLOCK (unable to autoload)
No definition for sub Fcntl::O_NOFOLLOW
No definition for sub Fcntl::O_NOFOLLOW (unable to autoload)
No definition for sub Fcntl::O_APPEND
No definition for sub Fcntl::O_APPEND (unable to autoload)
No definition for sub Fcntl::F_DUP2FD
No definition for sub Fcntl::F_DUP2FD (unable to autoload)
No definition for sub Fcntl::SEEK_CUR
No definition for sub Fcntl::SEEK_CUR (unable to autoload)
No definition for sub Fcntl::F_SETLKW64
No definition for sub Fcntl::F_SETLKW64 (unable to autoload)
No definition for sub Fcntl::F_RWDNY
No definition for sub Fcntl::F_RWDNY (unable to autoload)
No definition for sub Fcntl::O_TEMPORARY
No definition for sub Fcntl::O_TEMPORARY (unable to autoload)
No definition for sub Fcntl::O_DIRECT
No definition for sub Fcntl::O_DIRECT (unable to autoload)
No definition for sub Fcntl::F_GETOWN
No definition for sub Fcntl::F_GETOWN (unable to autoload)
No definition for sub Fcntl::F_ALLOCSP64
No definition for sub Fcntl::F_ALLOCSP64 (unable to autoload)
No definition for sub Fcntl::F_GETLK64
No definition for sub Fcntl::F_GETLK64 (unable to autoload)
No definition for sub Fcntl::F_SHARE
No definition for sub Fcntl::F_SHARE (unable to autoload)
No definition for sub Fcntl::F_RWACC
No definition for sub Fcntl::F_RWACC (unable to autoload)
No definition for sub Fcntl::O_WRONLY
No definition for sub Fcntl::O_WRONLY (unable to autoload)
No definition for sub Fcntl::F_RDDNY
No definition for sub Fcntl::F_RDDNY (unable to autoload)
No definition for sub Fcntl::F_NODNY
No definition for sub Fcntl::F_NODNY (unable to autoload)
No definition for sub Fcntl::O_TRUNC
No definition for sub Fcntl::O_TRUNC (unable to autoload)
No definition for sub Fcntl::O_DIRECTORY
No definition for sub Fcntl::O_DIRECTORY (unable to autoload)
No definition for sub Fcntl::F_SETLK
No definition for sub Fcntl::F_SETLK (unable to autoload)
No definition for sub Fcntl::O_ALIAS
No definition for sub Fcntl::O_ALIAS (unable to autoload)
No definition for sub Fcntl::O_NOINHERIT
No definition for sub Fcntl::O_NOINHERIT (unable to autoload)
No definition for sub Fcntl::O_SHLOCK
No definition for sub Fcntl::O_SHLOCK (unable to autoload)
No definition for sub Fcntl::F_GETFL
No definition for sub Fcntl::F_GETFL (unable to autoload)
No definition for sub Fcntl::F_SHLCK
No definition for sub Fcntl::F_SHLCK (unable to autoload)
No definition for sub Fcntl::F_COMPAT
No definition for sub Fcntl::F_COMPAT (unable to autoload)
No definition for sub Fcntl::O_SEQUENTIAL
No definition for sub Fcntl::O_SEQUENTIAL (unable to autoload)
No definition for sub Fcntl::F_FREESP
No definition for sub Fcntl::F_FREESP (unable to autoload)
No definition for sub Fcntl::F_FSYNC
No definition for sub Fcntl::F_FSYNC (unable to autoload)
No definition for sub Fcntl::F_SETFD
No definition for sub Fcntl::F_SETFD (unable to autoload)
No definition for sub Fcntl::F_POSIX
No definition for sub Fcntl::F_POSIX (unable to autoload)
No definition for sub Fcntl::O_CREAT
No definition for sub Fcntl::O_CREAT (unable to autoload)
No definition for sub Fcntl::O_ASYNC
No definition for sub Fcntl::O_ASYNC (unable to autoload)
No definition for sub Fcntl::F_DUPFD
No definition for sub Fcntl::F_DUPFD (unable to autoload)
No definition for sub Fcntl::O_EXCL
No definition for sub Fcntl::O_EXCL (unable to autoload)
No definition for sub Fcntl::SEEK_END
No definition for sub Fcntl::SEEK_END (unable to autoload)
No definition for sub Fcntl::O_DEFER
No definition for sub Fcntl::O_DEFER (unable to autoload)
No definition for sub Fcntl::O_TEXT
No definition for sub Fcntl::O_TEXT (unable to autoload)
No definition for sub Fcntl::F_SETFL
No definition for sub Fcntl::F_SETFL (unable to autoload)
Bootstrap File::Glob /usr/lib/perl/5.8.0/XSLoader.pm
No definition for sub Compress::Zlib::Z_HUFFMAN_ONLY
No definition for sub Compress::Zlib::Z_HUFFMAN_ONLY (unable to autoload)
No definition for sub Compress::Zlib::Z_FINISH
No definition for sub Compress::Zlib::Z_FINISH (unable to autoload)
No definition for sub Compress::Zlib::Z_ASCII
No definition for sub Compress::Zlib::Z_ASCII (unable to autoload)
No definition for sub Compress::Zlib::Z_NEED_DICT
No definition for sub Compress::Zlib::Z_NEED_DICT (unable to autoload)
No definition for sub Compress::Zlib::Z_STREAM_ERROR
No definition for sub Compress::Zlib::Z_STREAM_ERROR (unable to autoload)
No definition for sub Compress::Zlib::Z_FULL_FLUSH
No definition for sub Compress::Zlib::Z_FULL_FLUSH (unable to autoload)
No definition for sub Compress::Zlib::Z_UNKNOWN
No definition for sub Compress::Zlib::Z_UNKNOWN (unable to autoload)
No definition for sub Compress::Zlib::ZLIB_VERSION
No definition for sub Compress::Zlib::ZLIB_VERSION (unable to autoload)
No definition for sub Compress::Zlib::Z_SYNC_FLUSH
No definition for sub Compress::Zlib::Z_SYNC_FLUSH (unable to autoload)
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
No definition for sub Compress::Zlib::Z_NO_COMPRESSION
No definition for sub Compress::Zlib::Z_NO_COMPRESSION (unable to
autoload)
No definition for sub Compress::Zlib::gunzip
No definition for sub Compress::Zlib::gunzip (unable to autoload)
Bootstrap Compress::Zlib ?????
No definition for sub Compress::Zlib::Z_BEST_COMPRESSION
No definition for sub Compress::Zlib::Z_BEST_COMPRESSION (unable to
autoload)
No definition for sub Compress::Zlib::Z_STREAM_END
No definition for sub Compress::Zlib::Z_STREAM_END (unable to autoload)
No definition for sub Compress::Zlib::Z_NO_FLUSH
No definition for sub Compress::Zlib::Z_NO_FLUSH (unable to autoload)
No definition for sub Compress::Zlib::Z_DATA_ERROR
No definition for sub Compress::Zlib::Z_DATA_ERROR (unable to autoload)
No definition for sub Compress::Zlib::Z_OK
No definition for sub Compress::Zlib::Z_OK (unable to autoload)
No definition for sub Compress::Zlib::Z_FILTERED
No definition for sub Compress::Zlib::Z_FILTERED (unable to autoload)
No definition for sub Compress::Zlib::Z_BEST_SPEED
No definition for sub Compress::Zlib::Z_BEST_SPEED (unable to autoload)
No definition for sub Compress::Zlib::Z_PARTIAL_FLUSH
No definition for sub Compress::Zlib::Z_PARTIAL_FLUSH (unable to autoload)
No definition for sub Compress::Zlib::gzip
No definition for sub Compress::Zlib::gzip (unable to autoload)
No definition for sub Compress::Zlib::Z_MEM_ERROR
No definition for sub Compress::Zlib::Z_MEM_ERROR (unable to autoload)
No definition for sub Compress::Zlib::Z_NULL
No definition for sub Compress::Zlib::Z_NULL (unable to autoload)
No definition for sub Compress::Zlib::Z_VERSION_ERROR
No definition for sub Compress::Zlib::Z_VERSION_ERROR (unable to autoload)
No definition for sub Compress::Zlib::OS_CODE
No definition for sub Compress::Zlib::OS_CODE (unable to autoload)
No definition for sub Compress::Zlib::Z_BUF_ERROR
No definition for sub Compress::Zlib::Z_BUF_ERROR (unable to autoload)
No definition for sub Compress::Zlib::Z_ERRNO
No definition for sub Compress::Zlib::Z_ERRNO (unable to autoload)
No definition for sub Compress::Zlib::Z_BINARY
No definition for sub Compress::Zlib::Z_BINARY (unable to autoload)
No definition for sub Compress::Zlib::DEF_WBITS
No definition for sub Compress::Zlib::DEF_WBITS (unable to autoload)
Bootstrap List::Util re/perl5/PDF/API2/PDF/AFont.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
Bootstrap IO /usr/lib/perl/5.8.0/XSLoader.pm
No definition for sub POSIX::HUGE_VAL
No definition for sub POSIX::HUGE_VAL (unable to autoload)

--
-Matt

Jul 19 '05 #1
0 3756

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
0
by: makko | last post by:
Hello all, i tried using perlcc on my calc.pl script; perlcc -o calc calc.pl but i get this error; /usr/bin/perlcc: calc.pl did not compile, which can't happen: i'm using perl 5.8.4. What...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: Paul Urbanus | last post by:
Hi, I'm a perl hack and want to distribute a windows executable of one of my scripts. When I invoke the perl compiler by using perlcc, I get the following error. perlcc.bat: Can't unlink...
1
by: kriz4321 | last post by:
Hi all, I have a simple .pl program which I need to convert to EXE... It has no modules used but when I try to use perlcc it gives following error.. Iam trying the same in windows machine... The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.