logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


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

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: libhttpd VC++ 2005 - fatal error Page 1, 2  Next
Author
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Mon 17 Jul '06 23:45    Post subject: libhttpd VC++ 2005 - fatal error Reply with quote

When i compile httpd eventing ar correct, but when i wont compile on my Visual C++ 2005 libhttpd compiler are crazy. Two days *** witch this pic of shit M Express C++ and i don't have any idea how to fix.
My environment are:
Windows Server 2003 enterprise
Microsoft Platform SDK
Source Apache 2.2.2
Eany idea i will be Thankful for eany help

Quote:

1>------ Build started: Project: libapr, Configuration: Debug Win32 ------
2>------ Build started: Project: dftables, Configuration: Debug Win32 ------
1>Linking...
2>Compiling...
2>dftables.c
1> Creating library .\Debug/libapr-1.lib and object .\Debug/libapr-1.exp
2>.\dftables.c(71) : warning C4996: 'fopen' was declared deprecated
1>filestat.obj : error LNK2019: unresolved external symbol __imp__AllocateAndInitializeSid@44 referenced in function _resolve_prot
2> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(234) : see declaration of 'fopen'
1>filestat.obj : error LNK2019: unresolved external symbol __imp__FreeSid@4 referenced in function _free_world
2> Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>rand.obj : error LNK2019: unresolved external symbol __imp__CryptReleaseContext@8 referenced in function _apr_generate_random_bytes@8
1>rand.obj : error LNK2019: unresolved external symbol __imp__CryptGenRandom@12 referenced in function _apr_generate_random_bytes@8
1>rand.obj : error LNK2019: unresolved external symbol __imp__CryptAcquireContextA@20 referenced in function _apr_generate_random_bytes@8
1>proc.obj : error LNK2019: unresolved external symbol __imp__SetSecurityDescriptorDacl@16 referenced in function _apr_procattr_user_set@12
1>proc.obj : error LNK2019: unresolved external symbol __imp__InitializeSecurityDescriptor@8 referenced in function _apr_procattr_user_set@12
1>proc.obj : error LNK2019: unresolved external symbol __imp__DuplicateTokenEx@24 referenced in function _apr_procattr_user_set@12
1>proc.obj : error LNK2019: unresolved external symbol __imp__LogonUserW@24 referenced in function _apr_procattr_user_set@12
1>proc.obj : error LNK2019: unresolved external symbol __imp__RevertToSelf@0 referenced in function _apr_proc_create@24
1>proc.obj : error LNK2019: unresolved external symbol __imp__CreateProcessAsUserW@44 referenced in function _apr_proc_create@24
1>proc.obj : error LNK2019: unresolved external symbol __imp__ImpersonateLoggedOnUser@4 referenced in function _apr_proc_create@24
1>groupinfo.obj : error LNK2019: unresolved external symbol __imp__LookupAccountNameA@28 referenced in function _apr_gid_get@12
1>userinfo.obj : error LNK2001: unresolved external symbol __imp__LookupAccountNameA@28
1>groupinfo.obj : error LNK2019: unresolved external symbol __imp__LookupAccountSidA@28 referenced in function _apr_gid_name_get@12
1>userinfo.obj : error LNK2001: unresolved external symbol __imp__LookupAccountSidA@28
1>groupinfo.obj : error LNK2019: unresolved external symbol __imp__EqualSid@8 referenced in function _apr_gid_compare@8
1>userinfo.obj : error LNK2001: unresolved external symbol __imp__EqualSid@8
1>groupinfo.obj katalogowanie stron: error LNK2019: unresolved external symbol __imp__IsValidSid@4 referenced in function _apr_gid_compare@8
1>userinfo.obj : error LNK2001: unresolved external symbol __imp__IsValidSid@4
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__GetSidSubAuthority@8 referenced in function _get_sid_string
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__GetSidSubAuthorityCount@4 referenced in function _get_sid_string
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__GetSidIdentifierAuthority@4 referenced in function _get_sid_string
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _apr_uid_homepath_get@12
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _apr_uid_homepath_get@12
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function _apr_uid_homepath_get@12
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _apr_uid_homepath_get@12
2>Linking...
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__GetTokenInformation@20 referenced in function _apr_uid_current@12
1>userinfo.obj : error LNK2019: unresolved external symbol __imp__OpenProcessToken@12 referenced in function _apr_uid_current@12
1>Debug/libapr-1.dll : fatal error LNK1120: 25 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CIP\Apache-compile\httpd-2.2.2\srclib\apr\Debug\BuildLog.htm"
1>libapr - 30 error(s), 0 warning(s)
2>Embedding manifest...
3>------ Build started: Project: libapriconv, Configuration: Debug Win32 ------
4>------ Build started: Project: gen_test_char, Configuration: Debug Win32 ------
2>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CIP\Apache-compile\httpd-2.2.2\srclib\pcre\Debug\BuildLog.htm"
2>dftables - 0 error(s), 1 warning(s)
3>Linking...
4>Compiling...
3> Creating library .\Debug/libapriconv-1.lib and object .\Debug/libapriconv-1.exp
4>gen_test_char.c
3>Embedding manifest...
3>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CIP\Apache-compile\httpd-2.2.2\srclib\apr-iconv\Debug\BuildLog.htm"
3>libapriconv - 0 error(s), 0 warning(s)
5>------ Build started: Project: libaprutil, Configuration: Debug Win32 ------
4>Linking...
4>Embedding manifest...
4>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CIP\Apache-compile\httpd-2.2.2\server\Debug\BuildLog.htm"
4>gen_test_char - 0 error(s), 0 warning(s)
5>Linking...
5> Creating library .\Debug/libaprutil-1.lib and object .\Debug/libaprutil-1.exp
5>Embedding manifest...
5>Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\CIP\Apache-compile\httpd-2.2.2\srclib\apr-util\Debug\BuildLog.htm"
5>libaprutil - 0 error(s), 0 warning(s)
6>------ Build started: Project: libhttpd, Configuration: Debug Win32 ------
6>Generating test_char.h from gen_test_char.exe
6>Compiling...
6>util.c
6>Compiling buildmark
6>cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
6>cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
6>buildmark.c
6>Linking...
6> Creating library .\Debug/libhttpd.lib and object .\Debug/libhttpd.exp
6>util_win32.obj : error LNK2019: unresolved external symbol __imp__SetSecurityDescriptorDacl@16 referenced in function _GetNullACL
6>util_win32.obj : error LNK2019: unresolved external symbol __imp__InitializeSecurityDescriptor@8 referenced in function _GetNullACL
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _regkey_cleanup
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _ap_regkey_open@20
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function _ap_regkey_open@20
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function _ap_regkey_open@20
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegCreateKeyExW@36 referenced in function _ap_regkey_open@20
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegDeleteKeyA@8 referenced in function _ap_regkey_remove@12
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegQueryInfoKeyA@48 referenced in function _ap_regkey_remove@12
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegDeleteKeyW@8 referenced in function _ap_regkey_remove@12
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _ap_regkey_value_get@16
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function _ap_regkey_value_get@16
6>ap_regkey.obj : error LNK2019: unresolved external symbol __imp__RegSet


Last edited by Kanashii on Sat 03 Nov '12 11:05; edited 2 times in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 18 Jul '06 9:48    Post subject: Reply with quote

Change Configuration: Debug Win32 to release Win32
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Tue 18 Jul '06 11:26    Post subject: Reply with quote

No effect i try everything two days its a lot of time to change all config. Server are commercial that i cant compile witch cygwin etc
Back to top
Steffen
Moderator


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

PostPosted: Tue 18 Jul '06 12:02    Post subject: Reply with quote

The Win32 source from ASF should work with IDE, at least here.

DO *not* apply any patches to this source.


Steffen
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Tue 18 Jul '06 16:02    Post subject: Reply with quote

Does it work with the Express IDE or do you need the full package?

I'm having similar problems (see other threads) Release Building doesn't help.

I'm not even trying to add openssl or zlib, just trying to get the basic 2.2.2 to build in the IDE.

I've had it build from the command line, but not from the IDE.
Back to top
Steffen
Moderator


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

PostPosted: Tue 18 Jul '06 16:09    Post subject: Reply with quote

Please tell the steps you do when building with IDE.

Do you have the path to gawk, bison, flex and sed set in the IDE ?

When I recall, without zlib and oppenssl, you only need gawk.

I should work with Express.

Steffen
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Tue 18 Jul '06 16:39    Post subject: Reply with quote

Install VC++ 2005
Install Microsoft Platform SDK
Set env to SDK
Run project
Now i have error like this
Quote:
7>.\buckets\apr_buckets_refcount.c : fatal error C1902: Program database manager mismatch; please check your installation
7>apr_buckets_pool.c
7>.\buckets\apr_buckets_pool.c : fatal error C1902: Program database manager mismatch; please check your installation
7>apr_buckets_pipe.c


I will reinstall Vc++ its witch this error should be work


Last edited by Kanashii on Sat 03 Nov '12 11:05; edited 2 times in total
Back to top
Steffen
Moderator


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

PostPosted: Tue 18 Jul '06 17:13    Post subject: Reply with quote

Set env to SDK ? What did you do ?

Try first to build APR alone.

Steffen
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Tue 18 Jul '06 17:32    Post subject: Reply with quote

Installed Cygwin (path includes cygwin's bin directory so it is available on a Command Prompt window)

copied gawk.exe to awk.exe

Install VC++ 2005 Express

Installed Platform SDK

copied lib and include from SDK to VC so they could be located during compiles

set environment vars for lib and include as would happen using the vcvars.bat file. (I didn't want to have to run the bat file each time)

un-zip apache 2.2.2
unzip openssl and copy it to 2.2.2's srclib (dirname = openssl)
unzip zlib and copy it to 2.2.2's srclib (dirname = zlib)

build openssl as outlined on apache site:

Code:
 perl Configure VC-WIN32
perl util\mkfiles.pl >MINFO
perl util\mk1mf.pl dll no-asm no-mdc2 no-rc5 no-idea VC-WIN32 >makefile.rel
perl util\mk1mf.pl dll debug no-asm no-mdc2 no-rc5 no-idea VC-WIN32 >makefile.dbg
perl util\mkdef.pl 32 libeay no-asm no-mdc2 no-rc5 no-idea >ms\libeay32.def
perl util\mkdef.pl 32 ssleay no-asm no-mdc2 no-rc5 no-idea >ms\ssleay32.def
nmake -f makefile.rel


compile zlib as outlined at the same location
Code:
 nmake -f win32\Makefile.msc



compile httpd
Code:
nmake /f Makefile.win _apacher


create the install dir
Code:
nmake /f Makefile.win installr INSTDIR="\Apache22"


I get a can't find MSVCR80.DLL error box when I try to kick off httpd.exe or apachemonitor.exe


Last edited by mphare on Tue 18 Jul '06 17:52; edited 1 time in total
Back to top
Steffen
Moderator


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

PostPosted: Tue 18 Jul '06 17:45    Post subject: Reply with quote

Be sure to set your project paths used in IDE are correct (under tools menu).

Steffen
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Tue 18 Jul '06 18:16    Post subject: Reply with quote

Building from the command line right now.

I've also installed the VC++ 2005 Redistribution package.
Rebooted twice

But still get the MSVCR80.DLL not found error.
Back to top
maniac



Joined: 29 Mar 2006
Posts: 31
Location: Ukraine

PostPosted: Tue 18 Jul '06 18:31    Post subject: Reply with quote

looks like you have no manifest embedded in executable. you can do it by yourself but it should embed one at least in httpd.exe

when I build apache (ide build) manifest was only in httpd.exe. so I embed it in other manually.

Code:

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50608.0" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>


here is typical manifest. embed it like this.
Code:

mt.exe -manifest apache.manifest -outputresource:some.exe;1
mt.exe -manifest apache.manifest -outputresource:some.dll;2
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Tue 18 Jul '06 18:39    Post subject: Reply with quote

That got me closer.

I can now run the apache monitor.

If I try to start the http.exe as a service, I get

Quote:
The Apache2.2 service terminated with service-specific error 1 (0x1).


in the System Event Viewer.

Any information on that?

Thanks!
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Tue 18 Jul '06 19:22    Post subject: Reply with quote

I'm tired this is not for me
When i used command line nmake there are old error from CV++ no windows.h found but path i think are correct and other

My path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft Platform SDK\Include\;C:\Program Files\Microsoft Platform SDK\Bin\;C:\Program Files\Microsoft Platform SDK\Bin;C:\Program Files\Microsoft Visual Studio 8\VC\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Microsoft Platform SDK\Include

I only wont change Server: Apache to Server: Microsoft-IIS/6.0 because sometime i need to administration etc. and server have to run. For me its that very time expensive
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Tue 18 Jul '06 19:32    Post subject: Reply with quote

Don't give up, there's lots more fun ahead.

I think I fixed the 'windows.h' location problem when I copied the bin, lib and includes from the SDK to the VC directories.
Specifically, the bin, lib and include from the SDK to VC/PlatformSDK/bin, lib and include
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Tue 18 Jul '06 21:40    Post subject: Reply with quote

No effect enough to me
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Wed 19 Jul '06 12:52    Post subject: Reply with quote

When i compile from:
NMAKE /f "libhttpd.mak" CFG="libhttpd - Win32 Release


Quote:

canot open input file `kernel32.lib`
etc..



I Found somthing like this on M$

Step 4: Update the corewin_express.vsprops file.

One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and

Change the string that reads:

AdditionalDependencies="kernel32.lib" to

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"


http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

Now i try this and i hope its will work Wink

OK it has compile in IDE C++ Very Happy
I need to add /LIBPATH in Vc project

http://msdn2.microsoft.com/en-us/library/1xhzskbe.aspx

Thank to all for help Smile


Last edited by Kanashii on Sat 03 Nov '12 11:06; edited 2 times in total
Back to top
mphare



Joined: 12 May 2006
Posts: 43
Location: Texas

PostPosted: Wed 19 Jul '06 16:54    Post subject: Reply with quote

Wow, thanks Kaneshi
Updating the vsprops file was all I had to do to get this to compile in the IDE.

Amazing.

Now.. If I can just get it to execute..


... and it does. I have my site working as it was before (SVN, Tomcat 5.5 Connector, PHP5), except it's with 2.2.2 that I built from the VC++ 2005 Express IDE (yeah).
Back to top
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Wed 19 Jul '06 19:04    Post subject: Reply with quote

mphare and Kaneshi,

Great hearing you guys finally 'ironed out' the issues and have a good build.

Could one of you piece together in a New Post everything that is necessary (prerequisites, IDE configuration, and anything that you had to do) build Apache 2.2.x using VC++ 2005 Express?
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Wed 19 Jul '06 19:29    Post subject: Reply with quote

Hmm my English are very Bad that isn't for me maybe mphare will do that's. What i do, i write in this post just modify patch put awk to bin etc and run. I have now big trash on my server and someone haw to clean this and i need to this time
Rolling Eyes
Back to top


Reply to topic   Topic: libhttpd VC++ 2005 - fatal error View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads Page 1, 2  Next