Hi all,

The main PERL programmer in our company has gon on vacation for a few days
and has left me in charge of finishing off a script that is suppose to
encrypt some data. We decided on using GnuPG program for the encryption
because perl had a module that used it. Below is a sample of code that I'm
trying to run:

  #!/usr/bin/perl -w

  use strict;
  use GnuPG qw( :algo );

  my $gpg = new GnuPG();

  $gpg->encrypt(  plaintext       => "test.txt",  output      => "file.gpg",
                  armor           => 1,           recipient => "Billing");


Here is the error that I'm getting:

Bareword "POSIX::_SC_OPEN_MAX" not allowed while "strict subs" in use at
/usr/local/lib/perl5/site_perl/5.6.1/GnuPG.pm line 267.
Compilation failed in require at foo.pl line 4.
BEGIN failed--compilation aborted at foo.pl line 4.

I also got this error (and this is probably why it isn't working) when I did
the "make test" while installing it.

Has anyone run into this problem and found a why to fix it? Any help would
be greatly appriciated.

Thanks in advance,

Pete

Reply via email to