You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Bob Rossi <bo...@cox.net> on 2008/06/27 03:37:41 UTC

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

Re: apr 1.3.2 compile fails with mingw/gcc

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Bob Rossi wrote:
>>
>> 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'
>>
>> Is this a known issue? I can give more details if not.
> 
> Ping. Anything I can do to help?

Well, it seems LPPROCESSENTRY32W is undefined, and I can't tell you why.
Perhaps grep your includes to determine if there is a mingw specific include
we needed?  It's got to be somewhere, that's a pretty old type.

Are your certain your toolchain is up to date?


Re: apr 1.3.2 compile fails with mingw/gcc

Posted by Bojan Smojver <bo...@rexursive.com>.
On Sun, 2008-07-27 at 20:05 -0400, Bob Rossi wrote:

> Ping. Anything I can do to help?

I think Bill had that one. He's a busy guy though, so it may be a
while...

PS. I'm not familiar with that platform at all, so I can't help :-(

-- 
Bojan


Re: apr 1.3.2 compile fails with mingw/gcc

Posted by Bob Rossi <bo...@cox.net>.
On Thu, Jun 26, 2008 at 09:37:41PM -0400, Bob Rossi wrote:
> 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.

Ping. Anything I can do to help?

Bob Rossi

RE: apr 1.3.2 compile fails with mingw/gcc

Posted by "Myers, Gary - 43" <ga...@rainhail.com>.
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





RE: apr 1.3.2 compile fails with mingw/gcc

Posted by "Myers, Gary - 43" <ga...@rainhail.com>.
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