Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: apr 1.7.0 build issues |
|
Author |
|
tavrez
Joined: 06 May 2017 Posts: 6
|
Posted: Fri 05 Apr '19 16:50 Post subject: apr 1.7.0 build issues |
|
|
Hello, I'm trying to compile newly released apr 1.7.0 on windows, but I'm getting error on the first file, I've seen apr dev mailing list and it seems like they have compiled apr 1.7.0 on windows successfully, can someone help me finding the problem?
Code: | cl.exe /nologo /MD /W3 /Zi /O2 /Oy- /I "./include" /I "./include/arch" /I "./include/arch/win32" /I "./include/arch/unix" /I "./include/private" /D "NDEBUG" /D "APR_DECLARE_STATIC" /D "WIN32" /D "WINNT" /D "_WINDOWS" /Fo".\x64\LibR\\" /Fd".\x64\LibR\apr-1" /FD /c .\atomic\win32\apr_atomic.c
apr_atomic.c
cl.exe /nologo /MD /W3 /Zi /O2 /Oy- /I "./include" /I "./include/arch" /I "./include/arch/win32" /I "./include/arch/unix" /I "./include/private" /D "NDEBUG" /D "APR_DECLARE_STATIC" /D "WIN32" /D "WINNT" /D "_WINDOWS" /Fo".\x64\LibR\\" /Fd".\x64\LibR\apr-1" /FD /c .\dso\win32\dso.c
dso.c
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2143: syntax error: missing ')' before '*'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2143: syntax error: missing '{' before '*'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2059: syntax error: ')'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2061: syntax error: identifier 'apr_winapi_pfn_if_indextoname'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2059: syntax error: ';'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2513: ' ': no variable declared before '='
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2065: 'apr_winapi_pfn_if_indextoname': undeclared identifier
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): warning C4047: '=': 'int' differs in levels of indirection from 'int *(__cdecl *)(NET_IFINDEX,PCHAR)'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2146: syntax error: missing ';' before identifier 'apr_load_dll_func'
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2100: illegal indirection
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): error C2064: term does not evaluate to a function taking 19 arguments
e:\apr-1.7.0\include\arch\win32\apr_arch_misc.h(503): warning C4033: 'apr_winapi_if_indextoname' must return a value
NMAKE : fatal error U1077: '"d:\Program Files (x86)\Microsoft Visual Studio 2017\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\cl.exe"' : return code '0x2'
Stop.
|
I get this error with both makefile and dsp files(release, debug, x86, x64) |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Fri 05 Apr '19 17:02 Post subject: |
|
|
We build it with the IDE (dsp) from httpd 2.4.39 on VC15 and VS16, no issues.
As since some years, we have set in apr/include/apr.hw :
#define _WIN32_WINNT 0x0600 (was 502).
Keep in mind that from apr.hw a apr.h is generated, so best to start fresh. |
|
Back to top |
|
tavrez
Joined: 06 May 2017 Posts: 6
|
Posted: Fri 05 Apr '19 17:08 Post subject: |
|
|
Thanks, that solved the problem.
It was 0x0501, and I had no problem with compiling apr 1.6.5 and versions before with that value. |
|
Back to top |
|
windev
Joined: 25 Aug 2020 Posts: 1
|
Posted: Wed 26 Aug '20 10:54 Post subject: |
|
|
I dont see in changelog of apr 1.7.0 they "break" comp. with XP.
So since 1.7.0 min supported ver of windows is Vista? |
|
Back to top |
|
|
|
|
|
|