httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23124] New: - Related to bug 8536
Date Fri, 12 Sep 2003 03:58:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23124

Related to bug 8536

           Summary: Related to bug 8536
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: Alpha
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Eric.J.Bivona@Dartmouth.EDU


On Tru64 5.1A, if I try to configure Apache as

./configure \
        --with-mpm=worker \
        --enable-threads \
        ...

I get the following output from the configure processing:

...
Checking for Threads...
checking for pthreads_cflags... -pthread
checking for pthreads_lib... 
checking pthread.h usability... yes
checking pthread.h presence... no
configure: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: pthread.h: proceeding with the preprocessor's result
checking for pthread.h... no
APR will be non-threaded
checking for sigsuspend... yes
checking for sigwait... no
checking for poll... yes
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for getgrnam_r... yes
checking for getgrgid_r... yes
...

If I specify CPPFLAGS="-pthread" to ./configure, threads are correctly configured:

...
Checking for Threads...
checking for pthreads_cflags... 
checking for pthreads_lib... 
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking whether pthread_getspecific takes two arguments... no
checking whether pthread_attr_getdetachstate takes one argument... no
checking for pthread_key_delete... yes
checking for pthread_rwlock_init... yes
APR will use threads
checking for readdir in -lc_r... yes
checking for gethostbyname in -lc_r... yes
checking for gethostbyaddr in -lc_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking for sigsuspend... yes
checking for sigwait... no
checking for poll... yes
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for getgrnam_r... yes
checking for getgrgid_r... yes
...

Alternatively, the following patch to srclib/apr/build/apr_hints.m4 makes the explicit setting
of 
CPPFLAGS unnecessary:

*** apr_hints.m4.orig   Thu Sep 11 23:26:34 2003
--- apr_hints.m4        Thu Sep 11 23:27:33 2003
***************
*** 155,161 ****
        APR_SETIFNULL(apr_posixsem_is_global, [yes])
        ;;
      *-dec-osf*)
!       APR_ADDTO(CPPFLAGS, [-DOSF1])
        ;;
      *-nto-qnx*)
        ;;
--- 155,161 ----
        APR_SETIFNULL(apr_posixsem_is_global, [yes])
        ;;
      *-dec-osf*)
!       APR_ADDTO(CPPFLAGS, [-DOSF1 -pthread])
        ;;
      *-nto-qnx*)
        ;;

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


Mime
View raw message