perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Risanecek <risane...@gmail.com>
Subject -Mlib and -I do not work in Virtualhost
Date Sun, 18 Dec 2005 22:42:25 GMT
Hi,

you have heard this before haven't you? Well $SUBJ definitely doesn't
work under Linux, MP 2.0.1, Apache 2.0.55, Perl 5.8.7. All self-compiled.

Here's my analysis.

-Mlib and -I *outside* of <virtualhost> work well.

(but of course fill @inc)

I suspect -Mlib would work well if I could set the "PerlOptions +Parent"
thing. This - unfortunately - is not possible, as

PerlOption `Parent' requires an ithreads enabled Perl

which I do not have. (Performance reasons).

Now is there any chance to get this working? It seems this problem
is popping up from time to time here and elsewhere, but the majority
of mod_perl users seems to be fine with it or has not been bitten (yet).

My solution up to now was to have the -Mlib outside of <virtualhost>
but today I have been bitten badly by this and it is no longer an
option.

IF +Parent is mandatory, thus an ithreads enabled Perl, then that
a) is bad, because it gives me a 20% performance penalty
b) should be mentioned in the docs where PerlSwitches henceforth
should not be mentioned "context-free"
http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSwitches_

Richard


Addendum:

 # perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
  Platform:
    osname=linux, osvers=2.6.13-15-default, archname=i686-linux
    uname='linux sol 2.6.13-15-default #1 tue sep 13 14:56:15 utc 2005
i686 i686 i386 gnulinux '
    config_args='-Doptimize=-O3 -march=pentium4 -msse2 -mfpmath=sse
-ftree-vectorize -Duseshrplib -des'
    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=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='-O3 -march=pentium4 -msse2 -mfpmath=sse -ftree-vectorize',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.0.2 20050901 (prerelease) (SUSE
Linux)', 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
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/local/lib/perl5/5.8.7/i686-linux/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Dec  1 2005 13:29:32
  @INC:
    /usr/local/lib/perl5/5.8.7/i686-linux
    /usr/local/lib/perl5/5.8.7
    /usr/local/lib/perl5/site_perl/5.8.7/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.7
    /usr/local/lib/perl5/site_perl

Mime
View raw message