perl-modperl mailing list archives

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

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

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"



 # perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
    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
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
    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',
    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/, so=so, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
    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

View raw message