From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jaft Newsgroups: gmane.lisp.guile.user Subject: Adjusting Load Path from C/C++? Date: Wed, 15 Apr 2020 04:08:08 +0000 (UTC) Message-ID: References: <546899605.742163.1586923688566.ref@mail.yahoo.com> Reply-To: Jaft Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77951"; mail-complaints-to="usenet@ciao.gmane.io" To: "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Apr 15 15:29:55 2020 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 1jOi70-000KCc-Q2 for guile-user@m.gmane-mx.org; Wed, 15 Apr 2020 15:29:54 +0200 Original-Received: from localhost ([::1]:50212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOi6z-0007j3-SH for guile-user@m.gmane-mx.org; Wed, 15 Apr 2020 09:29:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51575) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOZLX-0003JK-2R for guile-user@gnu.org; Wed, 15 Apr 2020 00:08:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOZLV-0005yr-7x for guile-user@gnu.org; Wed, 15 Apr 2020 00:08:18 -0400 Original-Received: from mail-dm6nam12olkn2108.outbound.protection.outlook.com ([40.92.22.108]:44513 helo=NAM12-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOZLU-0005yL-SR for guile-user@gnu.org; Wed, 15 Apr 2020 00:08:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BLL8a95MvBulND0F84iLwQpuzuvElIhsj45dQ+kFMleu4j6HBZOy6ifasU3gz+oNY3oJhz4aekAnkIQlvGXEHiASgtwn40Z8ytolpHxWd2lxStKvIpGB845MvZ1wAndwqY/7ACGhgOViqJyxjGrNPGfWvU1PM2qYj1Sa95z8w1ShVXBttw1TOmaGCdxkswb4QoCivp5kEq0Tt2wBNizhoNa+eHgl66hADWlEpd/x+Ak8XqTh6aXrUQeG5i9xOxwz0vz5c7XDmQ0gWCYRWLiJistl6DT3VsQUeAF940gUQtJkCZXjsK4UotGJZ/TIhoLk6ssY6TaQNTlm/7AFU5HeXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WZ0eYcxK5qfaLGiDLRxtPlnDlKECL2d4nWhr1LTNKqY=; b=P1/YHMIcI09uZ27bp7YRR65R/ikB7TyHVy5nk440S914gq+oargf0jiJVoiSYkJVieJBUKVBFHC5gYp3ZkxezEQnGo5ZNSF2IXzbiRrWJYeROO+gBR404JG6zH9tKZW2+eFA6gzvuVoaY03ef9B32YzsI/tYc6lmtqilOiws/o9HAqIuRgMs371NsCUawbC3CxKcNIepbEuRf3kzqSVXNm3i4OzAM51bHJYRqebJud81N4JDuFP7lrvy70FswzHSl09TqAvoU8ZMWLv59t1u40t6WhDTLk++Kp4N4QMJ2Vufdt3wMTAA0TLIQDYznTb97nA7Agll4/zP6XUqpQV/DQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WZ0eYcxK5qfaLGiDLRxtPlnDlKECL2d4nWhr1LTNKqY=; b=I2e9RteaavBG+kZCQNNGQXoKjOrqmWpYWZneAyhRMF8Th95sfBkZ7s2J8NU+Y4rAaZsLHwboIv5ba8dxnrua2H167yedKn8JEfvg8N/vAJA5HVXgg+r5IA3gn6W4ctyGNugLSU6T6kyGRk0FeBz6n+z9tmNZDgxfpY/AgevWV97JkboYmY0IQ06Sg267j18Rp3cHgeXw0DNlz+N6kMVgMqitAy3DFg1gs5v6erR/vvrS9/1TKgZfkkMTmZATDVUUvuLoFw+TZ+omKBTcMpmaj93EDf1n7oN5gPI+VCxFz8XWsq1pcrif+n06rN0vNIdyyjmh0eOjKyYJxZJaNXus8Q== Original-Received: from MW2NAM12FT013.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::4b) by MW2NAM12HT175.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::413) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.12; Wed, 15 Apr 2020 04:08:15 +0000 Original-Received: from DM6PR19MB2460.namprd19.prod.outlook.com (2a01:111:e400:fc65::44) by MW2NAM12FT013.mail.protection.outlook.com (2a01:111:e400:fc65::80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.12 via Frontend Transport; Wed, 15 Apr 2020 04:08:15 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:5E7876FD00FFAA87AA97F6D6C5BACAC8E70AE8F62CE4E1943A1AA5F48F90EBCF; UpperCasedChecksum:5DEC8930FA75DFC2E8E8BBEDFAE739FD8AB90A63E67B6B53718526754E29AD02; SizeAsReceived:11879; Count:52 Original-Received: from DM6PR19MB2460.namprd19.prod.outlook.com ([fe80::d922:8b6b:f568:f4f5]) by DM6PR19MB2460.namprd19.prod.outlook.com ([fe80::d922:8b6b:f568:f4f5%6]) with mapi id 15.20.2900.028; Wed, 15 Apr 2020 04:08:15 +0000 X-YMail-OSG: GSM41ygVM1kntLKW2ZpM3pIoFoD8Xw24OzIrVK0TGoEHFufkZxnKCAgl5kV5KOE Kbyg_ICkmtHR.I1vJ_oO8mRExmOUY6koVwW6MHML.yrJsMgo3z4MKhDD2SFUMFlo4HBJQM6MbSdF rCMmmcFGSh6jcfbawsaH3JOKdYpYqfKTz_sSm4p1PWOkPVOeGmIPZzXcgI85YMQDUXTLw2WnLZF8 Byz8CJ8v0cVx6PWYxYSKxKkNbhfh6v7NToIH66kMfS0_xdiPv9BXaY2O93tHAaPzgHzjif1EyiuI N_z4L0qb_RBzj9HQPHI33JEaOGz7YcVDPBRl6l04Fvhxg8uPHTnu6WbCBGRT73pqXVND1NeH.Ozs WVu4tMt1EiPY3nuBnVDvpdhPH7hIBWhOzpwFyl2g9iNKvR_6FTpNC_qcfwuBtCbRIQ6pkSivyirq svlVBS7C.5l55ak6mQQxQYMC_wSywVpRqtEIjJiF4aw.F1y3gDvF1bEnoOMykYXvZ8oP4k2rD6c_ h.SfWhw_YyPKMcrvL46gmvaXcTpZIwPc8NKHC0ChFTHD_nxyI2FA_gSeDh2083gkzwYXB31xOoBG LXzdmzAZuOeCwWOX3Mx1UbrSv06fk9AyJc_j.YeNPVcm_ji0vxNGpJbdHd9T0TWf49LKlruesoeJ Xbfg_Llsch8QN44._nhmeYBW9XMgC0vUj8GcZ8mDqslOqnVPB5FEHJVVOuYNd627xHqGL3N6RY1n ZNmEuX4TrX_Kj9Rk5.dlrpESWs.l6NCDg0SRA0E1UXrXGHjDyI6jQqgMTsccmNcGE7OgNX0uOGnL MZ68dlcFmYr6093mnX7FGmVH9nu7o_fpVA_cCHUj_g X-Mailer: WebService/1.1.15651 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0 X-ClientProxiedBy: CH2PR18CA0045.namprd18.prod.outlook.com (2603:10b6:610:55::25) To DM6PR19MB2460.namprd19.prod.outlook.com (2603:10b6:5:18a::23) X-Microsoft-Original-Message-ID: <546899605.742163.1586923688566@mail.yahoo.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com (66.163.190.33) by CH2PR18CA0045.namprd18.prod.outlook.com (2603:10b6:610:55::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.17 via Frontend Transport; Wed, 15 Apr 2020 04:08:14 +0000 X-YMail-OSG: GSM41ygVM1kntLKW2ZpM3pIoFoD8Xw24OzIrVK0TGoEHFufkZxnKCAgl5kV5KOE Kbyg_ICkmtHR.I1vJ_oO8mRExmOUY6koVwW6MHML.yrJsMgo3z4MKhDD2SFUMFlo4HBJQM6MbSdF rCMmmcFGSh6jcfbawsaH3JOKdYpYqfKTz_sSm4p1PWOkPVOeGmIPZzXcgI85YMQDUXTLw2WnLZF8 Byz8CJ8v0cVx6PWYxYSKxKkNbhfh6v7NToIH66kMfS0_xdiPv9BXaY2O93tHAaPzgHzjif1EyiuI N_z4L0qb_RBzj9HQPHI33JEaOGz7YcVDPBRl6l04Fvhxg8uPHTnu6WbCBGRT73pqXVND1NeH.Ozs WVu4tMt1EiPY3nuBnVDvpdhPH7hIBWhOzpwFyl2g9iNKvR_6FTpNC_qcfwuBtCbRIQ6pkSivyirq svlVBS7C.5l55ak6mQQxQYMC_wSywVpRqtEIjJiF4aw.F1y3gDvF1bEnoOMykYXvZ8oP4k2rD6c_ h.SfWhw_YyPKMcrvL46gmvaXcTpZIwPc8NKHC0ChFTHD_nxyI2FA_gSeDh2083gkzwYXB31xOoBG LXzdmzAZuOeCwWOX3Mx1UbrSv06fk9AyJc_j.YeNPVcm_ji0vxNGpJbdHd9T0TWf49LKlruesoeJ Xbfg_Llsch8QN44._nhmeYBW9XMgC0vUj8GcZ8mDqslOqnVPB5FEHJVVOuYNd627xHqGL3N6RY1n ZNmEuX4TrX_Kj9Rk5.dlrpESWs.l6NCDg0SRA0E1UXrXGHjDyI6jQqgMTsccmNcGE7OgNX0uOGnL MZ68dlcFmYr6093mnX7FGmVH9nu7o_fpVA_cCHUj_g Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Apr 2020 04:08:13 +0000 X-Mailer: WebService/1.1.15651 YMailNorrin Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0 X-Microsoft-Original-Message-ID: <546899605.742163.1586923688566@mail.yahoo.com> X-TMN: [IBDz+W55eaPcWOiGIrU8KmDa3GOvoR9q] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 52 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a246ba01-65ac-4ce0-e1b3-08d7e0f29ed9 X-MS-TrafficTypeDiagnostic: MW2NAM12HT175: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hlsnWlshcBEU4piiYHPeoOUnhnIKIHRNMBfotz+uCyxDZGySovpr9bTk1pKb6eVTSN5DLdOis4KHf9M5dFkWddSFjE2PcXcOT+UR6NoGnptY7kMe5JZUCVzlPGq3u3m1uTYmNxzPB6y7fM9JQKkoCacOGl4Tjyj69A8uacWGXWxGgSkygQBUrjXbqN29RI3g X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR19MB2460.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: 29P0QTSIHr/IXRhyFw2tMrn2Z/3spQ5jhHQyw+WHAKbEXVis7DgEUqIqiH+n6d0mbSHwgTSHBoOPn4ft19s4dVb6WhxbifCoBRckoTpHxR3qgAE2atKG0ag/J1GCXyc3Gm5Fdk9eCBf8hJ3tWPE/Jw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a246ba01-65ac-4ce0-e1b3-08d7e0f29ed9 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2020 04:08:15.2208 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM12HT175 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 40.92.22.108 X-Mailman-Approved-At: Wed, 15 Apr 2020 09:29:40 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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:16390 Archived-At: Hello. I'm attempting to use Guile, from C, in a project. I've managed, I believe,= to properly hook up the dependencies and can #include but running scm_init= _guile() results in the error Throw without catch before boot: Throw to key misc-error with args ("primitive-load-path" "Unable to find fi= le ~S in load path" ("ice-9/boot-9") #f)Aborting. Definitely someone correct me if I'm mistaken but I'm guessing it's occurri= ng because it's not finding the .scm files that typically (I think? Leastwi= se, where I've always seen them) reside in a "share" directory somewhere on= the root path tree? So this project allows moving libraries into where it's deployed but all ot= her files are containerized in the app's designated directory. I believe there's a way to set the load path on build of Guile (though, now= that I think about it, the project may not share what the eventual app. di= rectory is/will-be during the build process so that may not even be feasibl= e=E2=80=A6) but I was wondering if there was a way to set (or add to) the b= uild path from C? I was thinking something like add-to-load-path but I didn't see a correspon= ding C function in the documentation. If I had a way, I figured I could just, then, have the necessary modules mo= ved to the app.'s directory on build, add the current directory to the load= path, and then call scm_init_guile(). I dunno if there is a solve but thanks to anyone for any help! Jonathan