From dev-return-21296-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Tue Jan 13 08:08:58 2009 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 77960 invoked from network); 13 Jan 2009 08:08:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2009 08:08:58 -0000 Received: (qmail 29659 invoked by uid 500); 13 Jan 2009 08:08:57 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 29617 invoked by uid 500); 13 Jan 2009 08:08:57 -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 29608 invoked by uid 99); 13 Jan 2009 08:08:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 00:08:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.52.84.103] (HELO cp-out3.libero.it) (212.52.84.103) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 08:08:49 +0000 Received: from libero.it (192.168.17.13) by cp-out3.libero.it (8.5.016.1) id 493F951B027D006B for dev@apr.apache.org; Tue, 13 Jan 2009 09:08:27 +0100 Date: Tue, 13 Jan 2009 09:08:27 +0100 Message-Id: Subject: Re:MinGW + MSYS compile apr errors and possible solutions. MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "carlo\.bramix" To: "dev" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 213.203.169.135 X-Virus-Checked: Checked by ClamAV on apache.org Hello, you may try to get latest sources with a checkout from repository and the= n try to apply this patch: https://issues.apache.org/bugzilla/show_bug.cgi?id=3D46175 Unfortunately this has not been committed yet, so you must do it manually= until it will be accepted. Good luck. Sincerely, Carlo Bramini. ---------- Initial Header ----------- >From : "Roberto Huelga" rhuelga@gmail.com To : dev@apr.apache.org Cc : Date : Sat, 10 Jan 2009 18:04:44 +0100 Subject : MinGW + MSYS compile apr errors and possible solutions. > I'm trying to test the log4cxx library following the information in thi= s > wiki page: > http://wiki.apache.org/logging-log4cxx/MSWindowsBuildInstructions > > when I run make in the apr folder, I'm getting this is the errors: > > /bin/sh /home/kanzeon/src/apr/trunk/libtool --silent --mode=3Dcompile g= cc > -O0 -s -mms-bitfields -march=3Di686 -DHAVE_CONFIG_H -D_LARGEFILE64_SOUR= CE > -I/usr/local/include -I./include > -I/home/kanzeon/src/apr/trunk/include/arch/win32 -I./include/arch/unix > -I/home/kanzeon/src/apr/trunk/include/arch/unix > -I/home/kanzeon/src/apr/trunk/include -o dso/win32/dso.lo -c > dso/win32/dso.c && touch dso/win32/dso.lo > In file included from > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_file= _io.h:29, > from dso/win32/dso.c:20: > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:421: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:421: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h: > In function `apr_winapi_Process32FirstW': > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:421: > error: `hSnapshot' undeclared (first use in this function) > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:421: > error: (Each undeclared identifier is reported only once > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:421: > error: for each function it appears in.) > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:421: > error: `lppe' undeclared (first use in this function) > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h: > At top level: > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:430: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:430: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h: > In function `apr_winapi_Process32NextW': > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:430: > error: `hSnapshot' undeclared (first use in this function) > C:/msys/1.0/home/kanzeon/src/apr/trunk/include/arch/win32/apr_arch_misc= .h:430: > error: `lppe' undeclared (first use in this function) > make[1]: *** [dso/win32/dso.lo] Error 1 > make[1]: Leaving directory `/home/kanzeon/src/apr/trunk' > make: *** [all-recursive] Error 1 > > I solved the problems using the WINVER def and inserting the tlhelp32.h= > include in the file include/arch/win32/apr_arch_misc.h > I'm using the following configure line: > $ ./configure CFLAGS=3D"-O0 -s -mms-bitfields -march=3Di686 -DWINVER=3D= 0x0501" > CXXFLAGS=3D"-O0 -s -mms-bitfields -march=3Di686 -DWINVER=3D0x0501" > > using this configuration everything get compiled without error (only ge= t > some warnings) and the make test only fail 4 of the 5 test of dso > Failed Tests Total Fail Failed % > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > testdso 5 4 80.00% > > > I hope this info will be useful to someone. > > -- > http://marssong.blogspot.com >