Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35390D0B9 for ; Wed, 5 Sep 2012 06:17:49 +0000 (UTC) Received: (qmail 2737 invoked by uid 500); 5 Sep 2012 06:17:48 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 2423 invoked by uid 500); 5 Sep 2012 06:17:44 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 2388 invoked by uid 99); 5 Sep 2012 06:17:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 06:17:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [116.6.133.30] (HELO DGSMTP.deltaww.com.cn) (116.6.133.30) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 06:17:36 +0000 X-TM-IMSS-Message-ID: <643152ee00080ecf@DELTAWW.COM.CN> Received: from dgexbh.dg.deltagroup.com ([10.201.1.186]) by DELTAWW.COM.CN ([10.201.1.30]) with ESMTP (TREND IMSS SMTP Service 7.1) id 643152ee00080ecf ; Wed, 5 Sep 2012 14:16:28 +0800 Received: from DGEX2V.dg.deltagroup.com ([fe80::1db9:9d2f:ec20:e223]) by dgexbh.dg.deltagroup.com ([::1]) with mapi; Wed, 5 Sep 2012 14:17:46 +0800 From: =?iso-2022-jp?B?VFJPWS5MSVUgGyRCTi09VTBOGyhC?= To: "dev@apr.apache.org" Date: Wed, 5 Sep 2012 14:17:08 +0800 Subject: APR will be non-threaded in cygwin? Thread-Topic: APR will be non-threaded in cygwin? Thread-Index: Ac2LLMZYNo5EZpZSQVSp8v0+3KkIzQ== Message-ID: <4994179EC7ED6843AAB0A30A1639E7F8251432B00F@DGEX2V.dg.deltagroup.com> Accept-Language: zh-CN, zh-TW Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: zh-CN, zh-TW Content-Type: multipart/alternative; boundary="_000_4994179EC7ED6843AAB0A30A1639E7F8251432B00FDGEX2Vdgdelta_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_4994179EC7ED6843AAB0A30A1639E7F8251432B00FDGEX2Vdgdelta_ Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Dear all, I failed in opening the thread feature when configuring on Cygwin on wind= ows 7. I find the configure will disable the enable_threads on cygwin and enable = it on mingw. Why? Does apr support thread on Cygwin? Configure: 25144 *mingw*) 25145 OSDIR=3D"win32" 25146 enable_threads=3D"system_threads" 25147 eolstr=3D"\\r\\n" 25148 file_as_socket=3D0 25149 proc_mutex_is_global=3D1 25150 OBJECTS_PLATFORM=3D'$(OBJECTS_win32)' 25151 ;; 25152 *cygwin*) 25153 OSDIR=3D"unix" 25154 enable_threads=3D"no" 25155 eolstr=3D"\\n" Log: $ ./configure --prefix=3D$PWD/../cygwin --enable-threads=3Dyes checking build system type... i686-pc-cygwin checking host system type... i686-pc-cygwin checking target system type... i686-pc-cygwin Configuring APR library Platform: i686-pc-cygwin checking for working mkdir -p... yes APR Version: 1.4.5 checking for chosen layout... apr checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a sed that does not truncate output... /usr/bin/sed Applying APR hints file rules for i686-pc-cygwin setting CPPFLAGS to "-DCYGWIN" (Default will be unix) checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for gawk... gawk checking whether ln -s works... yes checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for rm... rm checking for as... as checking for cpp... cpp checking for ar... ar checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for library containing strerror... none required checking whether system uses EBCDIC... no performing libtool configuration... checking for a sed that does not truncate output... /usr/bin/sed checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files..= . -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognize dependent libraries... file_magic ^x86 archive im= port|^x86 DLL checking for dlltool... dlltool checking for objdump... objdump checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 8192 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... (cached) ar checking for ranlib... (cached) ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -DDLL_EXPORT checking if gcc PIC flag -DDLL_EXPORT works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe) supports s= hared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports s= hared libraries... yes checking for g++ option to produce PIC... -DDLL_EXPORT checking if g++ PIC flag -DDLL_EXPORT works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports s= hared libraries... yes checking dynamic linker characteristics... Win32 ld.exe (cached) (cached) checking how to hardcode library paths into programs... i= mmediate appending configuration tag "F77" to libtool Check for compiler flags... checking whether the compiler provides atomic builtins... yes checking whether to enable -D_LARGEFILE64_SOURCE... no Checking for libraries... checking for library containing gethostbyname... none required checking for library containing gethostname... none required checking for library containing socket... none required checking for library containing crypt... -lcrypt checking for main in -ltruerand... no checking for library containing modf... none required Checking for Threads... APR will be non-threaded Best Regards Chunwei Liu --_000_4994179EC7ED6843AAB0A30A1639E7F8251432B00FDGEX2Vdgdelta_ Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable

Dear all,

 = ; I failed in opening the thread feature when configuring on Cygwin on wind= ows 7.

 I = find the configure will disable the enable_threads on cygwin and enable it = on mingw. Why?

=   Does apr support thread on Cygwin?

 

Configure:

25144    *mingw*)

25145        OSDIR=3D"win32"= ;

25146        enable_threads=3D"system_threads"

25147        eolstr=3D"\\r\\n<= span style=3D'color:#BFBF00'>"

25148      &nbs= p; file_as_socket=3D0

25149        proc_mutex_is_global=3D1

25150        OBJECTS_PLATFORM=3D'$(OBJECTS_win32)'

25151        ;;

25152    *cygwin*)

25153        OSDIR=3D"unix"

251= 54 &nb= sp;      enable= _threads=3D"no"

25155  &n= bsp;     eolstr=3D"\\n"

&= nbsp;

 

Log:

$ ./configure --prefix=3D$PWD/../cy= gwin --enable-threads=3Dyes

checking build system type... i686-pc-cygwin<= /p>

checking host system type... i686-= pc-cygwin

checki= ng target system type... i686-pc-cygwin

Configuring APR library

Platform: i686-pc-cygwin<= /p>

checking for working mkdir -p... y= es

= APR Version: = 1.4.5

checking f= or chosen layout... apr

checking for gcc... gcc

checking for C compiler default output file name... a.exe

checking whether = the C compiler works... yes

checking whether we are cross compiling... no=

checking for suffix of executable= s... .exe

checki= ng for suffix of object files... o

checking whether we are using the GNU C compiler... yes<= o:p>

checking whether= gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed<= /span>

checking for a sed that doe= s not truncate output... /usr/bin/sed

Applying APR hints file rules for i686-pc-cygwin=

  setting CPPFL= AGS to "-DCYGWIN"

(Default will be unix)

checking whether make sets $(MAKE)... yes

checking how to run the C prep= rocessor... gcc -E

checking whether ln -s works... yes

checking for ranlib... ranlib

checking for a BSD-compatibl= e install... /usr/bin/install -c

checking for rm... rm

checking for as... as

checking for cpp... cpp

=

checking for ar... ar

checking for grep that handles = long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E=

checking for ANSI C header files.= .. yes

checking = for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes<= /span>

checking for memory.h... ye= s

<= span style=3D'font-size:12.0pt;font-family:"Lucida Console"'>checking for s= trings.h... yes

= checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usabilit= y... no

checking= minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EX= TENSIONS__... yes

checking whether system uses EB= CDIC... no

perfo= rming libtool configuration...

checking for a sed that does not truncate output... /usr/bin= /sed

checking fo= r ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe

checking if the linker (/usr/i686-pc-cyg= win/bin/ld.exe) is GNU ld... yes

checking for /usr/i686-pc-cygwin/bin/ld.exe option to relo= ad object files... -r

checking for BSD-compatible nm... /usr/bin/nm -B

checking how to recognize dependent = libraries... file_magic ^x86 archive import|^x86 DLL

<= p class=3DMsoNormal style=3D'text-autospace:none'>checking for dlltool... dlltool

checking for objdump..= . objdump

checki= ng dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes=

checking for g++... g++

checking whether we are = using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes<= /p>

checking how to run the C++ prepro= cessor... g++ -E

checking for g77... no

checking for xlf... no

checking for f77... no

checking for frt... no

checking for pgf77... no

checking for cf77... no

checking for fort77... no

checking for fl32.= .. no

checking f= or af77... no

ch= ecking for xlf90... no

checking for f90... no

checking for pgf90... no

checking for pghpf... no

checking for epcf90... no=

checking for gfortran... no<= /o:p>

checking for g95... n= o

<= span style=3D'font-size:12.0pt;font-family:"Lucida Console"'>checking for x= lf95... no

check= ing for f95... no

checking for ifort... no

checking for ifc... no

checking for efc... no

<= p class=3DMsoNormal style=3D'text-autospace:none'>checking for pgf95... no

checking for lf95... no<= /o:p>

checking for ftn... n= o

<= span style=3D'font-size:12.0pt;font-family:"Lucida Console"'>checking wheth= er we are using the GNU Fortran 77 compiler... no

checking whether  accepts -g... no

checking the maxi= mum length of command line arguments... 8192

checking command to parse /usr/bin/nm -B outp= ut from gcc object... ok

checking for objdir... .libs

checking for ar... (cached) ar

<= p class=3DMsoNormal style=3D'text-autospace:none'>checking for ranlib... (cached) ranlib=

checking for st= rip... strip

che= cking if gcc supports -fno-rtti -fno-exceptions... no

=

checking for gcc option to produce PI= C... -DDLL_EXPORT

checking if gcc static flag -static wo= rks... yes

check= ing if gcc supports -c -o file.o... yes

checking whether the gcc linker (/usr/i686-pc-cygwi= n/bin/ld.exe) supports shared libraries... yes

checking whether -lc should be explicitly li= nked in... yes

c= hecking dynamic linker characteristics... Win32 ld.exe

checking how to hardcode library pat= hs into programs... immediate

checking whether stripping libraries is possible... yes<= /o:p>

checking if libtool s= upports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to buil= d static libraries... yes

configure: creating libtool

appending configuration tag "CXX" to libt= ool

checking for= ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe

checking if the linker (/usr/i686-pc-cygw= in/bin/ld.exe) is GNU ld... yes

checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld= .exe) supports shared libraries... yes

checking for g++ option to produce PIC... -DDLL_EXPO= RT

= checking if g= ++ PIC flag -DDLL_EXPORT works... yes

checking if g++ static flag -static works... yes=

checking if g++ supp= orts -c -o file.o... yes

checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) s= upports shared libraries... yes

checking dynamic linker characteristics... Win32 ld.exe

(cached) (cached) c= hecking how to hardcode library paths into programs... immediate=

appending configuration = tag "F77" to libtool

 

Check for compiler flags...

checking whether the compiler provides atomic builtins...= yes

checking wh= ether to enable -D_LARGEFILE64_SOURCE... no

 

Checking for libraries...

checking for library containing gethostbynam= e... none required

checking for library contai= ning socket... none required

checking for library containing crypt... -lcrypt

checking for main in -ltruera= nd... no

checkin= g for library containing modf... none required

 

Checking for Threads...

APR will be non-threaded

 

 =

Best Regards

Chunwei Liu

 

= --_000_4994179EC7ED6843AAB0A30A1639E7F8251432B00FDGEX2Vdgdelta_--