logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache compilation Error with Visual studio 2015 (VC14)

 
Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads



View previous topic :: View next topic  
Author Message
pachaiyappan



Joined: 14 Jun 2013
Posts: 25
Location: India,chennai

PostPosted: Sun 25 Sep '16 19:28    Post subject: Apache compilation Error with Visual studio 2015 (VC14) Reply with quote

Hi Team,

compiled Apache 2.4.23 with Visual studio 2015 :
• Done project conversion with VC2008, loaded the converted project in visual studio 2015 (VC14).- No issues.
• done build solution with release mode in VC14 , facing lots of errors.

Same project setup compiled in Visual studio 2010:
• Done project conversion with VC2008, loaded the converted project in visual studio 2010.- No issues.
• done build solution with release mode and compilation went fine and all the files and folder created in Apache 24.

The following are the errors observed in the build log.

* C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5): warning MSB8028: The intermediate directory (.\Release\) contains files shared from another project (ApacheMonitor.vcxproj). This can lead to incorrect clean and rebuild behavior.
- Apache monitor exe was not created .

* 151> copy support\win32\Release\ApacheMonitor.exe "\Apache24\bin" <.y
151> The system cannot find the file specified.
151>NMAKE : fatal error U1077: 'copy' : return code '0x1'
151> Stop.
151>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
151> Stop.
151>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3073: The command "NMAKE /f makefile.win INSTDIR="\Apache24" SHORT=R LONG=Release _install" exited with code 2.
========== Build: 130 succeeded, 21 failed, 0 up-to-date, 0 skipped ==========

*C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5): warning MSB8028: The intermediate directory (.\Release\) contains files shared from another project (ab.vcxproj, fcgistarter.vcxproj, htcacheclean.vcxproj, htdbm.vcxproj, htdigest.vcxproj, htpasswd.vcxproj, httxt2dbm.vcxproj, logresolve.vcxproj, rotatelogs.vcxproj). This can lead to incorrect clean and rebuild behavior.

Friends please advice to resolve the issue as soon as possible.

Thanks,
Anitha.S
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2574
Location: Hilversum, NL, EU

PostPosted: Mon 26 Sep '16 10:55    Post subject: Reply with quote

Assuming you do a GUI build.

Tools/Options/Project Solutions/Build and Run : Be sure that "maximum number of parallel projects builds" is set to 1
Back to top
pachaiyappan



Joined: 14 Jun 2013
Posts: 25
Location: India,chennai

PostPosted: Mon 26 Sep '16 20:07    Post subject: Apache compilation Error with Visual studio 2015 (VC14) Reply with quote

Hi Steffen thanks for looking into the issue. Still facing the same issues. after enabled build and run option 1 Sad.

attaching the build log here. Please advice.here http.exe was created but apache monitor.exe was not created. and the error is

Admin note:

Build log moved to http://apaste.info/qfR
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 544

PostPosted: Mon 26 Sep '16 20:49    Post subject: Reply with quote

Apache monitor and VC14, there are some posts here to solve this.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2121
Location: Sun Diego, USA

PostPosted: Tue 27 Sep '16 3:55    Post subject: Reply with quote

You could literally search all day for this:

ApacheMonitor.c(296): warning C4996: 'GetVersionExA': [b]was declared deprecated
Ignore, it's just a warning and what it's looking for is no longer valid, like ending when Windows ME went EOL.

This on the other hand
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

The best way I found to fix this is to just // comment out one line in apachemonitor.rc
Code:
// CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST  "ApacheMonitor.manifest"

adobe-stdenc.obj : error LNK2011: precompiled object not linked in; image may not run
in srclib/apr-iconv/build/modules.mk.win
Line 217 Remove: /Yciconv.h
Line 220 Remove: /Yuiconv.h

c:\httpd_2423\modules\http2\h2_private.h(21): fatal error C1083: Cannot open include file: 'nghttp2/nghttp2.h': No such file or directory
h2_bucket_beam.c

Where's nghttp2.h? It should be in
srclib/nghttp2/lib/include/nghttp2/nghttp2.h
if you built it right.

Edit: I take that back. I see there's a CMake file here now to create VC solutions. CMake always makes a mess at where they output things but we may get lucky. I'll look into this. nghttp2 is optional, you just will not get mod_http2 without it.

copy support\win32\Release\ApacheMonitor.exe "\Apache24\bin" <.y
The system cannot find the file specified.

Obviously, it failed to build so it cannot be installed.
Back to top
pachaiyappan



Joined: 14 Jun 2013
Posts: 25
Location: India,chennai

PostPosted: Tue 27 Sep '16 8:10    Post subject: Reply with quote

Hi Smith,
Thanks for the reply. its reduced 2 errors still facing 19 errors. No imporment in apache monitor.exe. Do I need to compile nghttp2 ? and zlib. I just downloaded and copied under srclib Sad. how to clear the cmake error?. Please advice.


Admin note:

Build log moved to http://apaste.info/bXm , see forum rules.


Thanks,
Anitha.S
Back to top
pachaiyappan



Joined: 14 Jun 2013
Posts: 25
Location: India,chennai

PostPosted: Tue 27 Sep '16 10:35    Post subject: Reply with quote

attached the full log here.

http://apaste.info/Hw7


Thanks,
Anitha.S
Back to top
pachaiyappan



Joined: 14 Jun 2013
Posts: 25
Location: India,chennai

PostPosted: Tue 27 Sep '16 19:28    Post subject: Reply with quote

smith,
after apply the changes suggested by you the apachemonitor.exe created in the following location but not moved under Apache24 folder.

ApacheMonitor.c(296): warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
ApacheMonitor.vcxproj -> C:\httpd_2423\support\win32\.\Release\ApacheMonitor.exe
ApacheMonitor.vcxproj -> .\Release/ApacheMonitor.pdb (Full PDB)

While copying the files from release directory to Apache24 if any one file is missing then the copy getting exit.
And remaining files are not getting copied:(. Could you please advise.

Thanks,
Anitha.S
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2121
Location: Sun Diego, USA

PostPosted: Fri 30 Sep '16 1:45    Post subject: Reply with quote

Go back and read what I wrote about that "warning", it is not an error
https://www.apachelounge.com/viewtopic.php?p=34264#34258

Better yet, start fresh and only build apache 2.4 with just the apr* folder in srclib. Once you get through that you can start searching for and reading how to build the other things Smile
Back to top
Anitha



Joined: 25 Sep 2016
Posts: 11
Location: india

PostPosted: Fri 30 Sep '16 19:48    Post subject: Reply with quote

ok Smith thanks. Let me try with fresh setup and follow the steps provided by you.

I will get back to you the status.

Thanks,
Anitha.S
Back to top
Anitha



Joined: 25 Sep 2016
Posts: 11
Location: india

PostPosted: Tue 04 Oct '16 12:41    Post subject: Reply with quote

Hi Smith / Steffen,

Thanks a lot for the wonderful support. I have successfully completed the Apache 2.4.23 compilation with VC 14.

* Tried with fresh setup and applied all the changes suggested by Smith and Steffen.
* Executed the Apache.sln with apr, apr-util,apr iconv binaries.
* Added the pcre and openssl and then executed build solution.
* Added vcvar32.bat path
* finally compiled the Apache and output folder has all the compiled binaries.

Thanks a lot team.With the help of Apache Forum support team have compiled the Apache successfully.

Thanks,
Anitha.S
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache Building & Member Downloads
Page 1 of 1