[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problem building trunk on Windows

From: Mark Phippard <mphippard_at_collab.net>
Date: Mon, 22 Dec 2008 11:49:01 -0500

On Mon, Dec 22, 2008 at 11:47 AM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> Mark Phippard wrote:
>> On Mon, Dec 22, 2008 at 11:36 AM, Stefan Kueng <tortoisesvn_at_gmail.com> wrote:
>>> Mark Phippard wrote:
>>>> I've not built trunk on Windows in a long time, since before SQLite
>>>> dependency was added. I decided to get my build environment updated
>>>> so I will be ready to sign 1.6 release candidates. I am using MSVC 6
>>>> on XP.
>>>>
>>>> When I attempt to build, I get these errors:
>>>>
>>>> Linking...
>>>> .\libsvn_subr.def : warning LNK4087: CONSTANT keyword is obsolete; use DATA
>>> that's only a warning. You can ignore it (better would be to solve the
>>> warning).
>>>
>>>> Creating library ..\..\..\Release\subversion\libsvn_subr/libsvn_subr-1.lib an
>>>> d object ..\..\..\Release\subversion\libsvn_subr/libsvn_subr-1.exp
>>>> svn_subr-1.lib(win32_crypto.obj) : error LNK2001: unresolved external symbol __i
>>>> mp__CryptUnprotectData_at_28
>>>> svn_subr-1.lib(win32_crypto.obj) : error LNK2001: unresolved external symbol __i
>>>> mp__CryptProtectData_at_28
>>>> svn_subr-1.lib(win32_crypto.obj) : error LNK2001: unresolved external symbol __i
>>>> mp__CertFreeCertificateChain_at_4
>>>> svn_subr-1.lib(win32_crypto.obj) : error LNK2001: unresolved external symbol __i
>>>> mp__CertGetCertificateChain_at_32
>>>> ..\..\..\Release\subversion\libsvn_subr\libsvn_subr-1.dll : fatal error LNK1120:
>>>> 4 unresolved externals
>>>> Error executing link.exe.
>>>>
>>>> Any ideas? It looks like it is expecting some windows symbols I do not have?
>>> You need to link Crypt32.lib.
>>>
>>> If I remember correctly, there was a change which now links statically
>>> against Crypt32.lib instead of dynamically, because it was decided to
>>> not support OS versions prior to Win2k anymore - and Crypt32.lib is only
>>> available for >= Win2k, so it can now be linked statically.
>>
>> Don't these sort of details typically happen automatically by the
>> build system though? Maybe I need to fiddle with my environment
>> variables, but I am using the same build script I use for 1.5 which
>> sets these correctly.
>
> I think the change which links Crypt32.lib now statically was not merged
> to 1.5.x - that's only in trunk.
>
> I think the revision that changed this was r33170, but the build.conf
> was also changed. Maybe there's something missing in the Windows build
> scripts?

I wonder if gen-make.py was changed to only set this for the VS
2005/2008 build files and not MSVC 6?

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=989911
Received on 2008-12-22 17:49:30 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.