From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: G-Golf - handling of unresloved symbols in gobject-inspection Date: Fri, 22 Jul 2022 17:07:58 -0300 Message-ID: <20220722170758.6ef928a5@aicha> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/oa0rzqTJYqOf_jrLHDr.4lW"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Andy Tai Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Jul 22 22:13:42 2022 Return-path: Envelope-to: guile-user@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 1oEz1q-0009Ew-7s for guile-user@m.gmane-mx.org; Fri, 22 Jul 2022 22:13:42 +0200 Original-Received: from localhost ([::1]:45750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEz1p-0007aZ-3M for guile-user@m.gmane-mx.org; Fri, 22 Jul 2022 16:13:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEywX-0006yU-4y for guile-user@gnu.org; Fri, 22 Jul 2022 16:08:13 -0400 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:46976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEywV-0000TB-1U for guile-user@gnu.org; Fri, 22 Jul 2022 16:08:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id C1B4A1BE02AF; Fri, 22 Jul 2022 22:08:05 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BR8dAkDLh3MA; Fri, 22 Jul 2022 22:08:05 +0200 (CEST) Original-Received: from aicha (unknown [179.210.48.225]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id A6F701BE02A6; Fri, 22 Jul 2022 22:08:04 +0200 (CEST) In-Reply-To: X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=79.99.200.102; envelope-from=david@altosw.be; helo=maximusconfessor.all2all.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18448 Archived-At: --Sig_/oa0rzqTJYqOf_jrLHDr.4lW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello Andy, > G-Golf seems to assume the GObject Inspection (GI) present is the > latest (0.72) and will fail to load if the GI version is older. I understand what made you write this, as you found a bug that I will fix and let you know, thanks, but actually the minimal GObject Introspection version is 1.48.0 (you probably meant to write 1.72.0 here above, and probably also meant to write GObject Introspection, because there is a GObject Inspector, which you can activate to inspect your app, but this is a totally different 'beast'). > For example, on GNU Guix, the GI version is for now at 0.64. So > G-Golf, when invoked from a guile program using it, would fail with > ;;; In procedure dlsym: Error resolving > "g_callable_info_create_closure": > "/gnu/store/g6gxhcy7lcmnx14jrinmh6vhanx8rh79-profile/lib/libgirepository-= 1.0.so: > undefined symbol: g_callable_info_create_closure" You probably meant 1.64.0 but I get the message of course, thanks. You you are right wrt to g_callable_info_create_closure, introduced in GI 1.71.0, earlier version should use g_callable_info_prepare_closure, and actually, G-Golf checks for the GI version in use and dispatch its call accordingly, but so far at runtime 'only': I just added the 'low level' binding, which also need a check of course, will fix this, thanks. I will let you know, Thanks for the report, David --Sig_/oa0rzqTJYqOf_jrLHDr.4lW Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmLbA54ACgkQ83T9k6MF etcfPAgA17R4bD3kPVMw+wgw8InRj3PddzhNi494jrWwvhGZHkGU/L6oOPVSFMbt IICQUjV+uJ6xMJCv0+1f7lUGiSTfcuCYI9tWouwARIkXJurupNwEgx9aoeNEMrXb 5nyy9oEb7nfhSik2P8h3OiPcOr3fLXrFkBel5Fs7uESA7fRNcwKk/QMR0lNT4blq m2fGWppdfctlp/xNs3QEYzCvfMohy6RNGP9rXKBWBNr0i1LtSqT1K7gLEp5qW0JG hF1hs3I6uaghVvqE3TPzA356k/r3rE9ldSA/WHS+Z6WRyRqDkuCojKIeUZABw6lO j76CWKyvisVhkDFqU+Y3cZOScEu5Gg== =UFYT -----END PGP SIGNATURE----- --Sig_/oa0rzqTJYqOf_jrLHDr.4lW--