Author |
|
Geetanjali
Joined: 05 Aug 2015 Posts: 3 Location: India
|
Posted: Thu 06 Aug '15 7:03 Post subject: Apache Http2.4.16 compilation fails using VS2012 |
|
|
Hi,
I am trying to build Apache Http Server 2.4.16 using all it's dependency PCRE, APR, APR-UTIL, APRICONV. However I am facing issues with build using VS2012 . I also have a custom build.bat which runs a set of commands for compilation and also uses openSSL1.0.1p for the same.
PCRE is built using cmake and all required files are present in srclib
It fails with 3 linker errors as follows
Error1
Creating library ..\Release\iconv\_tbl_simple.lib and object ..\Release\iconv\_tbl_simple.exp
_tbl_simple.obj : error LNK2011: precompiled object not linked in; image may not run
..\Release\iconv\_tbl_simple.so : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "NMAKE /nologo /f Makefile.win BUILD_MODE="Win32 Release" BIND_MODE=shared" exited with code 2.
Build FAILED.
Error 2
Build started 8/4/2015 5:10:38 PM.
InitializeBuildStatus:
Creating ".\Release\ApacheMonitor.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
ApacheMonitor.c
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Build FAILED.
Error 3
ccsiconv.c
adobe-stdenc.c
Creating library ..\Release\iconv\adobe-stdenc.lib and object ..\Release\iconv\adobe-stdenc.exp
adobe-stdenc.obj : error LNK2011: precompiled object not linked in; image may not run
..\Release\iconv\adobe-stdenc.so : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "NMAKE /nologo /f Makefile.win BUILD_MODE="Win32 Release" BIND_MODE=shared" exited with code 2.
Build FAILED.
Please let me know if I am missing anything?
Regards,
Geetanjali |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 06 Aug '15 21:45 Post subject: |
|
|
in apr-util/build/modules.mk.win
line 217 remove /Yciconv.h
line 220 remove /Yuiconv.h
Thanks to Steffen, he figured this out back in VC11 when it started having problems with the precompiled header. |
|
Back to top |
|
Geetanjali
Joined: 05 Aug 2015 Posts: 3 Location: India
|
Posted: Fri 07 Aug '15 6:50 Post subject: |
|
|
Thank you Smith !
This resolved my problem for release mode.
Now I am trying to build the same in Debug mode and I am facing issues with PCRE files
Will you be able to provide steps to compile PCRE on Windows
I am referring to this link
http://www.pcre.org/original/doc/html/NON-AUTOTOOLS-BUILD.txt
However I am unable to compile PCRE on windows . Please assist me with the same. |
|
Back to top |
|
Geetanjali
Joined: 05 Aug 2015 Posts: 3 Location: India
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 07 Aug '15 10:54 Post subject: |
|
|
glsmith wrote: | in apr-util/build/modules.mk.win
line 217 remove /Yciconv.h
line 220 remove /Yuiconv.h
Thanks to Steffen, he figured this out back in VC11 when it started having problems with the precompiled header. |
I wonder why that hasn't been fixed in apr-iconv
I think the file is https://svn.apache.org/repos/asf/apr/apr-iconv/trunk/build/modules.mk.win |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 07 Aug '15 20:04 Post subject: |
|
|
I've thought about it but the chances of an apr-iconv 1.2.2 ever being released with this one change is, well never. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 07 Aug '15 21:14 Post subject: |
|
|
Geetanjali,
How did you build PCRE to get your release build of Apache? |
|
Back to top |
|