develooper Front page | perl.perl5.porters | Postings from January 2008

[perl #49472] Attributes + Unkown Error

Thread Next
From:
mz @ webdev07 . wirtschaftsblatt . lan
Date:
January 7, 2008 06:28
Subject:
[perl #49472] Attributes + Unkown Error
Message ID:
rt-3.6.HEAD-31418-1199713370-759.49472-75-0@perl.org
# New Ticket Created by  mz@webdev07.wirtschaftsblatt.lan 
# Please include the string:  [perl #49472]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=49472 >



This is a bug report for perl from mz@webdev07,
generated with the help of perlbug 1.36 running under perl 5.10.0.

trying to compile the below module with perl5.10 yields a fuzzy error message
-------------->8------------------------------------
mz@webdev07:tmp$ perl5.10.0 -MUnknownError -I/tmp
Unknown error
Compilation failed in require.
BEGIN failed--compilation aborted.
mz@webdev07:tmp$
-------------->8------------------------------------

in contrast to 5.8.8 where the linenumber and the reason are given
-------------->8------------------------------------
mz@webdev07:tmp$ perl5.8.8 -MUnknownError -I/tmp
Global symbol "$asd" requires explicit package name at /tmp/UnknownError.pm line 8.
BEGIN not safe after errors--compilation aborted at /tmp/UnknownError.pm line 9.
Compilation failed in require.
BEGIN failed--compilation aborted.
mz@webdev07:tmp$
-------------->8------------------------------------

-------------->8------------------------------------
package UnknownError;

use strict;

sub MODIFY_CODE_ATTRIBUTES {}

sub asd : Blah {
    $asd;
}

1;
-------------->8------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl 5.10.0:

Configured by mz at Wed Jan  2 10:30:04 CET 2008.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.6.22-14-generic, archname=i686-linux
    uname='linux webdev07 2.6.22-14-generic #1 smp tue dec 18 08:02:57 utc 2007 i686 gnulinux '
    config_args='-des -Dprefix=/home/mz/perl5.10.0'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/lib64
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.6.1.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.6.1'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl 5.10.0:
    /home/mz/perl5.10.0/lib/5.10.0/i686-linux
    /home/mz/perl5.10.0/lib/5.10.0
    /home/mz/perl5.10.0/lib/site_perl/5.10.0/i686-linux
    /home/mz/perl5.10.0/lib/site_perl/5.10.0
    .

---
Environment for perl 5.10.0:
    HOME=/home/mz
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/mz/bin:/usr/local/mysql/bin:/usr/local/j2re/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About