apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myers, Gary - 43" <gary.my...@rainhail.com>
Subject RE: apr 1.3.2 compile fails with mingw/gcc
Date Mon, 30 Jun 2008 23:42:51 GMT
Just an FYI for anyone who cares

I noticed that in another thread that William Rowe was going to work on
some of issues with MinGW/MSYS.  I did some digging last night and while
I didn't get the problem fixed I did find that the apr.h that configure
creates did not include tlhelp32.h.  I hacked in the #include
<tlhelp32.h> to look like this

#if APR_HAVE_WINDOWS_H
#include <windows.h>
#include <tlhelp32.h>
#endif

to see if I could get the project to compile.  Honestly I think I got
lucky on that one.  I don't know if this will help in speeding up fixing
the problem, but I hope it will be useful.

Thanks
Gary

-----Original Message-----
From: Myers, Gary - 43 [mailto:gary.myers@rainhail.com] 
Sent: Friday, June 27, 2008 9:20 PM
To: dev@apr.apache.org
Subject: RE: apr 1.3.2 compile fails with mingw/gcc

I've gotten this as well using MSYS in concert with the Alpha release of
MinGW-GCC 4.3.0.  I used GCC 4.3.0 because the current stable release of
GCC 3.4.5 would crash when trying to determine the size of void*.  Any
ideas?

Thanks
Gary Myers 

-----Original Message-----
From: Bob Rossi [mailto:bob_rossi@cox.net] 
Sent: Thursday, June 26, 2008 8:38 PM
To: dev@apr.apache.org
Subject: apr 1.3.2 compile fails with mingw/gcc

Hi,

I tried compiling apr 1.3.2 on mingw just now.

I got this compiler error,

/bin/sh apr/apr-1.3.2/apr-1.3.2/libtool --silent --mode=compile gcc-sjlj

-g -gstabs -Wall -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE   -I./include 
-Iapr/apr-1.3.2/apr-1.3.2/include/arch/win32 -I./include/arch/unix 
-Iapr/apr-1.3.2/apr-1.3.2/include/arch/unix 
-Iapr/apr-1.3.2/apr-1.3.2/include  -o dso/win32/dso.lo -c
dso/win32/dso.c && touch dso/win32/dso.lo
In file included from
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_file_io.h:29,
                 from dso/win32/dso.c:20:
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:419: error:
expected declaration specifiers or '...' before 'LPPROCESSENTRY32W'
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:419: error:
expected declaration specifiers or '...' before 'LPPROCESSENTRY32W'
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h: In function
'apr_winapi_Process32FirstW':
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:419: error:
'lppe' undeclared (first use in this function)
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:419: error:
(Each undeclared identifier is reported only once
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:419: error:
for each function it appears in.)
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:419: error:
too many arguments to function 'apr_winapi_pfn_Process32FirstW'
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h: At top
level:
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:428: error:
expected declaration specifiers or '...' before 'LPPROCESSENTRY32W'
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:428: error:
expected declaration specifiers or '...' before 'LPPROCESSENTRY32W'
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h: In function
'apr_winapi_Process32NextW':
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:428: error:
'lppe' undeclared (first use in this function)
apr/apr-1.3.2/apr-1.3.2/include/arch/win32/apr_arch_misc.h:428: error:
too many arguments to function 'apr_winapi_pfn_Process32NextW'
make[1]: *** [dso/win32/dso.lo] Error 1
make[1]: Leaving directory `apr/apr-1.3.2/apr-1.3.2'
make: *** [all-recursive] Error 1
configure: error: "make failed with a non-zero exit code 2."
See `config.log' for more details.

Is this a known issue? I can give more details if not.

Thanks,
Bob Rossi





Mime
View raw message