Author |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Fri 14 Feb '14 11:10 Post subject: Apache 2.4.7 with openssl 1.0.1f compilation issues |
|
|
Hi,
I downloaded apache httpd-2.4.7 tar and extracted then renamed as httpd_2_4_7. After that I copied all srclib files apr(1.5.0), apr-util(1.5.3), apr-iconv(1.2.1). Converted apache.dsw file into VC++ 2008 and then converted apache.sln file into VC++2010.Successfully loaded into VC++2010 without any issues .
After I compiled Openssl in VC++2010 successfully then copied openssl and compiled pcre (8.32) into httpd_2_4_7\ srclib directory. I am compiling apache httpd_2_4_7 using VC++2010 but I got error like
Admin note:
Huge build log removed, use paste bin, see forum rules. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 14 Feb '14 11:43 Post subject: |
|
|
can you please re-post the build log at pastebin com? |
|
Back to top |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Wed 19 Feb '14 7:19 Post subject: |
|
|
Hi,
Really so much thanks for your continuous reply.
I did Apache compilation in VC++ itself.
I got httpd.exe file and I could see Build succeeds in httpd.log but i am not sure whether apache compilation done successfully or not.
Here I shared the httpd.log
Build started 2/18/2014 12:33:42 PM.
Project "E:\Pachi\httpd_2_4_7\httpd.vcxproj" on node 2 (build target(s)).
InitializeBuildStatus:
Creating ".\Release\httpd.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
e:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I./include /I./srclib/apr/include /I"./srclib/apr-util/include" /Zi /nologo /W3 /WX- /O2 /Ob1 /Oy- /D NDEBUG /D WIN32 /D _CONSOLE /D _VC80_UPGRADE=0x0600 /GF /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Fo".\Release/" /Fd"Release\httpd" /Gd /TC /analyze- /errorReport:prompt server\main.c
main.c
ResourceCompile:
All outputs are up-to-date.
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /D NDEBUG /D APP_FILE /D BIN_NAME=httpd.exe /D "LONG_NAME=Apache HTTP Server" /D ICON_FILE=apache.ico /D _VC80_UPGRADE=0x0600 /l"0x0409" /Ibuild\win32 /I./include /I./srclib/apr/include /nologo /fo".\Release\httpd.res" build\win32\httpd.rc
Link:
e:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:".\Release/httpd.exe" /INCREMENTAL:NO /NOLOGO ws2_32.lib mswsock.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:".\Release\httpd.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:".\Release/httpd.pdb" /SUBSYSTEM:CONSOLE /STACK:"262144" /OPT:REF /TLBID:1 /DYNAMICBASE:NO /IMPLIB:".\Release\httpd.lib" /MACHINE:X86 .\Release\httpd.res
.\Release/main.obj
E:\Pachi\httpd_2_4_7\Release\libhttpd.lib
"E:\Pachi\httpd_2_4_7\srclib\apr-util\Release\libaprutil-1.lib"
"E:\Pachi\httpd_2_4_7\srclib\apr\Release\libapr-1.lib"
httpd.vcxproj -> E:\Pachi\httpd_2_4_7\.\Release\httpd.exe
Manifest:
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /outputresource:".\Release/httpd.exe;#1" /manifest .\Release\httpd.exe.intermediate.manifest
PostBuildEvent:
Description: Embed .manifest
if exist E:\Pachi\httpd_2_4_7\.\Release\httpd.exe.manifest mt.exe -manifest E:\Pachi\httpd_2_4_7\.\Release\httpd.exe.manifest -outputresource:E:\Pachi\httpd_2_4_7\.\Release\httpd.exe;1
:VCEnd
FinalizeBuildStatus:
Deleting file ".\Release\httpd.unsuccessfulbuild".
Touching ".\Release\httpd.lastbuildstate".
Done Building Project "E:\Pachi\httpd_2_4_7\httpd.vcxproj" (build target(s)).
Build succeeded.
Time Elapsed 00:00:01.65
Could you please confirm Apache compilation went successful or not ASAP ?
Thanks,
Pachai. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 19 Feb '14 16:57 Post subject: |
|
|
the build went fine!
use the installbin project to let VC Studio copy the files to the destination folder. e.g. C:\Apache24 |
|
Back to top |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Sat 22 Feb '14 12:08 Post subject: |
|
|
Hi,
Thanks for your Reply.
I am not getting clearly.
Could you please provided detailed steps.
I was using E drive and i could see E:\Apache24
directory before coping source i need to anything else.
Please help me this is very needful
Thanks,
Pachai. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 24 Feb '14 12:13 Post subject: |
|
|
Do you use the command line or the GUI to compile apache? |
|
Back to top |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Tue 25 Feb '14 15:03 Post subject: |
|
|
I used VC++2010 GUI for Apache compilation but i did openssl compilation in cmd prompt
Thanks,
Pachai. |
|
Back to top |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Tue 25 Feb '14 15:05 Post subject: |
|
|
Hi,
We are upgrading to latest Apache 2.4.7 with Openssl 1.0.1f for our application.
For that we did compile apache 2.4.7 and openssl 1.0.1f in VC++2010 in Windows 2008 server .
We are supporting our applications in Windows 2008 and Windows 2012 server.
apache -version command is running properly in both the OS’s but when we are trying to run "openssl" in windows 2012 server getting below errors
C:\Users\Administrator>openssl
3500:error:02001015:system library:fopen:Is a directory:.\crypto\bio\bss_file.c:
169:fopen('E:\pachi\openssl/ssl/openssl.cnf','rb')
3500:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c
:174:
3500:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\con
f\conf_def.c:199:
but the same cmd executing successfully in windows 2008 server. the successfully run cmd like as below
C:\Users\Administrator>openssl
WARNING: can't open config file: E:\pachi\openssl/ssl/openssl.cnf
OpenSSL> version
OpenSSL 1.0.1f 6 Jan 2014
OpenSSL>
It is really urgent for our application . Could you please help us to resolve this issues in Windows 2012 server as soon as possible.
Thanks,
Pachai. |
|
Back to top |
|
pachaiyappan
Joined: 14 Jun 2013 Posts: 25 Location: India,chennai
|
Posted: Wed 26 Feb '14 5:16 Post subject: |
|
|
Above compilation i used below commands in CLI.
perl Configure VC-WIN32 no-idea shared --prefix=c:/openssl
ms\do_ms
nmake -f ms\ntdll.mak
before executing above commands i set VC++2010 path as below
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
here what i did mistake i couldn't find why it is not only supporting Windows 2012 Server.
the same compiled binaries are working fine in Windows 2008 R2 Server .
Please needs helpful really really urgent.
Thanks,
Pachai. |
|
Back to top |
|