You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Randal L. Schwartz" <me...@stonehenge.com> on 2010/08/08 03:15:25 UTC

perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

I'm trying to compile mod_perl 2.0.4 on perl-5.10.1 on Snow Leopard.
Whether I use macports, or try it by hand, I get something like this:

    mod_perl.c: In function 'modperl_shutdown':
    mod_perl.c:62: error: 'my_perl' undeclared (first use in this function)
    mod_perl.c:62: error: (Each undeclared identifier is reported only once
    mod_perl.c:62: error: for each function it appears in.)
    mod_perl.c: In function 'modperl_hook_post_config_last':
    mod_perl.c:718: error: 'my_perl' undeclared (first use in this function)
    mod_perl.c: In function 'modperl_child_exit':
    mod_perl.c:814: error: 'my_perl' undeclared (first use in this function)
    mod_perl.c: In function 'modperl_response_handler':
    mod_perl.c:1036: error: 'my_perl' undeclared (first use in this
    function)
    mod_perl.c: In function 'modperl_response_handler_cgi':
    mod_perl.c:1079: error: 'my_perl' undeclared (first use in this
    function)
    make[1]: *** [mod_perl.lo] Error 1
    make: *** [modperl_lib] Error 2

Is this a known problem, and if so, what solution can I use?

(Can't downgrade to 5.8...)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Philip" == Philip M Gollucci <pg...@p6m7g8.com> writes:

>> This worked just fine with Perl 5.8.  I had mod_perl 2.0.4 together with
>> the "+shared" version of Perl 5.8.
Philip> They might have changed what +shared implied but AFAIK, the perl version
Philip> is irrelevant.

Ahh.  Turns out the perl5.10 portfile defines -Dusemultiplicity=y
unconditionally, and that wasn't mentioned *anywhere* (even for a
variant) in the perl5.8 portfile.

Now to file a bug report against macports.

Thanks for helping me track this down.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/10 18:45, Randal L. Schwartz wrote:
>>>>>> "Torsten" == Torsten Förtsch <to...@gmx.net> writes:
> 
> Torsten> On Thursday, August 12, 2010 20:31:42 Randal L. Schwartz wrote:
>>> useithreads=undef, usemultiplicity=define
> 
> Torsten> This is your problem. Either both or none should be defined but not only one 
> Torsten> of them.
> 
> Is this combo being unsupported new for Perl5.10?

No all combos are supported by Perl itself.

> This worked just fine with Perl 5.8.  I had mod_perl 2.0.4 together with
> the "+shared" version of Perl 5.8.
They might have changed what +shared implied but AFAIK, the perl version
is irrelevant.


- -- 
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMZEGmdbiP+9ubjBwRAvMQAKCUDOvy5FtvFsQ0pFoZMNa2WIccSACggGrX
EJ1ueP3KxaJG8Ji28t0uUxE=
=s1a0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Randal" == Randal L Schwartz <me...@stonehenge.com> writes:

>>>>> "Torsten" == Torsten Förtsch <to...@gmx.net> writes:
Torsten> On Thursday, August 12, 2010 20:31:42 Randal L. Schwartz wrote:
>>> useithreads=undef, usemultiplicity=define

Torsten> This is your problem. Either both or none should be defined but not only one 
Torsten> of them.

Randal> Is this combo being unsupported new for Perl5.10?

Randal> Macports builds the "+shared" version by defining "-Duseshrplib", which
Randal> appears to define MULTIPILICITY.  It does *not define "-Dusethreads"
Randal> unless I also add "+threads".

Ahh, I spoke too soon.

Turns out Macports *always* builds with -Dusemultiplicity=y,
regardless of the variant.

But I *do* seem to recall using this version with mod_perl 2.0.4.

I wonder what will break if I just take that out.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Torsten" == Torsten Förtsch <to...@gmx.net> writes:

Torsten> On Thursday, August 12, 2010 20:31:42 Randal L. Schwartz wrote:
>> useithreads=undef, usemultiplicity=define

Torsten> This is your problem. Either both or none should be defined but not only one 
Torsten> of them.

Is this combo being unsupported new for Perl5.10?

Macports builds the "+shared" version by defining "-Duseshrplib", which
appears to define MULTIPILICITY.  It does *not define "-Dusethreads"
unless I also add "+threads".

This worked just fine with Perl 5.8.  I had mod_perl 2.0.4 together with
the "+shared" version of Perl 5.8.

Was this always an invalid combo?  Should I report a bug against
Macports that +shared should set both?  And if so, what else would that
break?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/10 18:41, Torsten Förtsch wrote:
> On Thursday, August 12, 2010 20:31:42 Randal L. Schwartz wrote:
>> useithreads=undef, usemultiplicity=define
> 
> This is your problem. Either both or none should be defined but not only one 
> of them.
Yeah same thing I said.

USE_ITHREADS implies multiplicity in perl.h

mp2 code assume multiplicity implies ithreads.  which it doesn't.


- -- 
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMZEDFdbiP+9ubjBwRAk9QAJ9Z+pvUWEQuXwSP5MWh0OvMMuti3QCfb+eV
ncX8pUUOUg1KTFcb7Rhh16Q=
=sK6W
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by Torsten Förtsch <to...@gmx.net>.
On Thursday, August 12, 2010 20:31:42 Randal L. Schwartz wrote:
> useithreads=undef, usemultiplicity=define

This is your problem. Either both or none should be defined but not only one 
of them.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/10 18:31, Randal L. Schwartz wrote:
>>>>>> "Philip" == Philip M Gollucci <pg...@p6m7g8.com> writes:
> 
> Philip> Actually just perl -V and Makefile.PL args will do.
> 
> Philip> I'm sure you've got a PERL w/o ITHREADS but you do have
> Philip> PERL_IMPLICIT_CONTEXT/MULTIPLICITY which is something we don't support
> Philip> due too an error in 1st days of mod_perl 2.x where these #if flags were
> Philip> used incorrect through the whole codebase.
> 
> Philip> The fix here is since you're not using ITHREADS, you can drop the
> Philip> MULTIPLICITY and CONTEXT in your perl compiles.  Them mp will
> Philip> work.
> 
> Can't do that.  Need MULTIPLICITY for Postgresql pg/perl embedded.
> 
> Now what?
Compile in ITHREADS, or spend a few months fixing the usage of those 3
in the entire code base.  Its likely something we'll never fix in mp2.
Maybe mp3 or after 2.0.5 if someone pays me or some else to sit down and
do it.






> 
> Here's my perl -V:
> 
> Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
>    
>   Platform:
>     osname=darwin, osvers=10.4.0, archname=darwin-multi-2level
>     uname='darwin locohost.local 10.4.0 darwin kernel version 10.4.0:
>     fri apr 23 18:28:53 pdt 2010; root:xnu-1504.7.4~1release_i386 i386 '
>     config_args='-Duseshrplib -des -Dprefix=/opt/local
>     -Dscriptdir=/opt/local/bin -Dcppflags=-I/opt/local/include
>     -Dccflags=-pipe -O2 -arch x86_64 -Dldflags=-L/opt/local/lib -arch
>     x86_64 -Dvendorprefix=/opt/local -Dusemultiplicity=y -D
>     cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D man1ext=1pm -D
>     man3ext=3pm -D man1dir=/opt/local/share/man/man1p -D
>     man3dir=/opt/local/share/man/man3p -D
>     siteman1dir=/opt/local/share/man/man1 -D
>     siteman3dir=/opt/local/share/man/man3 -D
>     vendorman1dir=/opt/local/share/man/man1 -D
>     vendorman3dir=/opt/local/share/man/man3 -D pager=/usr/bin/less -sR'
>     hint=recommended, useposix=true, d_sigaction=define
>     useithreads=undef, usemultiplicity=define
>     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
>     use64bitint=define, use64bitall=define, uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='/usr/bin/gcc-4.2', ccflags ='-pipe -O2 -arch x86_64 -fno-common
>     -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp
>     -fno-strict-aliasing -fstack-protector -I/opt/local/include',
>     optimize='-O3',
>     cppflags='-I/opt/local/include -no-cpp-precomp -pipe -O2 -arch
>     x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include
>     -no-cpp-precomp -fno-strict-aliasing -fstack-protector
>     -I/opt/local/include'
>     ccversion='', gccversion='4.2.1 (Apple Inc. build 5659)',
>     gccosandvers=''
>     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
>     lseeksize=8
>     alignbytes=8, prototype=define
>   Linker and Libraries:
>     ld='env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2', ldflags
>     ='-L/opt/local/lib -arch x86_64 -fstack-protector'
>     libpth=/opt/local/lib /usr/lib
>     libs=-ldbm -ldl -lm -lutil -lc
>     perllibs=-ldl -lm -lutil -lc
>     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
>     libperl=libperl.dylib
>     gnulibc_version=''
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
>     cccdlflags=' ', lddlflags='-L/opt/local/lib -arch x86_64 -bundle
>     -undefined dynamic_lookup -fstack-protector'
> 
> 
> Characteristics of this binary (from libperl): 
>   Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
>                         PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
>   USE_64_BIT_ALL
>                         USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
>   Built under darwin
>   Compiled at Jun 30 2010 15:04:49
>   %ENV:
>     PERL5LIB="/opt/perl/lib"
>   @INC:
>     /opt/perl/lib/5.10.1/darwin-multi-2level
>     /opt/perl/lib/5.10.1
>     /opt/perl/lib/darwin-multi-2level
>     /opt/perl/lib
>     /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level
>     /opt/local/lib/perl5/site_perl/5.10.1
>     /opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level
>     /opt/local/lib/perl5/vendor_perl/5.10.1
>     /opt/local/lib/perl5/vendor_perl
>     /opt/local/lib/perl5/5.10.1/darwin-multi-2level
>     /opt/local/lib/perl5/5.10.1
>     .
> 
> 


- -- 
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMZECDdbiP+9ubjBwRAsNcAJwKD05pusRehYeGu49PdSGQgx9SFACeJpdD
esUE4sZxHj+ZqjTcyplYc4I=
=60NW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Philip" == Philip M Gollucci <pg...@p6m7g8.com> writes:

Philip> Actually just perl -V and Makefile.PL args will do.

Philip> I'm sure you've got a PERL w/o ITHREADS but you do have
Philip> PERL_IMPLICIT_CONTEXT/MULTIPLICITY which is something we don't support
Philip> due too an error in 1st days of mod_perl 2.x where these #if flags were
Philip> used incorrect through the whole codebase.

Philip> The fix here is since you're not using ITHREADS, you can drop the
Philip> MULTIPLICITY and CONTEXT in your perl compiles.  Them mp will
Philip> work.

Can't do that.  Need MULTIPLICITY for Postgresql pg/perl embedded.

Now what?

Here's my perl -V:

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
   
  Platform:
    osname=darwin, osvers=10.4.0, archname=darwin-multi-2level
    uname='darwin locohost.local 10.4.0 darwin kernel version 10.4.0:
    fri apr 23 18:28:53 pdt 2010; root:xnu-1504.7.4~1release_i386 i386 '
    config_args='-Duseshrplib -des -Dprefix=/opt/local
    -Dscriptdir=/opt/local/bin -Dcppflags=-I/opt/local/include
    -Dccflags=-pipe -O2 -arch x86_64 -Dldflags=-L/opt/local/lib -arch
    x86_64 -Dvendorprefix=/opt/local -Dusemultiplicity=y -D
    cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D man1ext=1pm -D
    man3ext=3pm -D man1dir=/opt/local/share/man/man1p -D
    man3dir=/opt/local/share/man/man3p -D
    siteman1dir=/opt/local/share/man/man1 -D
    siteman3dir=/opt/local/share/man/man3 -D
    vendorman1dir=/opt/local/share/man/man1 -D
    vendorman3dir=/opt/local/share/man/man3 -D pager=/usr/bin/less -sR'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='/usr/bin/gcc-4.2', ccflags ='-pipe -O2 -arch x86_64 -fno-common
    -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp
    -fno-strict-aliasing -fstack-protector -I/opt/local/include',
    optimize='-O3',
    cppflags='-I/opt/local/include -no-cpp-precomp -pipe -O2 -arch
    x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include
    -no-cpp-precomp -fno-strict-aliasing -fstack-protector
    -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5659)',
    gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
    lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2', ldflags
    ='-L/opt/local/lib -arch x86_64 -fstack-protector'
    libpth=/opt/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
    libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-L/opt/local/lib -arch x86_64 -bundle
    -undefined dynamic_lookup -fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
  USE_64_BIT_ALL
                        USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
  Built under darwin
  Compiled at Jun 30 2010 15:04:49
  %ENV:
    PERL5LIB="/opt/perl/lib"
  @INC:
    /opt/perl/lib/5.10.1/darwin-multi-2level
    /opt/perl/lib/5.10.1
    /opt/perl/lib/darwin-multi-2level
    /opt/perl/lib
    /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level
    /opt/local/lib/perl5/site_perl/5.10.1
    /opt/local/lib/perl5/vendor_perl/5.10.1/darwin-multi-2level
    /opt/local/lib/perl5/vendor_perl/5.10.1
    /opt/local/lib/perl5/vendor_perl
    /opt/local/lib/perl5/5.10.1/darwin-multi-2level
    /opt/local/lib/perl5/5.10.1
    .


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/10 18:09, Philip M. Gollucci wrote:
> On 08/12/10 16:54, Randal L. Schwartz wrote:
>>>>>>> "Randal" == Randal L Schwartz <me...@stonehenge.com> writes:
> 
>> Randal> Did that.  Got this, on Snow Leopard:
> 
>> Any thoughts about how to fix this?  It's a showstopper for me doing
>> local development now that I've upgraded to Snow.
> 
>> I certainly can't be the only person using OSX 10.6 with Perl 5.10 with
>> modperl2!
> 
> Can you show us the thread related configs for perl,apr/httpd,and
> Makefile.PL
> 
> its the expansion of aTHX thats hammering you.

Actually just perl -V and Makefile.PL args will do.

I'm sure you've got a PERL w/o ITHREADS but you do have
PERL_IMPLICIT_CONTEXT/MULTIPLICITY which is something we don't support
due too an error in 1st days of mod_perl 2.x where these #if flags were
used incorrect through the whole codebase.

The fix here is since you're not using ITHREADS, you can drop the
MULTIPLICITY and CONTEXT in your perl compiles.  Them mp will work.

This was brough up a few months ago on list too though I think it was on
a linux os at the time.





- -- 
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMZDzkdbiP+9ubjBwRAqcbAJ9tuwbel81HR8wvOCtdgBJPQ4YVlQCcChno
xIxBLVkTdJ/Wrgn/XXauF7E=
=BP4a
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/10 16:54, Randal L. Schwartz wrote:
>>>>>> "Randal" == Randal L Schwartz <me...@stonehenge.com> writes:
> 
> Randal> Did that.  Got this, on Snow Leopard:
> 
> Any thoughts about how to fix this?  It's a showstopper for me doing
> local development now that I've upgraded to Snow.
> 
> I certainly can't be the only person using OSX 10.6 with Perl 5.10 with
> modperl2!
> 
Can you show us the thread related configs for perl,apr/httpd,and
Makefile.PL

its the expansion of aTHX thats hammering you.



- -- 
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMZDjNdbiP+9ubjBwRAirPAJ0a/fLovBYC8GQ+ltQDETWYr51d/QCeOQAe
ejk955UqS3Ct2BvESh7RrPc=
=zp2D
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Randal" == Randal L Schwartz <me...@stonehenge.com> writes:

Randal> Did that.  Got this, on Snow Leopard:

Any thoughts about how to fix this?  It's a showstopper for me doing
local development now that I've upgraded to Snow.

I certainly can't be the only person using OSX 10.6 with Perl 5.10 with
modperl2!

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Jie" == Jie Gao <J....@isu.usyd.edu.au> writes:

Jie> http://svn.apache.org/snapshots/modperl-2.0/

Jie> The one I used is 2.0_20100807092020.

Did that.  Got this, on Snow Leopard:

Locohost.local:..apshot/modperl-2.0 % make all
cd "src/modules/perl" && make
/usr/bin/gcc-4.2
-I/opt/perl/mod_perl2_snapshot/modperl-2.0/src/modules/perl
-I/opt/perl/mod_perl2_snapshot/modperl-2.0/xs -I/opt/local/include/apr-1
-I/opt/local/include/apr-1 -I/opt/local/include
-I/opt/local/apache2/include -pipe -O2 -arch x86_64 -fno-common
-DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing
-fstack-protector -I/opt/local/include
-I/opt/local/lib/perl5/5.10.1/darwin-multi-2level/CORE -DMOD_PERL
-DMP_COMPAT_1X -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp
-O3  \
     -c mod_perl.c && mv mod_perl.o mod_perl.lo
In file included from
/opt/local/lib/perl5/5.10.1/darwin-multi-2level/CORE/perl.h:2424,
                 from modperl_perl_includes.h:65,
                 from modperl_common_includes.h:24,
                 from mod_perl.h:21,
                 from mod_perl.c:17:
/opt/local/lib/perl5/5.10.1/darwin-multi-2level/CORE/handy.h:108:1:
warning: "bool" redefined
In file included from /usr/include/mach-o/dyld.h:29,
                 from /opt/local/include/apr-1/apr_portable.h:166,
                 from /opt/local/apache2/include/http_protocol.h:31,
                 from modperl_apache_includes.h:30,
                 from mod_perl.h:20,
                 from mod_perl.c:17:
/usr/lib/gcc/i686-apple-darwin10/4.2.1/include/stdbool.h:36:1: warning:
this is the location of the previous definition
mod_perl.c: In function 'modperl_shutdown':
mod_perl.c:62: error: 'my_perl' undeclared (first use in this function)
mod_perl.c:62: error: (Each undeclared identifier is reported only once
mod_perl.c:62: error: for each function it appears in.)
mod_perl.c: In function 'modperl_hook_post_config_last':
mod_perl.c:718: error: 'my_perl' undeclared (first use in this function)
mod_perl.c: In function 'modperl_child_exit':
mod_perl.c:814: error: 'my_perl' undeclared (first use in this function)
mod_perl.c: In function 'modperl_response_handler':
mod_perl.c:1036: error: 'my_perl' undeclared (first use in this
function)
mod_perl.c: In function 'modperl_response_handler_cgi':
mod_perl.c:1079: error: 'my_perl' undeclared (first use in this
function)
make[1]: *** [mod_perl.lo] Error 1
make: *** [modperl_lib] Error 2
Locohost.local:..apshot/modperl-2.0 % 


Now what?
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by Jie Gao <J....@isu.usyd.edu.au>.
* Randal L. Schwartz <me...@stonehenge.com> wrote:

> Date: Sat, 07 Aug 2010 21:07:35 -0700
> From: "Randal L. Schwartz" <me...@stonehenge.com>
> To: Jie Gao <J....@isu.usyd.edu.au>
> Cc: mod_perl Dev <de...@perl.apache.org>
> Subject: Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"
> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix)
> 
> >>>>> "Jie" == Jie Gao <J....@isu.usyd.edu.au> writes:
> 
> Jie> Download the lastest snapshot. I got a screenful of test failures
> Jie> with this combination, with the latest Apache 2.2, with mod_perl 2.0.4
> Jie> yesterday.  The snapshot tested clean. -Jie
> 
> I grabbed the SVN, and it generated the output below.
> 
> Is there a place for "snapshots", and is the SVN not the most recent up
> to date?
 
http://svn.apache.org/snapshots/modperl-2.0/

The one I used is 2.0_20100807092020.

Regards,


Jie

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by "Randal L. Schwartz" <me...@stonehenge.com>.
>>>>> "Jie" == Jie Gao <J....@isu.usyd.edu.au> writes:

Jie> Download the lastest snapshot. I got a screenful of test failures
Jie> with this combination, with the latest Apache 2.2, with mod_perl 2.0.4
Jie> yesterday.  The snapshot tested clean. -Jie

I grabbed the SVN, and it generated the output below.

Is there a place for "snapshots", and is the SVN not the most recent up
to date?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"

Posted by Jie Gao <J....@isu.usyd.edu.au>.
Download the lastest snapshot. I got a screenful of test failures
with this combination, with the latest Apache 2.2, with mod_perl 2.0.4
yesterday.  The snapshot tested clean. -Jie

* Randal L. Schwartz <me...@stonehenge.com> wrote:

> Date: Sat, 07 Aug 2010 18:15:25 -0700
> From: "Randal L. Schwartz" <me...@stonehenge.com>
> To: mod_perl Dev <de...@perl.apache.org>
> Subject: perl5.10.1 and mod_perl 2.0.4 break on "my_perl"
> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix)
> 
> 
> I'm trying to compile mod_perl 2.0.4 on perl-5.10.1 on Snow Leopard.
> Whether I use macports, or try it by hand, I get something like this:
> 
>     mod_perl.c: In function 'modperl_shutdown':
>     mod_perl.c:62: error: 'my_perl' undeclared (first use in this function)
>     mod_perl.c:62: error: (Each undeclared identifier is reported only once
>     mod_perl.c:62: error: for each function it appears in.)
>     mod_perl.c: In function 'modperl_hook_post_config_last':
>     mod_perl.c:718: error: 'my_perl' undeclared (first use in this function)
>     mod_perl.c: In function 'modperl_child_exit':
>     mod_perl.c:814: error: 'my_perl' undeclared (first use in this function)
>     mod_perl.c: In function 'modperl_response_handler':
>     mod_perl.c:1036: error: 'my_perl' undeclared (first use in this
>     function)
>     mod_perl.c: In function 'modperl_response_handler_cgi':
>     mod_perl.c:1079: error: 'my_perl' undeclared (first use in this
>     function)
>     make[1]: *** [mod_perl.lo] Error 1
>     make: *** [modperl_lib] Error 2
> 
> Is this a known problem, and if so, what solution can I use?
> 
> (Can't downgrade to 5.8...)
> 
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <me...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org