Apache 1.3.24 + mod_perl 1.26 + ipv6 patch build fails

Apache 1.3.24 + mod_perl 1.26 + ipv6 patch build fails

Post by Jeff Workma » Thu, 09 May 2002 03:46:14



Has anybody managed to get this working?

OS:  NetBSD 1.5

Perl:
# perl --version

This is perl, version 5.005_03 built for alpha-netbsd

Copyright 1987-1999, Larry Wall

Here's the swan song from gcc:

gcc -I. -I../../include -I../../include/regex -I../../include/.././os/unix
 -DNETBSD -DINET6 -Dss_family=__ss_family -Dss_len=__ss_len
-DHAVE_SOCKADDR_LEN -DUSE_EXPAT -I../lib/expat-lite `../apaci`  
 -I`/usr/local/bin/perl -MConfig -e 'print $Config{archlibexp}'
`/CORE `/usr/local/bin/perl '-MApache::ExtUtils=%Config' -e 'print
$Config{ccflags}'` -DNO_PERL_DISPATCH    -DNO_PERL_POST_READ_REQUEST
 -DNO_PERL_TRANS -DNO_PERL_HEADER_PARSER  -DNO_PERL_ACCESS -DNO_PERL_AUTHEN
-DNO_PERL_AUTHZ  -DNO_PERL_TYPE -DNO_PERL_FIXUP -DNO_PERL_LOG  -DNO_PERL_INIT
 -DNO_PERL_CLEANUP -DNO_PERL_RESTART  -DNO_PERL_STACKED_HANDLERS -DNO_PERL_SECTIONS
-DNO_PERL_METHOD_HANDLERS  -DNO_PERL_SSI -DNO_PERL_DIRECTIVE_HANDLERS  
-DMOD_PERL_VERSION=\"1.26\"   -I./os/unix -I../../include    -c Connection.c
Connection.c: In function `XS_Apache__Connection_remote_addr':
Connection.c:119: incompatible types in assignment
Connection.c: In function `XS_Apache__Connection_remote_ip':
Connection.c:153: structure has no member named `sin_addr'
*** Error code 1

Please email followups, for I normally don't read this NG.

TIA,
-J

--

 
 
 

1. Apache 1.3.24 + mod_proxy + mod_rewrite + mod_perl problem

Hi there!

I've got a problem using mod_proxy and mod_rewrite.
The following snippet is working just fine and Apache
also uses its proxy for _internal_ pages
(*.one.localhost und two.localhost are on the same server
using the same instance of Apache!!).

RewriteEngine On
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^(.*)\.one\.localhost/(.*) http://two.localhost/$2 [P]

So when I access http://test.one.localhost/page.html the data
will be actually fetched from http://two.localhost/page.html.
No problem.

But unfortunately I have to implement some more advanced rules
for which I cannot use the "RewriteRule whatever [P]" thing.
That's why I've made an Apache module using Perl to access
mod_proxy _directly_ (with that "proxy-server" handler).

The main part looks something like this:

if ($uri is sth. like *.one.localhost/whatever) {

  my $uri = "http://two.localhost/whatever";

  $r->proxyreq(1);
  $r->uri($uri);
  $r->filename("proxy:$uri");
  $r->handler('proxy-server');
  return OK;

This works *only* if $uri is an external page like
http://www.google.com. It does *not* work for
http://two.localhost/!! Probably because this domain
is running on the same machine using the same instance
of Apache.

Any ideas of how I can solve this problem? I really
need to proxy _internal_ pages, too.

I thought that there might be a possibility to access the
RewriteEngine somehow from the Perl module... because
this problem does *not* occur with mod_rewrite as written.

Thanx and bye bye,

Maurice.

2. US Robitics 56K Modem

3. Problem building Apache 1.3.24 on Solaris 8

4. xvgr installation?

5. Apache 1.3.24 make install error

6. can't send mail to machine, but can ping/telnet/ftp

7. apache 1.3.24 htaccess/symbolic link problem

8. ip forwarding, unable to turn it off

9. 403 Error with Apache ver 1.3.24 RH7.3

10. Apache 1.3.24 - mod_proxy

11. Apache 1.3.24 is vulnerable

12. apache 1.3.24

13. Apache 1.3.24 startup error on Solaris 8 _floatdisf error