benjamin mccall wrote:
hi,

i'm having a problem with building mod_perl. what follows is a snapshot
of my procedure to administer the build:

perl: 5.8 installed (mthread)
apache2:(x.43)

mod_perl-1.99_08]# perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2
...

Reading Makefile.PL args from @ARGV
    MP_AP_PREFIX = /usr/local/apache2
Configuring Apache/2.0.43 mod_perl/1.99_08 Perl/v.5.8.0
Usage: Socket::inet_ntoa(ip_address_sv at
Apache-Test/lib/Apache/TestConfig.pm line 556.
...
mod_perl-1.99_08]#make
...
make: *** No targets specified and no makefile found. Stop.


----------------------------------------------------

The install just flatlines. I've not been able to sniff out a similiar
problem throughout any related usr or faq post anywhere.

Is anyone familiar with a similiar glitch of this kind? Your help would
much appreciated.
what's the output from running the following script?

use Socket;
my $localhost_addr = pack('C4', 127, 0, 0, 1);
print gethostbyaddr($localhost_addr, Socket::AF_INET()) || 'localhost';

Do you have this entry in your /etc/hosts?

127.0.0.1 localhost.localdomain localhost

This patch should cleanly trap this problem (though not solve it):

Index: Apache-Test/lib/Apache/TestConfig.pm
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
retrieving revision 1.144
diff -u -r1.144 TestConfig.pm
--- Apache-Test/lib/Apache/TestConfig.pm 2 Dec 2002 16:11:48 -0000 1.144
+++ Apache-Test/lib/Apache/TestConfig.pm 27 Jan 2003 03:07:56 -0000
@@ -500,6 +500,8 @@
sub default_servername {
my $self = shift;
$localhost ||= $self->default_localhost;
+ die "Can't figure out the default localhost's server name"
+ unless $localhost;
}

# memoize the selected value (so we make sure that the same port is used


__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

Reply via email to