httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From burns...@kattare.com
Subject compile problem
Date Wed, 27 Nov 2002 02:04:05 GMT
Ian,

    I gave nm a whirl.  Here's the results:

salvation:# nm httpsd | grep boot_Apache
nm: /usr/local/apache/sbin/httpsd: no symbols

salvation:# nm libperl.so | grep boot_Apache
0006b32c T boot_Apache
00072530 T boot_Apache__Connection
0006d60c T boot_Apache__Constants
0007427c T boot_Apache__File
0006f224 T boot_Apache__Log
0006e390 T boot_Apache__ModuleConfig
00073424 T boot_Apache__Server
00075788 T boot_Apache__Table
00070c30 T boot_Apache__URI
00071750 T boot_Apache__Util

    I'm guessing that the result from the httpsd is because we're using
the mod_perl dso.  Thus the second nm I used the mod_perl loadable
module.  As you can see, it's in there.  It would appear that the config
tool for apache::request is broken.  Maybe it only checks the httpsd
file and not the DSO?  Or maybe it looks for an httpd file when ours is
named httpsd?

    I'm cc'ing this (and thus the entire thread) to the apreq-dev
mailing list.  Hopefully they'll have some insight.  ;-)

Cheers,

~Ethan B.


--------------------------------------------------
 Kattare Internet Support
 Email: support@kattare.com
 Web: http://www.kattare.com
 Phone: 1.541.753.1079
 FAQ: http://www.kattare.com/docs/faq_browse.kvws
--------------------------------------------------


Quoting ivanstorm@kattare.com:

> Ethan -
>
> Try:
>
> use nm to double check:
>
> % nm httpd | grep boot_Apache
> [1252] | 300292| 2980|FUNC |GLOB |0 |8 |boot_Apache
> [1600] | 328540| 280|FUNC |GLOB |0 |8 |boot_Apache__Connection
> [1841] | 309372| 220|FUNC |GLOB |0 |8 |boot_Apache__Constants
> [2765] | 334048| 304|FUNC |GLOB |0 |8 |boot_Apache__File
> [3322] | 316548| 468|FUNC |GLOB |0 |8 |boot_Apache__Log
> [1776] | 312896| 376|FUNC |GLOB |0 |8 |boot_Apache__ModuleConfig
> [1883] | 331380| 280|FUNC |GLOB |0 |8 |boot_Apache__Server
> [1341] | 339500| 548|FUNC |GLOB |0 |8 |boot_Apache__Table
> [2510] | 322912| 448|FUNC |GLOB |0 |8 |boot_Apache__URI
> [3097] | 325600| 208|FUNC |GLOB |0 |8 |boot_Apache__Util
>
> If you see that boot_Apache_Table is present,
> you might send a request for support to modperl@apache.org;
> otherwise, maybe try (re)install the latest mod_perl
> with PERL_TABLE_API=1 _and_ EVERYTHING=1.
>
> ----------------------------------------------------------------------
-
> from http://www.kuzbass.ru:8086/docs/apache_c_mod_perl/169.htm :
>
> Options for activating standard API features
>    
> These options enable various standard features of the API, which
> are
> described in Chapter 9. While not absolutely needed, they're very
> handy
> and there's little penalty for including them. Unless specified
> otherwise, these options are all disabled by default. The
> EVERYTHING=1
> or DYNAMIC=1 options will enable them all.
>
> ...
> PERL_TABLE_API=1
> Enables the Apache::Table class.
> ...
> ----------------------------------------------------------------------
-
> Here are the only relevant uri's I found (by Googling):
>
> http://dbforums.com/archives/t290239.html
> http://lists.q-linux.com/pipermail/ph-perl/2002-July/000343.html
> http://archive.jsw4.net/mod_perl/02-07/msg00247.html
> http://dbforums.com/arch/95/2002/7/420836
>
> -- I  sent mail to those individuals who posted with the same issue
> but
> for which there was no posted solution. No response(s) yet. --
>
> Thanks for your good work and straightforward communication!
>
> - Ian
>
> -------------------------------------------------------
>
> Quoting Kattare Internet Support <support@kattare.com>:
>
> > Ian,
> >
> >     Have you ever used it before?  I'm having the worst time
> getting
> >
> > Apache::Request to compile.
> >
> >     I keep getting:
> >
> > make[1]: Entering directory
> > `/root/.cpan/build/libapreq-1.0/Request'
> > /usr/local/bin/perl -I/usr/lib/perl5/i386-linux -
> > I/usr/lib/perl5 /usr/lib/perl5/ExtUtils/xsubpp  -
> > typemap /usr/lib/perl5/ExtUtils/typemap Request.xs > Request.xsc
> &&
> > mv
> > Request.xsc Request.c
> > Error: 'Apache::Table' not in typemap in Request.xs, line 348
> > make[1]: *** [Request.c] Error 1
> > make[1]: Leaving directory
> `/root/.cpan/build/libapreq-1.0/Request'
> > make: *** [subdirs] Error 2
> >
> >     I looked up the error on google and it says there to make sure
> to
> >
> > compile mod_perl with EVERYTHING=1.  Which is how we compiled it.
> I
> >
> > can also see that Apache::Table is available.  (do a 'locate
> > Table.pm')
> >
> >     I don't get it.  Any ideas?
> >
> > Cheers,
> >
> > ~Ethan B.
> >
> >
> >
> > --------------------------------------------------
> >  Kattare Internet Support
> >  Email: support@kattare.com
> >  Web: http://www.kattare.com
> >  Phone: 1.541.753.1079
> >  FAQ: http://www.kattare.com/docs/faq_browse.kvws
> > --------------------------------------------------
> >
> >
> > Quoting ivanstorm@kattare.com:
> >
> > > Hello Support -
> > >
> > > userid: ivanstorm
> > >
> > > Can you help with an error while trying to use HTML::Mason with
> > > mod_perl ?:
> > >
> > > With the following lines in
> > > /home1/i/ivanstorm/apache/conf/httpd.conf:
> > >
> > >
> >
> 
#######################################################################
> > >
> > > <IfModule mod_perl.c>
> > >
> > > # PerlRequire /home1/i/ivanstorm/public_html/perl/startup.pl
> > >
> > > PerlModule Apache::Registry
> > > PerlModule Apache::Filter
> > > PerlModule HTML::Embperl
> > > PerlModule Apache::DBI
> > > PerlModule CGI
> > > PerlModule HTML::Mason
> > >
> > > #    SetEnv EMBPERL_DEBUG 2285
> > >
> > > PerlSetEnv PERL_DESTRUCT_LEVEL -1
> > > #PerlSetEnv EMBPERL_ESCMODE 0
> > > PerlSetEnv EMBPERL_COOKIE_PATH /
> > > PerlSetEnv EMBPERL_COOKIE_NAME kattare
> > > PerlSetEnv EMBPERL_OPTIONS 333954
> > > PerlSetEnv EMBPERL_LOG
> /home1/i/ivanstorm/apache/logs/embperl_log
> > > #PerlSetEnv EMBPERL_LOG /dev/null
> > > PerlSetEnv EMBPERL_DEBUG 1
> > >
> > > <Location /perl>
> > >  SetHandler perl-script
> > >  PerlHandler Apache::Registry
> > >  Options ExecCGI
> > >  PerlSendHeader On
> > > </Location>
> > >
> > > #<Location /mason>
> > > #PerlSetVar     MasonCompRoot
> > /home1/i/ivanstorm/public_html/mason
> > > #SetHandler     perl-script
> > > #PerlHandler    HTML::Mason::Apachehandler
> > > #</Location>
> > >
> > > #<Location /perl-status>
> > >    #SetHandler perl-script
> > >    #PerlHandler Apache::Status
> > > #</Location>
> > >
> > > #AddType text/html .mhtml
> > >
> > > #<FilesMatch "\.mhtml$">
> > >  #SetHandler    perl-script
> > >  #PerlHandler   HTML::Mason::ApacheHandler
> > > #</FilesMatch>
> > >
> > > #<Files *.html>
> > >   #SetHandler  perl-script
> > >   #PerlHandler HTML::Embperl
> > >   #Options     ExecCGI
> > > #</Files>
> > >
> > > #<FilesMatch "(\.mas|handler)$">
> > >   #SetHandler perl-script
> > >   #PerlModule Apache::Constants
> > >   #PerlHandler "sub { return Apache::Constants::NOT_FOUND }"
> > > #</FilesMatch>
> > >
> > > </IfModule>
> > >
> > > AddHandler server-parsed shtml
> > > Options +Includes
> > >
> > > NameVirtualHost 206.163.128.23
> > >
> > > <VirtualHost www.antcru.net>
> > >    ServerAdmin ivanstorm@kattare.com
> > >    ServerName www.antcru.net
> > >    ServerAlias antcru.net
> > >    DocumentRoot /home1/i/ivanstorm/public_html/antcru
> > >    PerlSetVar   MasonCompRoot  
> > > /home1/i/ivanstorm/public_html/antcru
> > >    PerlSetVar   MasonDataDir    /home1/i/ivanstorm/mason-data
> > >  <FilesMatch "\.mhtml$">
> > >    SetHandler     perl-script
> > >    PerlHandler    HTML::Mason::ApacheHandler
> > >  </FilesMatch>
> > > </VirtualHost>
> > >
> > >
> >
> 
#######################################################################
> > >
> > > Immediately after resarting apache,
> > > upon request (using Mozilla 1.0.1) of
> > http://antcru.net/test.mhtml,
> > > Mozilla returns Internal Server Error.
> > >
> > > The following is logged in
> > /home1/i/ivanstorm/apache/logs/error_log
> > > :
> > >
> > > ivanstorm@prince:~/apache/logs$ tail -n 10 error_log
> > > [Sat Nov 23 16:39:36 2002] [notice] SIGHUP received.
> Attempting
> > to
> > > restart
> > > [Sat Nov 23 16:39:37 2002] /usr/local/apache/sbin/gcache
> started
> > > bind: Address already in use
> > > [Sat Nov 23 16:39:37 2002] [notice] Apache/1.3.27 Ben-SSL/1.48
> > > (Unix)
> > > mod_perl/1.27 PHP/4.1.2 configured -- resuming normal
> operations
> > > [Sat Nov 23 16:39:37 2002] [notice] suEXEC mechanism enabled
> > > (wrapper:
> > > /usr/local/apache/sbin/suexec)
> > > [Sat Nov 23 16:39:37 2002] [notice] Accept mutex: sysvsem
> > (Default:
> > > sysvsem)
> > > Loading Apache::Request at runtime.  You could increase shared
> > > memory
> > > between Apache processes by preloading it in your httpd.conf or
> > > handler.pl file
> > > [Sat Nov 23 16:39:45 2002] [error] Can't locate
> Apache/Request.pm
> > > in
> > > @INC (@INC contains: /usr/lib/perl5/i386-linux /usr/lib/perl5
> > > /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl
> > > /usr/lib/perl5/site_perl . /usr/local/apache/
> > > /usr/local/apache/lib/perl) at
> > > /usr/lib/perl5/site_perl/HTML/Mason/ApacheHandler.pm line 635.
> > >
> > > [Sat Nov 23 16:39:45 2002] [error] [client 206.163.128.23] File
> > does
> > > not
> > > exist: /home1/i/ivanstorm/public_html/antcru/403error.html
> > > ivanstorm@prince:~/apache/logs$
> > >
> > > Can you help?
> > >
> > > Kind Regards,
> > >
> > > Ian Gordon
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> 

--------------------------
Ethan Burnside - Founder
Kattare Internet Services
http://www.kattare.com
--------------------------


Mime
View raw message