Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache 2.0.50 configure script hangs

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


sagaralists at yahoo

Jul 19, 2004, 4:03 AM

Post #1 of 5 (952 views)
Permalink
Apache 2.0.50 configure script hangs

Hi all

Apache 2.0.50 configure script hangs on Red Hat
Enterprise Linux ES release 3 (Taroon), Kernel
2.4.21-4.0.1.ELsmp on an i686.

Following is what you see on the terminal:
:
Checking for Networking support...
checking for in_addr in netinet/in.h... yes
checking if fd == socket on this platform... yes
checking style of gethostbyname_r routine... glibc2
checking 3rd argument to the gethostbyname_r
routines... char
checking if TCP_NODELAY setting is inherited from
listening sockets...

Last few lines of config.log:
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

configure: caught signal 2
configure: exit 1

Pls note, I press Ctrl+C to stop the configure script.

My configure options are:
./configure --enable-so --enable-cgi \
--enable-rewrite --enable-ssl --enable-include \
--enable-suexec --with-suexec-caller=nobody \
--with-suexec-docroot=/path \
--with-suexec-logfile=/var/log/httpd/suexec_log \
--with-suexec-uidmin=500 --with-suexec-gidmin=500

Appreciate any help to identify the cause.

Kind regards
Sagara




__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jorton at redhat

Jul 19, 2004, 4:18 AM

Post #2 of 5 (904 views)
Permalink
Re: Apache 2.0.50 configure script hangs [In reply to]

On Mon, Jul 19, 2004 at 04:03:14AM -0700, Sagara Wijetunga wrote:
> Hi all
>
> Apache 2.0.50 configure script hangs on Red Hat
> Enterprise Linux ES release 3 (Taroon), Kernel
> 2.4.21-4.0.1.ELsmp on an i686.
>
> Following is what you see on the terminal:
> :
> Checking for Networking support...
> checking for in_addr in netinet/in.h... yes
> checking if fd == socket on this platform... yes
> checking style of gethostbyname_r routine... glibc2
> checking 3rd argument to the gethostbyname_r
> routines... char
> checking if TCP_NODELAY setting is inherited from
> listening sockets...

Not seen this before, it may be some network/routing configuration issue
preventing the test case completing. When it hangs, can you run from a
seperate terminal:

cd srclib/apr
cp conftest nodelay
tail -50 config.log

*then* Ctrl-C the configure script to abort it. Then, run:

strace ./conftest

from the second terminal, and post the output from the tail config.log
and strace commands.

joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


sagaralists at yahoo

Jul 19, 2004, 9:19 AM

Post #3 of 5 (890 views)
Permalink
Re: Apache 2.0.50 configure script hangs [In reply to]

--- Joe Orton <jorton [at] redhat> wrote:
> On Mon, Jul 19, 2004 at 04:03:14AM -0700, Sagara
> Wijetunga wrote:
> > Hi all
> >
> > Apache 2.0.50 configure script hangs on Red Hat
> > Enterprise Linux ES release 3 (Taroon), Kernel
> > 2.4.21-4.0.1.ELsmp on an i686.
> >
> > Following is what you see on the terminal:
> > :
> > Checking for Networking support...
> > checking for in_addr in netinet/in.h... yes
> > checking if fd == socket on this platform... yes
> > checking style of gethostbyname_r routine...
> glibc2
> > checking 3rd argument to the gethostbyname_r
> > routines... char
> > checking if TCP_NODELAY setting is inherited from
> > listening sockets...
>
> Not seen this before, it may be some network/routing
> configuration issue
> preventing the test case completing. When it hangs,
> can you run from a
> seperate terminal:
>
> cd srclib/apr
> cp conftest nodelay
> tail -50 config.log
>
> *then* Ctrl-C the configure script to abort it.
> Then, run:
>
> strace ./conftest
>
> from the second terminal, and post the output from
> the tail config.log
> and strace commands.
>
Here are the outputs as you requested. I noticed this
is something to do with the firewall. Later, I
disabled the firewall and ran the configure, it
worked.

Following outputs were taken while firewall is on.

tail -50 config.log
===================
configure:29253: $? = 0
configure:29256: test -s conftest.o
configure:29259: $? = 0
configure:29270: result: yes
configure:29282: checking for in_addr in netinet/in.h
configure:29306: gcc -c -g -O2 -pthread -DLINUX=2
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-D_SVID_SOURCE -D_GNU_SOURCE conftest.c >&5
configure:29312: $? = 0
configure:29316: test -z
|| test ! -s conftest.err
configure:29319: $? = 0
configure:29322: test -s conftest.o
configure:29325: $? = 0
configure:29337: result: yes
configure:29340: checking if fd == socket on this
platform
configure:29356: checking style of gethostbyname_r
routine
configure:29409: result: glibc2
configure:29420: checking 3rd argument to the
gethostbyname_r routines
cc1: warnings being treated as errors
conftest.c: In function `main':
conftest.c:22: warning: passing arg 3 of
`gethostbyname_r' from incompatible pointer type
conftest.c:22: too few arguments to function
`gethostbyname_r'
configure: failed or warning program:
#include "confdefs.h"

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

int main(int argc, const char * const argv) {

int tmp = gethostbyname_r((const char *) 0, (struct
hostent *) 0,
(struct hostent_data *) 0);
; return 0; }
configure:29472: result: char
configure:29486: checking if TCP_NODELAY setting is
inherited from listening sockets
configure:29601: gcc -o conftest -g -O2 -pthread
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE conftest.c
-lrt -lm -lcrypt -lnsl -lpthread -ldl >&5
configure:29604: $? = 0
configure:29606: ./conftest

strace ./conftest
=================
execve("./nodelay", ["./nodelay"], [/* 20 vars */]) =
0
uname({sys="Linux", node="host.myDomain.com", ...}) =
0
brk(0) = 0x8049b10
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=42400, ...})
= 0
old_mmap(NULL, 42400, PROT_READ, MAP_PRIVATE, 3, 0) =
0xb75e0000
close(3) = 0
open("/lib/tls/librt.so.1", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\36\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=46832, ...})
= 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75df000
old_mmap(NULL, 81176, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb75cb000
old_mmap(0xb75d3000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x7000) = 0xb75d3000
old_mmap(0xb75d4000, 44312, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0xb75d4000
close(3) = 0
open("/lib/tls/libm.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0005\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=212852,
...}) = 0
old_mmap(NULL, 139152, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb75a9000
old_mmap(0xb75ca000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0xb75ca000
close(3) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\t\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=23420, ...})
= 0
old_mmap(NULL, 181340, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb757c000
old_mmap(0xb7581000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0xb7581000
old_mmap(0xb7582000, 156764, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0xb7582000
close(3) = 0
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000<\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=91368, ...})
= 0
old_mmap(NULL, 85184, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb7567000
old_mmap(0xb7579000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0xb7579000
old_mmap(0xb757a000, 7360, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0xb757a000
close(3) = 0
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300F\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=97708, ...})
= 0
old_mmap(NULL, 64852, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb7557000
old_mmap(0xb7564000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0xb7564000
old_mmap(0xb7565000, 7508, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0xb7565000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\32\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14728, ...})
= 0
old_mmap(NULL, 12148, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb7554000
old_mmap(0xb7556000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0xb7556000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000X\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1567528,
...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7553000
old_mmap(NULL, 1276748, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0xb741b000
old_mmap(0xb754d000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x131000) = 0xb754d000
old_mmap(0xb7551000, 6988, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0xb7551000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb741a000
set_thread_area({entry_number:-1 -> 6,
base_addr:0xb741a080, limit:1048575, seg_32bit:1,
contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
munmap(0xb75e0000, 42400) = 0
set_tid_address(0xb741a0c8) = 12632
rt_sigaction(SIGRTMIN, {0xb755b620, [],
SA_RESTORER|SA_SIGINFO, 0xb7561e40}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024,
rlim_max=RLIM_INFINITY}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
bind(3, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(3, {sa_family=AF_INET,
sin_port=htons(32784), sin_addr=inet_addr("0.0.0.0")},
[16]) = 0
listen(3, 5) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(32784),
sin_addr=inet_addr("0.0.0.0")}, 16) = -1 ETIMEDOUT
(Connection timed out)
dup(2) = 5
fcntl64(5, F_GETFL) = 0x8002
(flags O_RDWR|O_LARGEFILE)
brk(0) = 0x8049b10
brk(0x806ab10) = 0x806ab10
brk(0) = 0x806ab10
brk(0x806b000) = 0x806b000
fstat64(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136,
0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75ea000
_llseek(5, 0, 0xbfffb0a8, SEEK_CUR) = -1 ESPIPE
(Illegal seek)
write(5, "connect: Connection timed out\n", 30connect:
Connection timed out
) = 30
close(5) = 0
munmap(0xb75ea000, 4096) = 0
brk(0) = 0x806b000
brk(0) = 0x806b000
brk(0x806a000) = 0x806a000
brk(0) = 0x806a000
exit_group(1) = ?





__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jorton at redhat

Jul 19, 2004, 9:29 AM

Post #4 of 5 (904 views)
Permalink
Re: Apache 2.0.50 configure script hangs [In reply to]

On Mon, Jul 19, 2004 at 09:19:36AM -0700, Sagara Wijetunga wrote:
> Here are the outputs as you requested. I noticed this
> is something to do with the firewall. Later, I
> disabled the firewall and ran the configure, it
> worked.

OK, that makes sense. The test cases tries to make a connection so if
the firewall rules prevent any packets from going even to loopback
addresses it'll hang. I'm not sure there's anything we can do about
this other than perhaps document the case.

...
> connect(4, {sa_family=AF_INET, sin_port=htons(32784),
> sin_addr=inet_addr("0.0.0.0")}, 16) = -1 ETIMEDOUT


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


sagaralists at yahoo

Jul 19, 2004, 8:52 PM

Post #5 of 5 (889 views)
Permalink
Re: Apache 2.0.50 configure script hangs [SOLVED] [In reply to]

--- Joe Orton <jorton [at] redhat> wrote:
> On Mon, Jul 19, 2004 at 09:19:36AM -0700, Sagara
> Wijetunga wrote:
> > Here are the outputs as you requested. I noticed
> this
> > is something to do with the firewall. Later, I
> > disabled the firewall and ran the configure, it
> > worked.
>
> OK, that makes sense. The test cases tries to make
> a connection so if
> the firewall rules prevent any packets from going
> even to loopback
> addresses it'll hang. I'm not sure there's anything
> we can do about
> this other than perhaps document the case.
>
> ...
> > connect(4, {sa_family=AF_INET,
> sin_port=htons(32784),
> > sin_addr=inet_addr("0.0.0.0")}, 16) = -1 ETIMEDOUT
>

The Apache 2.0.50 configure script hangs was due to
misconfigured firewall.

Packets to loopback interface must be allowed in the
INPUT/OUTPUT channels. In my firewall, it was allowed
in the wrong place in INPUT channel.

Thank you very much for helping me to identify the
cause.

Kind regards
Sagara



__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.