I have been chasing down the same problem on RH7. So far I have found that I _can_ build it if I use the perl binary that comes with RH7. So I am hunting down differences between the RH7 build of perl and a stock build. (RedHat did NOT build perl on this kernel?!!) Will update when I get a good total build from source. <Rant> RedHat really sux sometimes. </Rant> Danny Aldham Providing Certified Internetworking Solutions to Business www.postino.com E-Mail, Web Servers, Web Databases, SQL PHP & Perl > I'm having a problem making apache work with mod_perl. > Short problem description is: when I compile apache by itself, it = > works, > but when I compile mod_perl (which builds apache also) it doesn't work = > and gives me an error that's on = > http://www.apache.org/docs/misc/FAQ-D.html#nfslocking=20 > When I am trying to fix the error as it says on the page, apache is = > still behaving the same way, that is -- not working and giving me the = > same error. > > I am using RedHat Linux 7.0 > do you know if there is a way to fix that problem ?=20 > [snip] > .......... > ../apache_1.3.12/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t & > httpd listening on port 8529 > will write error_log to: t/logs/error_log > letting apache warm up...\c > done > /usr/bin/perl t/TEST 0 > still waiting for server to warm up...............not ok > server failed to start! (please examine t/logs/error_log) at t/TEST line = > 95. > make: *** [run_tests] Error 115 > /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ > > > [root@server mod_perl-1.24]# cat t/logs/error_log = > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D looking at the = > log > \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/=20 > [notice] Destruction->DESTROY called for $global_object > [Sat Oct 14 11:41:15 2000] [warn] [notice] child_init for process 31536, = > report > any problems to [no address given] > > [Sat Oct 14 11:41:15 2000] [emerg] (22)Invalid argument: fcntl: = > F_SETLKW: Error > getting accept lock, exiting! Perhaps you need to use the LockFile = > directive to > place your lock file on a local disk! > [notice] child process 31536 terminating > [notice] END block called for startup.pl > [notice] Destruction->DESTROY called for $global_object > /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ > > > > [root@server mod_perl-1.24]# make install = > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D making install anyway, = > which looks ok > > then I run apache > [root@server mod_perl-1.24]# /usr/local/apache/bin/apachectl start > /usr/local/apache/bin/apachectl start: httpd started = > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D looks just fine, = > but an HTTP request to http://127.0.0.1 fails > [root@server mod_perl-1.24]# tail /usr/local/apache/logs/error_log = > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D checking error = > log > \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/=20 > [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: = > F_SETLKW: Error > getting accept lock, exiting! Perhaps you need to use the LockFile = > directive to > place your lock file on a local disk! > [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: = > F_SETLKW: Error > getting accept lock, exiting! Perhaps you need to use the LockFile = > directive to > place your lock file on a local disk! > [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: = > F_SETLKW: Error > getting accept lock, exiting! Perhaps you need to use the LockFile = > directive to > place your lock file on a local disk! > [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: = > F_SETLKW: Error > getting accept lock, exiting! Perhaps you need to use the LockFile = > directive to > place your lock file on a local disk! > [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: = > F_SETLKW: Error > getting accept lock, exiting! Perhaps you need to use the LockFile = > directive to > place your lock file on a local disk! > [Sat Oct 14 11:46:34 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24 = > configure > d -- resuming normal operations > [Sat Oct 14 11:46:34 2000] [alert] Child 32255 returned a Fatal error... > Apache is exiting! > /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ > [root@server logs]# > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D> Checking = > http://www.apache.org/docs/misc/FAQ-D.html#nfslocking for the error = > message=20 > doing what it says to fix the problem, that is putting > "LockFile /var/run/apache-lock" in httpd.conf (without the quotes) > re-running apache, and getting the same error ... . > > do you know if there is a way to fix that problem ?=20 > is there anything else I should try ?=20 > .......... > I'm compiling apache as root, and hope that's not the problem and I = > don't think it should be ..=20 > I can try compiling it as a user other than root .. or should I ? > ........ > > thank you, > Dennis=20 > > > > ------=_NextPart_000_0021_01C035D9.FA8CCA00 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3DContent-Type content=3D"text/html; = > charset=3Diso-8859-1"> > <META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>I'm having a problem making apache work = > with=20 > mod_perl.</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>Short problem description is: = > when I compile=20 > apache by itself, it works,</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>but when I compile mod_perl (which = > builds=20 > apache also) it doesn't work and gives me an error that's on <A=20 > href=3D"http://www.apache.org/docs/misc/FAQ-D.html#nfslocking">http://www= > .apache.org/docs/misc/FAQ-D.html#nfslocking</A> </FONT></DIV> > <DIV><FONT face=3DArial size=3D2> When I am trying to fix the = > error as it=20 > says on the page, apache is still behaving the same way, that is -- not = > working=20 > and giving me the same error.</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>I am using RedHat Linux = > 7.0</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>do you know if there is a way to fix = > that problem ?=20 > </FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>..........</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>In detail description with error log = > files,=20 > etc:</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV>\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ </DIV> > <DIV><FONT face=3DArial size=3D2>I indicate the start of the logs by the = > symbols on=20 > the above line</FONT></DIV> > <DIV>and the end by the symbols on the line below</DIV> > <DIV><FONT face=3DArial size=3D2>/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ = > /\ /\ /\ /\=20 > /\ /\ /\</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>When I compile apache how it's = > described in the=20 > INSTALL file:</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ = > \/ \/ \/ \/=20 > \/ \/ \/ </FONT></DIV> > <DIV><FONT face=3DArial size=3D2> ./configure=20 > --prefix=3D/usr/local/apache</FONT></DIV> > <DIV><FONT face=3DArial size=3D2> make<BR> make=20 > install<BR>/usr/local/apache/bin/apachectl start</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>and run it = > ^^^^^^^^^ =3D=3D=3D=3D=3D=3D=3D> it=20 > works just fine. <=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ = > /\ /\ /\ /\=20 > /\ /\ /\</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>When I compile it with mod_perl as it's = > described=20 > in INSTALL.simple file:</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ = > \/ \/ \/ \/=20 > \/ \/ \/ </FONT></DIV> > <DIV><FONT face=3DArial size=3D2>% perl Makefile.PL DO_HTTPD=3D1 = > USE_APACI=3D1=20 > APACHE_PREFIX=3D/usr/local/apache</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>% make test && make = > install</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ = > /\ /\ /\ /\=20 > /\ /\ /\</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>it stops on make test with the=20 > following:</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ = > \/ \/ \/ \/=20 > \/ \/ \/ </FONT></DIV> > <DIV><FONT face=3DArial size=3D2>../apache_1.3.12/src/httpd -f=20 > `pwd`/t/conf/httpd.conf -X -d `pwd`/t &<BR>httpd listening on port=20 > 8529<BR>will write error_log to: t/logs/error_log<BR>letting apache warm = > > up...\c<BR>done<BR>/usr/bin/perl t/TEST 0<BR>still waiting for server to = > warm=20 > up...............not ok<BR>server failed to start! (please examine=20 > t/logs/error_log) at t/TEST line 95.<BR>make: *** [run_tests] Error=20 > 115</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ = > /\ /\ /\ /\=20 > /\ /\ /\</FONT></DIV><FONT face=3DArial size=3D2> > <DIV> </DIV> > <DIV><BR>[root@server mod_perl-1.24]# cat t/logs/error_log =20 > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D looking at = > the log</DIV> > <DIV>\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ = > <BR>[notice]=20 > Destruction->DESTROY called for $global_object<BR>[Sat Oct 14 = > 11:41:15 2000]=20 > [warn] [notice] child_init for process 31536, report<BR>any problems to = > [no=20 > address given]</DIV> > <DIV></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>[Sat Oct 14 11:41:15 2000] [emerg] = > (22)Invalid=20 > argument: fcntl: F_SETLKW: Error<BR>getting accept lock, exiting! = > Perhaps=20 > you need to use the LockFile directive to<BR> place your lock file = > on a=20 > local disk!<BR>[notice] child process 31536 terminating<BR>[notice] END = > block=20 > called for startup.pl<BR>[notice] Destruction->DESTROY called for=20 > $global_object</FONT></DIV>/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ = > /\ /\ /\=20 > /\ /\ > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2> </DIV> > <DIV><BR>[root@server mod_perl-1.24]# make install = > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D making=20 > install anyway, which looks ok</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>then I run apache</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>[root@server mod_perl-1.24]#=20 > /usr/local/apache/bin/apachectl start<BR>/usr/local/apache/bin/apachectl = > start:=20 > httpd started <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = > looks just fine, but an HTTP request to <A=20 > href=3D"http://127.0.0.1">http://127.0.0.1</A> fails</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>[root@server mod_perl-1.24]# tail=20 > /usr/local/apache/logs/error_log = > <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D checking = > error=20 > log</FONT></DIV> > <DIV>\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ </DIV> > <DIV><FONT face=3DArial size=3D2>[Sat Oct 14 11:46:34 2000] [emerg] = > (22)Invalid=20 > argument: fcntl: F_SETLKW: Error<BR>getting accept lock, exiting! = > Perhaps=20 > you need to use the LockFile directive to<BR> place your lock file = > on a=20 > local disk!<BR>[Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: = > fcntl:=20 > F_SETLKW: Error<BR>getting accept lock, exiting! Perhaps you need = > to use=20 > the LockFile directive to<BR> place your lock file on a local = > disk!<BR>[Sat=20 > Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW:=20 > Error<BR>getting accept lock, exiting! Perhaps you need to use the = > > LockFile directive to<BR> place your lock file on a local = > disk!<BR>[Sat Oct=20 > 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW:=20 > Error<BR>getting accept lock, exiting! Perhaps you need to use the = > > LockFile directive to<BR> place your lock file on a local = > disk!<BR>[Sat Oct=20 > 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW:=20 > Error<BR>getting accept lock, exiting! Perhaps you need to use the = > > LockFile directive to<BR> place your lock file on a local = > disk!<BR>[Sat Oct=20 > 14 11:46:34 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24 = > configure<BR>d --=20 > resuming normal operations<BR>[Sat Oct 14 11:46:34 2000] [alert] Child = > 32255=20 > returned a Fatal error...<BR>Apache is exiting!</FONT></DIV> > <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = > size=3D3>/\ /\ /\ /\ /\=20 > /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\</FONT><BR>[root@server=20 > logs]#</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D> = > Checking <A=20 > href=3D"http://www.apache.org/docs/misc/FAQ-D.html#nfslocking">http://www= > .apache.org/docs/misc/FAQ-D.html#nfslocking</A> for=20 > the error message </FONT></DIV> > <DIV><FONT face=3DArial size=3D2>doing what it says to fix the problem, = > that is=20 > putting</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>"LockFile /var/run/apache-lock" in = > httpd.conf=20 > (without the quotes)</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>re-running apache, and getting the same = > error ...=20 > .</FONT></DIV> > <DIV> </DIV><FONT face=3DArial size=3D2>do you know if there is a = > way to fix=20 > that problem ? </FONT> > <DIV><FONT face=3DArial size=3D2>is there anything else I should try ? = > </FONT></DIV> > <DIV><FONT face=3DArial size=3D2>..........</FONT></DIV> > <DIV><FONT face=3DArial size=3D2> > <DIV><FONT face=3DArial size=3D2>I'm compiling apache as root, and hope = > that's not=20 > the problem and I don't think it should be .. </FONT></DIV> > <DIV><FONT face=3DArial size=3D2>I can try compiling it as a user other = > than root ..=20 > or should I ?</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>........</FONT></DIV> > <DIV> </DIV> > <DIV>thank you,</DIV> > <DIV>Dennis </DIV> > <DIV> </DIV> > <DIV> </DIV></FONT></DIV></BODY></HTML> > > ------=_NextPart_000_0021_01C035D9.FA8CCA00-- >