You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Christian Jaeger <ch...@sl.ethz.ch> on 2000/07/26 15:47:57 UTC

Help needed building mod_perl

Hello

It seems I really don't succeed getting mod_perl with apache to work. I'm
really tired now (I've compiled [and installed] apache/mod_perl more than
ten times now) and would like to hear a success story from someone using
LinuxPPC1999 like me. Which apache version, perl version, mod_perl version
did you use? I've tried with apache 1.3.9+mod_php+mod_fastcgi as well as
fresh  apache 1.3.11 and 1.3.12 tarballs, always mod_perl 1.24. Always
perl5.005_03.

What I do:
- untar apache
- untar mod_perl
- cd mod_perl; perl Makefile.PL EVERYTHING=1 (press enter, say y, say n)
- make; make install
- cd apache; ./configure --with-layout=RedHat
--activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT; make

With apache 1.3.11 for example I get this:

modules/perl/libperl.a(Table.o): In function `boot_Apache__Table':
Table.o(.text+0x286c): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x2884): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x28b4): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x28e4): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x2914): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x2944): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x2974): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x29a4): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x29bc): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x29d4): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x29ec): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x2a04): relocation truncated to fit: R_PPC_REL24 Perl_newXS
Table.o(.text+0x2a16): undefined reference to `PL_stack_base'
Table.o(.text+0x2a1a): undefined reference to `PL_stack_base'
Table.o(.text+0x2a22): undefined reference to `PL_sv_yes'
Table.o(.text+0x2a26): undefined reference to `PL_sv_yes'
Table.o(.text+0x2a2e): undefined reference to `PL_stack_sp'
Table.o(.text+0x2a32): undefined reference to `PL_stack_base'
Table.o(.text+0x2a42): undefined reference to `PL_stack_base'
Table.o(.text+0x2a4e): undefined reference to `PL_stack_sp'
modules/perl/libperl.a(mod_perl_opmask.o): In function `mod_perl_set_opmask':
mod_perl_opmask.o(.text+0x68): undefined reference to `Perl_croak'
mod_perl_opmask.o(.text+0x68): relocation truncated to fit: R_PPC_REL24
Perl_croak
./os/unix/libos.a(os.o): In function `ap_os_dso_load':
os.o(.text+0x58): undefined reference to `dlopen'
os.o(.text+0x58): relocation truncated to fit: R_PPC_REL24 dlopen
./os/unix/libos.a(os.o): In function `ap_os_dso_unload':
os.o(.text+0x9c): undefined reference to `dlclose'
os.o(.text+0x9c): relocation truncated to fit: R_PPC_REL24 dlclose
./os/unix/libos.a(os.o): In function `ap_os_dso_sym':
os.o(.text+0xe0): undefined reference to `dlsym'
os.o(.text+0xe0): relocation truncated to fit: R_PPC_REL24 dlsym
./os/unix/libos.a(os.o): In function `ap_os_dso_error':
os.o(.text+0x11c): undefined reference to `dlerror'
os.o(.text+0x11c): relocation truncated to fit: R_PPC_REL24 dlerror
collect2: ld returned 1 exit status
make: *** [target_static] Error 1
[root@nebelhorn src]#


Apache1.3.9+modfastcgi+php+mod_perl succeeded to compile, but as soon I had
put these statements into httpd.conf:
  line xxx:  AddModule mod_perl.c
  line 255:  PerlModule AxKit
I got:

[root@rkt-015 chris]# apachectl start
Syntax error on line 255 of /etc/httpd/conf/httpd.conf:
Can't locate loadable object for module Apache::Log in @INC (@INC contains:
/usr/lib/perl5/5.00503/ppc-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/ppc-linux /usr/lib/perl5/site_perl/5.005 .
/usr/ /usr/lib/perl) at
/usr/lib/perl5/site_perl/5.005/ppc-linux/mod_perl.pm line 65535
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.005/ppc-linux/AxKit.pm line 9.

/usr/sbin/apachectl start: httpd could not be started
[root@rkt-015 chris]#

I got this error regardless whether I configured mod_perl with EVERYTHING=1
or not.

help...
Christian.



Re: Help needed building mod_perl

Posted by Ime Smits <im...@iae.nl>.
| | /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm

OK, overlooked that first line. Sorry. Desperate in need of some coffee ;)

Ime


Re: Help needed building mod_perl

Posted by Ime Smits <im...@iae.nl>.
| It's part of mod_perl. Now to the question whether it's really installed:
|
| locate '*[Aa]pache/[Ll]og*'
| /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm
| /home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log
| /home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log/.exists
| /home/root/.cpan/build/mod_perl-1.24/blib/lib/Apache/Log.pm
| /home/root/.cpan/build/mod_perl-1.24/blib/arch/auto/Apache/Log
| /home/root/.cpan/build/mod_perl-1.24/blib/arch/auto/Apache/Log/.exists

So the answer is: not installed. It's only in your cpan cache, it should
give something like

/usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Log.pm
/usr/lib/perl5/site_perl/5.005/i686-linux/Apache/Log.pm

Ime


Re: Help needed building mod_perl

Posted by Christian Jaeger <ch...@sl.ethz.ch>.
At 17:39 Uhr +0200 26.7.2000, blue wrote:
>On Wed, 26 Jul 2000, Christian Jaeger wrote:
>
>> Can't locate loadable object for module Apache::Log in @INC (@INC contains:
>> /usr/lib/perl5/5.00503/ppc-linux /usr/lib/perl5/5.00503
>> /usr/lib/perl5/site_perl/5.005/ppc-linux /usr/lib/perl5/site_perl/5.005 .
>> /usr/ /usr/lib/perl) at
>> /usr/lib/perl5/site_perl/5.005/ppc-linux/mod_perl.pm line 65535
>> BEGIN failed--compilation aborted at
>> /usr/lib/perl5/site_perl/5.005/ppc-linux/AxKit.pm line 9.
>
>do ya have Apache::log installed?
>

Certainly...
cpan> i Apache::Log
Module id = Apache::Log
    CPAN_USERID  DOUGM (Doug MacEachern <do...@pobox.com>)
    CPAN_VERSION 1.01
    CPAN_FILE    D/DO/DOUGM/mod_perl-1.24.tar.gz
    MANPAGE      Apache::Log - Interface to Apache logging
    INST_FILE    /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm
    INST_VERSION 1.01

It's part of mod_perl. Now to the question whether it's really installed:

locate '*[Aa]pache/[Ll]og*'
/usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm
/home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log
/home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log/.exists
/home/root/.cpan/build/mod_perl-1.24/blib/lib/Apache/Log.pm
/home/root/.cpan/build/mod_perl-1.24/blib/arch/auto/Apache/Log
/home/root/.cpan/build/mod_perl-1.24/blib/arch/auto/Apache/Log/.exists

find mod_perl-1.24/ -iname '*log*'   (after having mod_perl configured with
EVERYTHING=1 and compiled)
mod_perl-1.24/t/net/perl/log.pl
mod_perl-1.24/t/modules/log.t
mod_perl-1.24/t/logs
mod_perl-1.24/lib/Apache/RedirectLogFix.pm
mod_perl-1.24/src/modules/perl/Log.xs
mod_perl-1.24/Log
mod_perl-1.24/Log/Log.pm
mod_perl-1.24/blib/lib/auto/Apache/Log
mod_perl-1.24/blib/lib/Apache/RedirectLogFix.pm
mod_perl-1.24/blib/lib/Apache/Log.pm
mod_perl-1.24/blib/arch/auto/Apache/include/include/http_log.h
mod_perl-1.24/blib/arch/auto/Apache/Log
mod_perl-1.24/blib/man3/Apache::Log.3
mod_perl-1.24/blib/man3/Apache::RedirectLogFix.3

There is no log.a, log.o or log.so - I assume the Log.xs get's included
somehow directly into apache code?? At least there is definitely no
loadable object for Apache::Log. BTW note the strange line number '65535'.

Christian.



Re: Help needed building mod_perl

Posted by blue <bl...@calico.gator.net>.
On Wed, 26 Jul 2000, Christian Jaeger wrote:

> Can't locate loadable object for module Apache::Log in @INC (@INC contains:
> /usr/lib/perl5/5.00503/ppc-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/ppc-linux /usr/lib/perl5/site_perl/5.005 .
> /usr/ /usr/lib/perl) at
> /usr/lib/perl5/site_perl/5.005/ppc-linux/mod_perl.pm line 65535
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.005/ppc-linux/AxKit.pm line 9.

do ya have Apache::log installed?

-- 
        Blue Lang                              Unix Systems Admin
        QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604
        Home: 919 835 1540  Work: 919 875 6994  Fax: 919 872 4015