Problem with perlcc

M

Matt Ittigson

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)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top