public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] mod_perl is hard to set up on gentoo; this even messes up vim
@ 2009-07-15  9:56 Kevin O'Gorman
  2009-07-15 10:06 ` [gentoo-user] " Kevin O'Gorman
  2009-07-15 10:25 ` Torsten Veller
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin O'Gorman @ 2009-07-15  9:56 UTC (permalink / raw
  To: users, gentoo-user

I wanted mod_perl on my gentoo system.  It seems to be touchy about
thread safety.  Well that seemed reasonable, but it failed to emerge
(gentoo-speak for "install from source"), and left me without my
favorite editor (!!!): vim.

To handle thread-safety issues, I put this in /etc/package.use:
> # perl needs threads for mod_perl to work (or else mod_perl can't have threads)
> # Moreover vim cannot be built unless perl and libperl have the same use flags
> dev-lang/perl ithreads -ldap perlsuid doc
> sys-devel/libperl ithreads -ldap perlsuid doc
> www-apache/mod_perl ithreads -ldap doc

The result was failure.  I was not rebuilding vim, but it got killed
in the process anyway: it errors out on startup.
Moreover, I cannot re-emerge vim either, because it fails in about the
same way as mod_perl.
Both perl and libperl seem to build okay with the above lines in package-use.
My running kernel matches /usr/src/linux, so the headers should be good.
I'm looking for guidance from anyone who's using mod_perl with apache.
Here's the build log:

treat portage # cat /var/tmp/portage/www-apache/mod_perl-2.0.4-r1/temp/build.log
>>> Unpacking source...
>>> Unpacking mod_perl-2.0.4.tar.gz to /var/tmp/portage/www-apache/mod_perl-2.0.4-r1/work
 * Applying mod_perl-2.0.1-sneak-tmpdir.patch ...                         [ ok ]
 * Applying CVE-2009-0796.patch ...                                       [ ok ]
>>> Source unpacked in /var/tmp/portage/www-apache/mod_perl-2.0.4-r1/work
>>> Compiling source in /var/tmp/portage/www-apache/mod_perl-2.0.4-r1/work/mod_perl-2.0.4 ...
Errno architecture (i686-linux-2.6.24-gentoo-r4-kosmanor) does not
match executable architecture
(i686-linux-thread-multi-2.6.28-gentoo-r5-kosmanor) at
/usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.8.8/File/Path.pm line 185.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/File/Path.pm line 185.
Compilation failed in require at Apache-Test/lib/Apache/TestConfig.pm line 46.
BEGIN failed--compilation aborted at
Apache-Test/lib/Apache/TestConfig.pm line 46.
Compilation failed in require at lib/ModPerl/Code.pm line 27.
BEGIN failed--compilation aborted at lib/ModPerl/Code.pm line 27.
Compilation failed in require at lib/Apache2/Build.pm line 48.
BEGIN failed--compilation aborted at lib/Apache2/Build.pm line 48.
Compilation failed in require at Makefile.PL line 36.
BEGIN failed--compilation aborted at Makefile.PL line 36.
 *
 * ERROR: www-apache/mod_perl-2.0.4-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2677:  Called die
 * The specific snippet of code:
 *       perl Makefile.PL PREFIX="${D}"/usr MP_TRACE=1 MP_DEBUG=1
MP_USE_DSO=1 MP_APXS=${APXS} INSTALLDIRS=vendor < /dev/null || die;
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call
stack if relevant.
 * A complete build log is located at
'/var/tmp/portage/www-apache/mod_perl-2.0.4-r1/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/www-apache/mod_perl-2.0.4-r1/temp/environment'.
 *

-- 
Kevin O'Gorman, PhD



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: mod_perl is hard to set up on gentoo; this even messes up vim
  2009-07-15  9:56 [gentoo-user] mod_perl is hard to set up on gentoo; this even messes up vim Kevin O'Gorman
@ 2009-07-15 10:06 ` Kevin O'Gorman
  2009-07-15 10:08   ` Kevin O'Gorman
  2009-07-15 10:25 ` Torsten Veller
  1 sibling, 1 reply; 6+ messages in thread
From: Kevin O'Gorman @ 2009-07-15 10:06 UTC (permalink / raw
  To: users, gentoo-user

More info:
Even though the perl and libperl emerges seemed to go okay, they also
fail on startup, with pretty much the same complaint about this
Errno.pm file.  On looking at that file, I see that it says it's
auto-generated, and has this old 2.4 kernel string built-in.

Too bad there's no hint what I have to do to regenerate it.  I'll try
a few things, but I could really use some expert help at this point.
-- 
Kevin O'Gorman, PhD



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: mod_perl is hard to set up on gentoo; this even messes up vim
  2009-07-15 10:06 ` [gentoo-user] " Kevin O'Gorman
@ 2009-07-15 10:08   ` Kevin O'Gorman
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin O'Gorman @ 2009-07-15 10:08 UTC (permalink / raw
  To: users, gentoo-user

On Wed, Jul 15, 2009 at 3:06 AM, Kevin O'Gorman<kogorman@gmail.com> wrote:
> More info:
> Even though the perl and libperl emerges seemed to go okay, they also
> fail on startup, with pretty much the same complaint about this
> Errno.pm file.  On looking at that file, I see that it says it's
> auto-generated, and has this old 2.4 kernel string built-in.
>
> Too bad there's no hint what I have to do to regenerate it.  I'll try
> a few things, but I could really use some expert help at this point.
> --
> Kevin O'Gorman, PhD
>

Oops: make that a 2.6.24 kernel string.

-- 
Kevin O'Gorman, PhD



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user] Re: mod_perl is hard to set up on gentoo; this even messes up vim
  2009-07-15  9:56 [gentoo-user] mod_perl is hard to set up on gentoo; this even messes up vim Kevin O'Gorman
  2009-07-15 10:06 ` [gentoo-user] " Kevin O'Gorman
@ 2009-07-15 10:25 ` Torsten Veller
  2009-07-15 13:22   ` Kevin O'Gorman
  1 sibling, 1 reply; 6+ messages in thread
From: Torsten Veller @ 2009-07-15 10:25 UTC (permalink / raw
  To: gentoo-user

* Kevin O'Gorman <kogorman@gmail.com>:
> Errno architecture (i686-linux-2.6.24-gentoo-r4-kosmanor) does not
> match executable architecture
> (i686-linux-thread-multi-2.6.28-gentoo-r5-kosmanor) at
> /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Where does this file come from?



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Re: mod_perl is hard to set up on gentoo; this even  messes up vim
  2009-07-15 10:25 ` Torsten Veller
@ 2009-07-15 13:22   ` Kevin O'Gorman
  2009-07-15 14:39     ` walt
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin O'Gorman @ 2009-07-15 13:22 UTC (permalink / raw
  To: gentoo-user

On Wed, Jul 15, 2009 at 3:25 AM, Torsten Veller<ml-en@veller.net> wrote:
> * Kevin O'Gorman <kogorman@gmail.com>:
>> Errno architecture (i686-linux-2.6.24-gentoo-r4-kosmanor) does not
>> match executable architecture
>> (i686-linux-thread-multi-2.6.28-gentoo-r5-kosmanor) at
>> /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Where does this file come from?
>
>

That is from the file  /etc/portage/package.use, which is used by the
Gentoo package manager, "portage".  I've cross-posted this because it
appears to be a configuration issue, and requires some combination of
knowledge about Perl and Gentoo.

-- 
Kevin O'Gorman, PhD



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user]  Re: mod_perl is hard to set up on gentoo; this even    messes up vim
  2009-07-15 13:22   ` Kevin O'Gorman
@ 2009-07-15 14:39     ` walt
  0 siblings, 0 replies; 6+ messages in thread
From: walt @ 2009-07-15 14:39 UTC (permalink / raw
  To: gentoo-user

On 07/15/2009 06:22 AM, Kevin O'Gorman wrote:
> On Wed, Jul 15, 2009 at 3:25 AM, Torsten Veller<ml-en@veller.net>  wrote:
>> * Kevin O'Gorman<kogorman@gmail.com>:
>>> Errno architecture (i686-linux-2.6.24-gentoo-r4-kosmanor) does not
>>> match executable architecture
>>> (i686-linux-thread-multi-2.6.28-gentoo-r5-kosmanor) at
>>> /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.
>>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Where does this file come from?
>>
>>
>
> That is from the file  /etc/portage/package.use, which is used by the
> Gentoo package manager, "portage"...

On my machines that generated file resides in /usr/lib/perl5/5.8.8/i686-linux
and belongs to the perl package itself.  I'd suggest deleting that file and
re-emerging perl to generate a new one.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-15 14:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15  9:56 [gentoo-user] mod_perl is hard to set up on gentoo; this even messes up vim Kevin O'Gorman
2009-07-15 10:06 ` [gentoo-user] " Kevin O'Gorman
2009-07-15 10:08   ` Kevin O'Gorman
2009-07-15 10:25 ` Torsten Veller
2009-07-15 13:22   ` Kevin O'Gorman
2009-07-15 14:39     ` walt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox