apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48247] Apache HTTP server could not respond HEAD message under PPC platform when using apr1.3.5
Date Thu, 04 Feb 2010 12:37:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48247

--- Comment #4 from Jeff Trawick <trawick@apache.org> 2010-02-04 04:37:14 UTC ---
>I haven't set it myself. After running cnofigure` command, I found the macro
>has been set as 1.

Thanks for the clarification.

>I guess maybe it's because I compiled it on the powerpc platform.

Who knows?

>And I still think it's a bug,
Sure; the behavior you see, and comparison with other Linux boxes, indicates
that the macro should have been set to 0 by configure.

> because the function apr_set_option only set the
>flag in the structure apr_socket_t, and the non-blocking mode recorded by
>operating system hasn't been modified.

Note that this logic is controlled by the configure-time detection, so it is
that detection we need to explore.

Work-around:

Set this in your environment before running configure:

 export ac_cv_o_nonblock_inherited="no"

(make sure you run "make distclean" between different build attempts)

Finding the problem:

Look for the message starting with "checking if O_NONBLOCK setting" in your
config.log.  Here's what that section looks like in my Linux build.  Please
post your version.

configure:45431: checking if O_NONBLOCK setting is inherited from listening
sockets
configure:45550: /usr/bin/gcc -m32 -o conftest  -O0 -g -Wall
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  conftest.c -lrt
-lcrypt  -lpthread -ldl >&5
conftest.c: In function 'main':
conftest.c:218: warning: implicit declaration of function 'exit'
conftest.c:218: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:220: warning: implicit declaration of function 'memset'
conftest.c:220: warning: incompatible implicit declaration of built-in function
'memset'
conftest.c:229: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:236: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:242: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:247: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:252: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:264: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:270: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:275: warning: incompatible implicit declaration of built-in function
'exit'
conftest.c:279: warning: incompatible implicit declaration of built-in function
'exit'
configure:45553: $? = 0
configure:45559: ./conftest
O_NONBLOCK is not set in the child.
configure:45562: $? = 1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message