RESOLVED INVALID 77255
Compilation warning building TestNetscapePlugin
https://bugs.webkit.org/show_bug.cgi?id=77255
Summary Compilation warning building TestNetscapePlugin
Martin Robinson
Reported 2012-01-27 15:45:33 PST
I see this when building the GTK+ port on my machine: CXX Tools/DumpRenderTree/TestNetscapePlugIn/TestNetscapePlugin_libtestnetscapeplugin_la-main.lo ../../Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp: In function ‘void pluginLogWithWindowObjectVariableArgs(NPObject*, NPP, const char*, ...)’:
Attachments
Patch (2.32 KB, patch)
2012-01-27 16:06 PST, Martin Robinson
no flags
Try to fix the Chromium build (3.14 KB, patch)
2012-01-27 16:34 PST, Martin Robinson
no flags
Try to fix the builds round 2 (6.65 KB, patch)
2012-01-28 10:57 PST, Martin Robinson
no flags
Try to fix the windows build (8.29 KB, patch)
2012-01-28 12:27 PST, Martin Robinson
no flags
Try once more to fix the Windows build (8.07 KB, patch)
2012-01-28 13:12 PST, Martin Robinson
no flags
Patch (8.03 KB, patch)
2012-02-02 11:26 PST, Martin Robinson
no flags
Also include the parent directory this time (8.08 KB, patch)
2012-02-02 12:41 PST, Martin Robinson
no flags
Remove dependency on FastMalloc (8.03 KB, patch)
2012-02-02 14:27 PST, Martin Robinson
no flags
Martin Robinson
Comment 1 2012-01-27 16:06:09 PST
Martin Robinson
Comment 2 2012-01-27 16:08:31 PST
I missed the warning! ../../Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp: In function ‘void pluginLog(NPP, const char*, ...)’: ../../Tools/DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:100:50: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wmissing-format-attribute]
WebKit Review Bot
Comment 3 2012-01-27 16:25:30 PST
Comment on attachment 124392 [details] Patch Attachment 124392 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11350906
Martin Robinson
Comment 4 2012-01-27 16:34:59 PST
Created attachment 124397 [details] Try to fix the Chromium build
WebKit Review Bot
Comment 5 2012-01-27 16:39:30 PST
Comment on attachment 124397 [details] Try to fix the Chromium build Attachment 124397 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11350917
Early Warning System Bot
Comment 6 2012-01-27 16:54:37 PST
Comment on attachment 124397 [details] Try to fix the Chromium build Attachment 124397 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11349910
Martin Robinson
Comment 7 2012-01-28 10:57:44 PST
Created attachment 124442 [details] Try to fix the builds round 2
Martin Robinson
Comment 8 2012-01-28 12:27:25 PST
Created attachment 124444 [details] Try to fix the windows build
Martin Robinson
Comment 9 2012-01-28 13:12:13 PST
Created attachment 124445 [details] Try once more to fix the Windows build
Adam Roben (:aroben)
Comment 10 2012-02-01 11:21:52 PST
Comment on attachment 124445 [details] Try once more to fix the Windows build View in context: https://bugs.webkit.org/attachment.cgi?id=124445&action=review > Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePluginCommon.vsprops:9 > + AdditionalIncludeDirectories=""$(ProjectDir)";"$(ProjectDir)..";"$(ConfigurationBuildDir)\Include";"$(ConfigurationBuildDir)\Include\JavaScriptCore";"$(ConfigurationBuildDir)\Include\WebCore\ForwardingHeaders";"$(ConfigurationBuildDir)\Include\DumpRenderTree\ForwardingHeaders";"$(WebKitLibrariesDir)\include"" I think instead of adding this include directory you need to add $(ConfigurationBuildDir)\Include\private\JavaScriptCore
Martin Robinson
Comment 11 2012-02-02 11:26:10 PST
Martin Robinson
Comment 12 2012-02-02 12:41:07 PST
Created attachment 125161 [details] Also include the parent directory this time
Martin Robinson
Comment 13 2012-02-02 14:27:15 PST
Created attachment 125190 [details] Remove dependency on FastMalloc
Martin Robinson
Comment 14 2012-02-02 16:28:49 PST
(In reply to comment #13) > Created an attachment (id=125190) [details] > Remove dependency on FastMalloc It seems I have managed to satisy n+1 build systems via clumsy thrashing around and help from friendly community members, so I will land this now. Thank you!
Eric Seidel (no email)
Comment 15 2012-03-01 14:04:12 PST
Comment on attachment 125190 [details] Remove dependency on FastMalloc View in context: https://bugs.webkit.org/attachment.cgi?id=125190&action=review > Tools/ChangeLog:15 > + * DumpRenderTree/TestNetscapePlugIn/config.h: Added. Copied from DumpRenderTree. Why do we need a config.h at all? > Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:288 > + '<(source_dir)/JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/. I'm about to fix that. :) > Tools/DumpRenderTree/TestNetscapePlugIn/config.h:2 > + * Copyright (C) 2008 Nuanti Ltd. ?? > Tools/DumpRenderTree/TestNetscapePlugIn/config.h:21 > +#define Config_H Given how many config.h's we have, seems makign this TNP_Config_h makes more sense.
Martin Robinson
Comment 16 2012-03-02 12:09:40 PST
(In reply to comment #15) > (From update of attachment 125190 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=125190&action=review > > > Tools/ChangeLog:15 > > + * DumpRenderTree/TestNetscapePlugIn/config.h: Added. Copied from DumpRenderTree. > > Why do we need a config.h at all? config.h handles the proper includes and defines to use WTF. There seems to be a lot of manual setup before inclusion of the WTF headers. > > Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:288 > > + '<(source_dir)/JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/. > > I'm about to fix that. :) Great. :) > > Tools/DumpRenderTree/TestNetscapePlugIn/config.h:2 > > + * Copyright (C) 2008 Nuanti Ltd. > > ?? Since I copied the config.h from DumpRenderTree, I had to preserve the copyright there. We cannot use the same config.h becaues the one in DumpRenderTree activates FastMalloc. Another approach to this whole mess would be to simply duplicate the WTF_ATTRIBUTE_PRINTF macros in TestNetscapePlugin instead of relying on the versions in WTF. That may make the patch simpler. > > Tools/DumpRenderTree/TestNetscapePlugIn/config.h:21 > > +#define Config_H > > Given how many config.h's we have, seems makign this TNP_Config_h makes more sense. Okay. I'll do this based on your opinion on my question above.
Ryosuke Niwa
Comment 17 2012-04-22 21:34:28 PDT
Isn't this patch obsolete now?
Martin Robinson
Comment 18 2012-04-22 21:47:27 PDT
I think I'll try a less intrusive approach that simply adds the macro conditionally when compiling WebKitGTK+. Introducing the WTF headers and config.h into TestNetscapePlugin seems a bit overkill on consideration.
Martin Robinson
Comment 19 2014-03-29 15:16:38 PDT
I don't see these errors any longer. I think they've been fixed.
Note You need to log in before you can comment on or make changes to this bug.