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 15:04:29 +0300 Message-ID: References: <864kmzupp0.fsf@akirakyle.com> <86pn46awrr.fsf@akirakyle.com> 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="30206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: emacs-devel@gnu.org To: Akira Kyle Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 22 13:06:18 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 1kgo8H-0007kN-F9 for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 13:06:17 +0100 Original-Received: from localhost ([::1]:53170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgo8G-0002DV-Hz for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 07:06:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgo6y-0001fB-5v for emacs-devel@gnu.org; Sun, 22 Nov 2020 07:04:56 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:49953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgo6p-0002xb-5g for emacs-devel@gnu.org; Sun, 22 Nov 2020 07:04:55 -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 00000000002C1AE3.000000005FBA53D7.000022B8; Sun, 22 Nov 2020 12:04:38 +0000 Content-Disposition: inline In-Reply-To: <86pn46awrr.fsf@akirakyle.com> 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:259606 Archived-At: I have failed shamelessly. Can it be to some outdated stuff on my system? git clone https://github.com/akirakyle/emacs-webkit.git Cloning into 'emacs-webkit'... remote: Enumerating objects: 160, done. remote: Counting objects: 100% (160/160), done. remote: Compressing objects: 100% (54/54), done. remote: Total 160 (delta 104), reused 160 (delta 104), pack-reused 0 Receiving objects: 100% (160/160), 2.35 MiB | 219.00 KiB/s, done. Resolving deltas: 100% (104/104), done. ~/Programming/git $ cd emacs-webkit/ ~/Programming/git/emacs-webkit $ ls LICENSE default.nix hints.css script.js webkit-ace.el webkit.el Makefile emacs-module.h hints.js style.css webkit-history.el README.org evil-collection-webkit.el screencast.gif tests.el webkit-module.c ~/Programming/git/emacs-webkit $ make cc -shared -std=c99 -Wall -Wextra -Wno-unused-parameter -O3 -fpic `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0 --libs webkit2gtk-4.0` -o webkit-module.so webkit-module.c webkit-module.c: In function ‘copy_string_contents’: webkit-module.c:47:13: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] *buffer = malloc ((size_t) buffer_size); ^~~~~~ webkit-module.c:47:13: warning: incompatible implicit declaration of built-in function ‘malloc’ webkit-module.c:47:13: note: include ‘’ or provide a declaration of ‘malloc’ webkit-module.c:57:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free (*buffer); ^~~~ webkit-module.c:57:7: warning: incompatible implicit declaration of built-in function ‘free’ webkit-module.c:57:7: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_get_title’: webkit-module.c:134:46: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] return env->make_string (env, title, strlen (title)); ^~~~~~ webkit-module.c:134:46: warning: incompatible implicit declaration of built-in function ‘strlen’ webkit-module.c:134:46: note: include ‘’ or provide a declaration of ‘strlen’ webkit-module.c: In function ‘webkit_get_uri’: webkit-module.c:145: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:145:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion] webkit-module.c:147:42: warning: incompatible implicit declaration of built-in function ‘strlen’ return env->make_string (env, uri, strlen (uri)); ^~~~~~ webkit-module.c:147:42: note: include ‘’ or provide a declaration of ‘strlen’ webkit-module.c: In function ‘webkit_load_uri’: webkit-module.c:161:3: warning: incompatible implicit declaration of built-in function ‘free’ free (uri); ^~~~ webkit-module.c:161:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_search’: webkit-module.c:221:3: warning: incompatible implicit declaration of built-in function ‘free’ free (text); ^~~~ webkit-module.c:221:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘send_to_lisp’: webkit-module.c:336:41: warning: incompatible implicit declaration of built-in function ‘strlen’ || rio_writen (c->fd, (void *)id, strlen (id)+1) < 0 ^~~~~~ webkit-module.c:336:41: note: include ‘’ or provide a declaration of ‘strlen’ webkit-module.c: In function ‘webkit_js_finished’: webkit-module.c:360:3: error: unknown type name ‘JSCValue’ JSCValue *value = webkit_javascript_result_get_js_value (js_result); ^~~~~~~~ webkit-module.c:360: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:360:21: warning: initialization makes pointer from integer without a cast [-Wint-conversion] webkit-module.c:361:17: warning: implicit declaration of function ‘jsc_value_to_json’ [-Wimplicit-function-declaration] gchar *json = jsc_value_to_json (value, 1); ^~~~~~~~~~~~~~~~~ webkit-module.c:361:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion] webkit-module.c:362:3: error: unknown type name ‘JSCException’ JSCException *exception = ^~~~~~~~~~~~ webkit-module.c:363: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:363: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:363: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:366: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:365: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:373:3: warning: incompatible implicit declaration of built-in function ‘free’ free (cb->id); ^~~~ webkit-module.c:373:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_execute_js’: webkit-module.c:390:26: warning: incompatible implicit declaration of built-in function ‘malloc’ Callback *cb = malloc (sizeof (Callback)); ^~~~~~ webkit-module.c:390:26: note: include ‘’ or provide a declaration of ‘malloc’ webkit-module.c:403:3: warning: incompatible implicit declaration of built-in function ‘free’ free (script); ^~~~ webkit-module.c:403:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_add_user_style’: webkit-module.c:430:3: warning: incompatible implicit declaration of built-in function ‘free’ free (style); ^~~~ webkit-module.c:430:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_add_user_script’: webkit-module.c:472:3: warning: incompatible implicit declaration of built-in function ‘free’ free (script); ^~~~ webkit-module.c:472:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_script_message_cb’: webkit-module.c:501:3: error: unknown type name ‘JSCValue’ JSCValue *value = webkit_javascript_result_get_js_value (js_result); ^~~~~~~~ webkit-module.c:501: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:502:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion] gchar *json = jsc_value_to_json (value, 1); ^~~~~~~~~~~~~~~~~ webkit-module.c:503:3: error: unknown type name ‘JSCException’ JSCException *exception = ^~~~~~~~~~~~ webkit-module.c:504: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:506: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 ‘webkit_register_script_message’: webkit-module.c:537:3: warning: incompatible implicit declaration of built-in function ‘free’ free (name); ^~~~ webkit-module.c:537:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_unregister_script_message’: webkit-module.c:559:3: warning: incompatible implicit declaration of built-in function ‘free’ free (name); ^~~~ webkit-module.c:559:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webview_notify_uri’: webkit-module.c:612: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)); ^~~~~~~~~~~~~~~~~~~~~~ webkit-module.c: In function ‘client_free’: webkit-module.c:902:3: warning: incompatible implicit declaration of built-in function ‘free’ free(c); ^~~~ webkit-module.c:902:3: note: include ‘’ or provide a declaration of ‘free’ webkit-module.c: In function ‘webkit_new’: webkit-module.c:920:13: warning: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration] if (!(c = calloc (1, sizeof (Client)))) ^~~~~~ webkit-module.c:920:13: warning: incompatible implicit declaration of built-in function ‘calloc’ webkit-module.c:920:13: note: include ‘’ or provide a declaration of ‘calloc’ webkit-module.c:963:46: warning: incompatible implicit declaration of built-in function ‘strlen’ env->make_string (env, err_msg, strlen (err_msg))); ^~~~~~ webkit-module.c:963:46: note: include ‘’ or provide a declaration of ‘strlen’ make: *** [Makefile:10: webkit-module.so] Error 1 ~/Programming/git/emacs-webkit $