develooper Front page | perl.perl5.porters | Postings from October 2003

[perl #24233] -I changed behavior between 5.8.0 and 5.8.1

Thread Next
From:
perlbug-followup
Date:
October 18, 2003 15:28
Subject:
[perl #24233] -I changed behavior between 5.8.0 and 5.8.1
Message ID:
rt-24233-66124.14.1254202507385@rt.perl.org
# New Ticket Created by  long@robin.cc.ku.edu 
# Please include the string:  [perl #24233]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24233 >



This is a bug report for perl from long@robin.cc.ku.edu,
generated with the help of perlbug 1.34 running under perl v5.8.1.


-----------------------------------------------------------------
[Please enter your report here]

The behavior of -I has changed between 5.8.0 and 5.8.1.  I'm not
actually sure if this is a bug or not as -I is not fully
documented (IMO).  Here is an example of how -I worked in 5.8.0:

 perl -I/tmp/test1:/tmp/test2 -e 'print "@INC";'

/tmp/test1 /tmp/test2 /usr/local/lib/perl5/5.8.0/alpha-dec_osf /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/alpha-dec_osf /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .

Here is how it is working in 5.8.1:

/tmp/jeff/bin/perl -I/tmp/test1:/tmp/test2 -e 'print "@INC";'

/tmp/test1:/tmp/test2 /tmp/jeff/lib/perl5/5.8.1/alpha-dec_osf /tmp/jeff/lib/perl5/5.8.1 /tmp/jeff/lib/perl5/site_perl/5.8.1/alpha-dec_osf /tmp/jeff/lib/perl5/site_perl/5.8.1 /tmp/jeff/lib/perl5/site_perl .

Notice that in 5.8.1 it does not break the colon separated directories
supplied by -I into two separate directories in @INC.  Perhaps perl itself
understands how to deal with this but third party modules like DBI do not.
Specifically in DBI the function DBI::DBD::dbd_dbi_arch_dir tries to map over
each element of @INC and the result ends up not working for 
/tmp/test1:/tmp/test2.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.8.1:

Configured by long at Thu Oct 16 12:21:52 CDT 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=dec_osf, osvers=4.0f, archname=alpha-dec_osf
    uname='osf1 robin.cc.ku.edu v4.0 1229 alpha '
    config_args='-Dcc=cc'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-std -D_INTRINSICS -fprm d -ieee -I/usr/local/include -DLANGUAGE_C',
    optimize='-O4',
    cppflags='-std -D_INTRINSICS -ieee -I/usr/local/include -DLANGUAGE_C'
    ccversion='V5.9-010', gccversion='', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /var/shlib
    libs=-ldbm -ldb -lm -lutil
    perllibs=-lm -lutil
    libc=/usr/shlib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-rpath,/tmp/jeff/lib/perl5/5.8.1/alpha-dec_osf/CORE'
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -O4 -msym -std -s -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.1:
    /tmp/jeff/lib/perl5/5.8.1/alpha-dec_osf
    /tmp/jeff/lib/perl5/5.8.1
    /tmp/jeff/lib/perl5/site_perl/5.8.1/alpha-dec_osf
    /tmp/jeff/lib/perl5/site_perl/5.8.1
    /tmp/jeff/lib/perl5/site_perl
    .

---
Environment for perl v5.8.1:
    HOME=/homeb/long
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:/homeb/oracle/u01/app/oracle/product/817/lib:/homeb/oracle/u01/app/oracle/product/817/jdbc/lib
    LOGDIR (unset)
    PATH=/usr/opt/java130/bin:/usr/local/ssl/bin:/usr/local/mysql/bin:/usr/local/Hughes/bin:/usr/bin:/homeb/long/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/ucb:/usr/bin/X11:/usr/tcb/bin:/usr/kinet/bin:/homeb/oracle/u01/app/oracle/product/817/bin
    PERL_BADLANG (unset)
    SHELL=/homeb/long/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