From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: ffi-helper: looking for C libraries to try Date: Sat, 15 Jul 2017 06:15:25 -0700 Message-ID: References: <22E467C6-8BCD-43B6-90B3-CFC43FC8799E@gmail.com> <6bc2d2c6d7229f221a32f7fd52919444@hypermove.net> <64F8FD69-D63A-4485-AE73-654533B7AEBB@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500124561 1444 195.159.176.226 (15 Jul 2017 13:16:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 13:16:01 +0000 (UTC) To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jul 15 15:15:52 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWMvH-0008Mu-N6 for guile-user@m.gmane.org; Sat, 15 Jul 2017 15:15:51 +0200 Original-Received: from localhost ([::1]:42115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWMvN-0000k5-5w for guile-user@m.gmane.org; Sat, 15 Jul 2017 09:15:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWMv1-0000k0-Gm for guile-user@gnu.org; Sat, 15 Jul 2017 09:15:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWMux-0006Pv-EU for guile-user@gnu.org; Sat, 15 Jul 2017 09:15:35 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:36428) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWMux-0006Pn-8y for guile-user@gnu.org; Sat, 15 Jul 2017 09:15:31 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id q86so57456983pfl.3 for ; Sat, 15 Jul 2017 06:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GmFFSSrNGUW5KMZE6gQMeeuG++7u/WAi78q+hgODXjs=; b=L1W8zkbnIYx5rEQW6twA2ISHpiT9gfl0hzbL2iH2xAD9j4vp5NgDu9FKS9dRZkdBrK oE9iBD/RvFT6iJhIqFiO2E9g8vHR8thFBuPGAzqHr9cbR8bv2vWIbco5qT0AuC5uVhwO ajL5JFyGIM/MdSWrS47N4rsbFRVJRZ1dkoApUGku2J+OKYuwPpZgSHT1ufabnMb5lopy /NF1KxChsGt2tf8LATz/dHj/lat2mRsjLbck77AAuKqA57C7zwV2OlCXjf1SYTmzMuB+ 6pBDHtKaY+x72vdvnudc/UpuLaPOnr4L3o+B4dUiDOHGNSwoOjzXa5KLZYnk0cZ1jB6t 5/Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GmFFSSrNGUW5KMZE6gQMeeuG++7u/WAi78q+hgODXjs=; b=G+DBiWmI+uVTdJvgzkn+Vy7k7+1QM6qYBsBxBFGdXOrULdW1CcBW/DTrILKSukjUS+ cCYqTskygzUk1EgecGF7K6T/2HLq+axDJEbfXt+OmFXUlqrmG5RdH/4iQedKNtiR/6m6 X9Wec4z4jucuBCvGtv0qiWxKw9xTpz1oENU+7Seb7PdXlS3sAGZ1x7kqWIYKoLSigkl/ 3BMVIQ0Gy+ELnhdYGliq3NLapvjSPRpHzPpQJEhlMCnSPsSD/jQGbWWu+cSv7r+eaNDM ilSNtojtpiIuShvg82TqeginThTv/WOD1S+jx7GLmxp8HDmDD8I+0Bfg+105+O1wQi3O HBLw== X-Gm-Message-State: AIVw110+0W69V3+K0GTTHhePskoLxsFudxYyeXcddt51rEcNM60VXVvz jD5zSYZ+h9J1xf2Hf10= X-Received: by 10.98.178.150 with SMTP id z22mr10218924pfl.165.1500124529771; Sat, 15 Jul 2017 06:15:29 -0700 (PDT) Original-Received: from nautilus.championbroadband.com (216-165-236-44.championbroadband.com. [216.165.236.44]) by smtp.gmail.com with ESMTPSA id d24sm27285207pfk.43.2017.07.15.06.15.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jul 2017 06:15:28 -0700 (PDT) In-Reply-To: <64F8FD69-D63A-4485-AE73-654533B7AEBB@gmail.com> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22d X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13932 Archived-At: > On Jul 14, 2017, at 9:35 PM, Matt Wette wrote: >=20 >=20 >> On Jul 14, 2017, at 5:44 PM, Amirouche Boubekki = wrote: >>=20 >> On 2017-07-15 01:17, Matt Wette wrote: >>> I tried git2 but those headers are too >>> broken. >>=20 >> What do you mean by "too broken"? Maybe it will be easier in the long = run to maintain our own version of the headers than manually bind = everything. Even if it requires to create a shim layer in scheme to have = a proper set of bindings that schemer will enjoy. Also, git is a good = candidate since there are some tests already in guile-git [1]. >=20 > Maybe another bug in my CPP. =20 >=20 > (define-ffi-module (libgit2) > #:include '("git2.h") > #:inc-dirs '("/opt/local/include") > #:library '("git2") > ) >=20 > mwette$ guild compile-ffi libgit2.ffi=20 > (unknown):1: not found: =E2=80=9Ccommon.h" >=20 I claim libgit2 headers are broken. The standard says, essentially, = =E2=80=9Chow headers are located is implementation defined=E2=80=9D. The file =E2=80=A6/include/git2.h states: #include =E2=80=9Cgit2/annotated_commit.h=E2=80=9D #include =E2=80=9Cgit2/common.h=E2=80=9D =E2=80=A6 But the file include/git2/annotated_commit.h states: #include =E2=80=9Ccommon.h=E2=80=9D Note this is =E2=80=9Ccommon.h" not =E2=80=9Cgit2/common.h=E2=80=9D How = does gcc find common.h? =20 The directory include/git2 is not in the include path. =20 These are the ugly, undocumented, non-standard items that scare me.