RESOLVED FIXED 56098
[Qt] MSVC Build Error - need to link advapi32.lib for jsc.exe
https://bugs.webkit.org/show_bug.cgi?id=56098
Summary [Qt] MSVC Build Error - need to link advapi32.lib for jsc.exe
Jarred Nicholls
Reported 2011-03-10 07:12:58 PST
OSRandomnSource.cpp utilizes the Crypto API found in advapi32. Linker error when linking jsc.exe (against jscore.lib), needs to include advapi32.lib in jsc.pro.
Attachments
Proposed patch (980 bytes, patch)
2011-03-10 07:18 PST, Jarred Nicholls
ariya.hidayat: review+
commit-queue: commit-queue-
Jarred Nicholls
Comment 1 2011-03-10 07:18:00 PST
Created attachment 85321 [details] Proposed patch
Alexis Menard (darktears)
Comment 2 2011-03-10 11:31:48 PST
I wonder why it does not happen on my windows XP.
Jarred Nicholls
Comment 3 2011-03-10 11:34:39 PST
(In reply to comment #2) > I wonder why it does not happen on my windows XP. You are building the Qt port? "perl build-webkit --qt --release" VC++ 9 reports unresolved symbols when linking jsc.exe, requiring an explicit addition of advapi32.lib on the link command line. `#pragma comment(lib, "advapi32")` works as well.
Alexis Menard (darktears)
Comment 4 2011-03-10 11:43:05 PST
(In reply to comment #3) > (In reply to comment #2) > > I wonder why it does not happen on my windows XP. > > You are building the Qt port? :) Yep. > > "perl build-webkit --qt --release" > > VC++ 9 reports unresolved symbols when linking jsc.exe, requiring an explicit addition of advapi32.lib on the link command line. `#pragma comment(lib, "advapi32")` works as well. VC++ 9 is the one included with Visual Studio 2010 express right? Because I'm building with the one in Visual Studio 2008. Perhaps that explain.
Jarred Nicholls
Comment 5 2011-03-10 11:52:59 PST
(In reply to comment #4) > > VC++ 9 reports unresolved symbols when linking jsc.exe, requiring an explicit addition of advapi32.lib on the link command line. `#pragma comment(lib, "advapi32")` works as well. > > VC++ 9 is the one included with Visual Studio 2010 express right? Because I'm building with the one in Visual Studio 2008. Perhaps that explain. Interestingly enough, no :) VC9 is 2008, VC10 is 2010. So we're using the same version of Express.
Ariya Hidayat
Comment 6 2011-03-14 13:33:41 PDT
Comment on attachment 85321 [details] Proposed patch LGTM. re=me
WebKit Commit Bot
Comment 7 2011-03-14 17:54:52 PDT
Comment on attachment 85321 [details] Proposed patch Rejecting attachment 85321 [details] from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-7', 'land-a..." exit_code: 1 Last 500 characters of output: rm/gtk/Skipped M LayoutTests/platform/win/Skipped M LayoutTests/platform/mac/Skipped A LayoutTests/fast/forms/interactive-validation-select-crash-expected.txt A LayoutTests/fast/forms/interactive-validation-select-crash.html M LayoutTests/ChangeLog M Source/WebCore/ChangeLog M Source/WebCore/rendering/RenderBlock.cpp r81088 = 32441d26af2feea641046d75af74f9441dbcbe92 (refs/remotes/trunk) First, rewinding head to replay your work on top of it... Fast-forwarded master to refs/remotes/trunk. Full output: http://queues.webkit.org/results/8175430
Jarred Nicholls
Comment 8 2011-03-14 18:25:59 PDT
I was cavalier with the patch and didn't leave an Unreviewed line. Can this get committed manually? Otherwise I'll reupload tomorrow.
Benjamin Poulain
Comment 9 2011-03-25 08:29:10 PDT
Note You need to log in before you can comment on or make changes to this bug.