From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Introducing emacs-webkit and more thoughts on Emacs rendering (was Rethinking the design of xwidgets) Date: Sun, 22 Nov 2020 20:18:12 +0300 Message-ID: References: <864kmzupp0.fsf@akirakyle.com> <86pn46awrr.fsf@akirakyle.com> <20201122121849.GC1798@tuxteam.de> <20201122162418.GE16377@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39056"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: emacs-devel@gnu.org To: tomas@tuxteam.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 22 18:29:21 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kgtAu-000A1E-Bz for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 18:29:20 +0100 Original-Received: from localhost ([::1]:53174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgtAt-0000ql-DJ for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 12:29:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgt9j-00086y-9d for emacs-devel@gnu.org; Sun, 22 Nov 2020 12:28:07 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:48681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgt9f-0003Yg-Qa for emacs-devel@gnu.org; Sun, 22 Nov 2020 12:28:06 -0500 Original-Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0013.000000005FBA9F9E.00003AAF; Sun, 22 Nov 2020 17:27:58 +0000 Content-Disposition: inline In-Reply-To: <20201122162418.GE16377@tuxteam.de> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259630 Archived-At: * tomas@tuxteam.de [2020-11-22 19:24]: > > > Uh, oh. You seem to be missing fundamental packages for compiling > > > things. "malloc", for example is declared in /usr/include/stdlib.h > > > > > > Does this file exist on your machine? If not, you'll have to look > > > for it. If yes, you'll have to adapt your compile options for your > > > compiler to find it. > > > > Yes, it does. > > except when it doesn't :) You know that all better, thank you. I do remember being able to compile webkit in Emacs by compiling Emacs itself, but it did not work as expected and I removed it. $ locate stdlib.h /usr/include/stdlib.h but webkit-module.c inside of emacs-webkit git directory does not have stdlib.h, there is nowhere in other files included. And I included also string.h that was missing. $ head webkit-module.c #define _POSIX_SOURCE 1 #include #include #include #include #include #include I think it should be included there and I have included those missind but then I got these other errors. Maybe my webkit is outdated for this one. I cannot install new webkit on this system. webkit-module.c: In function ‘webkit_get_uri’: webkit-module.c:147:26: warning: implicit declaration of function ‘webkit_uri_for_display’ [-Wimplicit-function-declaration] const gchar *uri = webkit_uri_for_display (webkit_web_view_get_uri ^~~~~~~~~~~~~~~~~~~~~~ webkit-module.c:147:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion] webkit-module.c: In function ‘webkit_js_finished’: webkit-module.c:362:3: error: unknown type name ‘JSCValue’ JSCValue *value = webkit_javascript_result_get_js_value (js_result); ^~~~~~~~ webkit-module.c:362:21: warning: implicit declaration of function ‘webkit_javascript_result_get_js_value’ [-Wimplicit-function-declaration] JSCValue *value = webkit_javascript_result_get_js_value (js_result); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ webkit-module.c:362:21: warning: initialization makes pointer from integer without a cast [-Wint-conversion] webkit-module.c:363:17: warning: implicit declaration of function ‘jsc_value_to_json’ [-Wimplicit-function-declaration] gchar *json = jsc_value_to_json (value, 1); ^~~~~~~~~~~~~~~~~ webkit-module.c:363:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion] webkit-module.c:364:3: error: unknown type name ‘JSCException’ JSCException *exception = ^~~~~~~~~~~~ webkit-module.c:365:5: warning: implicit declaration of function ‘jsc_context_get_exception’ [-Wimplicit-function-declaration] jsc_context_get_exception (jsc_value_get_context (value)); ^~~~~~~~~~~~~~~~~~~~~~~~~ webkit-module.c:365:32: warning: implicit declaration of function ‘jsc_value_get_context’ [-Wimplicit-function-declaration] jsc_context_get_exception (jsc_value_get_context (value)); ^~~~~~~~~~~~~~~~~~~~~ webkit-module.c:365:5: warning: initialization makes pointer from integer without a cast [-Wint-conversion] jsc_context_get_exception (jsc_value_get_context (value)); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:62:0, from /usr/include/gtk-3.0/gdk/gdkconfig.h:13, from /usr/include/gtk-3.0/gdk/gdk.h:30, from /usr/include/gtk-3.0/gtk/gtk.h:30, from webkit-module.c:3: webkit-module.c:368:16: warning: implicit declaration of function ‘jsc_exception_get_message’ [-Wimplicit-function-declaration] jsc_exception_get_message (exception)); ^ /usr/include/glib-2.0/glib/gmessages.h:336:32: note: in definition of macro ‘g_warning’ __VA_ARGS__) ^~~~~~~~~~~ webkit-module.c:367:16: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] g_warning ("Error running javascript: %s", ^ /usr/include/glib-2.0/glib/gmessages.h:336:32: note: in definition of macro ‘g_warning’ __VA_ARGS__) ^~~~~~~~~~~ webkit-module.c: In function ‘webkit_script_message_cb’: webkit-module.c:503:3: error: unknown type name ‘JSCValue’ JSCValue *value = webkit_javascript_result_get_js_value (js_result); ^~~~~~~~ webkit-module.c:503:21: warning: initialization makes pointer from integer without a cast [-Wint-conversion] JSCValue *value = webkit_javascript_result_get_js_value (js_result); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ webkit-module.c:504:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion] gchar *json = jsc_value_to_json (value, 1); ^~~~~~~~~~~~~~~~~ webkit-module.c:505:3: error: unknown type name ‘JSCException’ JSCException *exception = ^~~~~~~~~~~~ webkit-module.c:506:5: warning: initialization makes pointer from integer without a cast [-Wint-conversion] jsc_context_get_exception (jsc_value_get_context (value)); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib.h:62:0, from /usr/include/gtk-3.0/gdk/gdkconfig.h:13, from /usr/include/gtk-3.0/gdk/gdk.h:30, from /usr/include/gtk-3.0/gtk/gtk.h:30, from webkit-module.c:3: webkit-module.c:508:16: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=] g_warning ("Error in javascript message recieve: %s", ^ /usr/include/glib-2.0/glib/gmessages.h:336:32: note: in definition of macro ‘g_warning’ __VA_ARGS__) ^~~~~~~~~~~ webkit-module.c: In function ‘webview_notify_uri’: webkit-module.c:614:22: warning: initialization makes pointer from integer without a cast [-Wint-conversion] const gchar *uri = webkit_uri_for_display (webkit_web_view_get_uri (webview)); ^~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:10: webkit-module.so] Error 1