ports/93033: Problem using perlcc

Kleyson Rios kleysonr at hotmail.com
Wed Feb 8 13:40:11 UTC 2006


>Number:         93033
>Category:       ports
>Synopsis:       Problem using perlcc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 08 13:40:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Kleyson Rios
>Release:        6.0
>Organization:
>Environment:
FreeBSD auditor 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Fri Dec 23 10:27:36 UTC 2005     root@:/usr/src/sys/i386/compile/AUDITOR  i386
>Description:
When i try to compile a script perl with perlcc that uses command USE (example: "use Sys::Syslog;") i get an error.

In the perl code below, the compilation get success:

---------------------------
#!/usr/local/bin/perl

print "Hello ...\n";
---------------------------

But the next code

----------------------------
#!/usr/local/bin/perl

use Sys::Syslog; 
print "Hello ...\n";
----------------------------

I get the following error (Can't locate object method "save"):

auditor# perlcc -o kle kle.pl
/usr/local/bin/perlcc: kle.pl did not compile, which can't happen:
Starting compile
 Walking tree
 Exporter saved (it is in Sys::Syslog's @ISA)
 DynaLoader saved (it is in Sys::Syslog's @ISA)
 Prescan
 Saving methods
 No definition for sub Config::config_vars
 No definition for sub Config::config_vars (unable to autoload)
 No definition for sub Config::myconfig
 No definition for sub Config::myconfig (unable to autoload)
 No definition for sub Config::config_sh
 No definition for sub Config::config_sh (unable to autoload)
 No definition for sub Config::config_re
 No definition for sub Config::config_re (unable to autoload)
 Can't locate object method "save" via package "main" at /usr/local/lib/perl5/5.8.7/mach/B/C.pm line 485.
 CHECK failed--call queue aborted.


I tested the same code in RedHat and FreeBSD 4.10 with perl 5.005_03, and i got success in compilation.



>How-To-Repeat:
              
>Fix:
              
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list