From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4C/AG1VfE2V3IAEAG6o9tA:P1 (envelope-from ) for ; Wed, 27 Sep 2023 00:46:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4C/AG1VfE2V3IAEAG6o9tA (envelope-from ) for ; Wed, 27 Sep 2023 00:46:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 646A240C57 for ; Wed, 27 Sep 2023 00:46:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=d4binXCm; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695768405; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YwlP1Sz1Wlur0BvdDroyHR/TcZiE0bxt6L165+djkXw=; b=ZGUlwhEMP2LyIcTQgH4+2qffVvdgoVNeDLMP9cI7DEXJDg4pMBL5Tly2gHJ97dF/uyybbD QjXsqO3CmeIBQ1gOt0Xhe49v4KBAceSlJKDTu71Ta2YgErXQvRxQ9KJ55cvXE3ftw5KmoO 5sxcfDHwn5Pa9zYwzoIubSwLRYS6NrIg7mGdqvgBe7VFNVNX5PPFVLNd9umikw6Nkaoe73 x5q7kEARQqg112TlKor0d0t9KsPV/6eb4YVTmgKpQf9BUyXdmxaTf3lr1afZzAC2SXds/F kT67CRRO1tpVJQvFVB6yQLILc3bdRntqAgkbk8uV3cbg5Z+wuitWqar+MpR6hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695768405; a=rsa-sha256; cv=none; b=LLbL177DmMef2Wv8xyHcanRbKSZUPhQU8tDOJaK08yCe+OS3Tnzcker1Z1GrnwMrys5kdf xpm/Lmx3lBo8B5bbJ605h4Ur9rn9/mjADBfQSNldmBL4vX0eJEt1LdhwcIRD0XugIGss9N DFcjrHmZMGFDv2ECMa8Hn/FUo8O1jHhCAi3vLQPT1HvJYX9Ah5TRo8C7Z6+mAE0XMu6Vbw 0iAXNYL3o4Tr2SjFMVDH/0FKv22wNDWxl8B7cYi5h9slFLH4GUawvR6/hbjGOk5hvW1YpD hUWrCzlmoPNjvOdE/odgj9CsS99PkLf1lczQQPiR2/xBsBUafXI6onp3bS62Zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=d4binXCm; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlGp2-0001p4-H8; Tue, 26 Sep 2023 18:46:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlEip-0003RD-Vz for guix-devel@gnu.org; Tue, 26 Sep 2023 16:31:57 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlEio-0007S1-5O for guix-devel@gnu.org; Tue, 26 Sep 2023 16:31:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2CF63240101 for ; Tue, 26 Sep 2023 22:31:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695760311; bh=/mVZ2Ovgz7K7lVUYUfhqR5yulME/AHtKDyGIahpP66Q=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=d4binXCmSnzJ4Xf0KWgEU8InoQBJRCvxdPBDQfyONvaLJpG0fBliJ3/Uk98gRgvXu EmFPZnLCDXJexU5ZOTXt0AiZcLCWlAThH8Lsk8DDqIbIeFlVspGw3CXnRu5IosIoXW KChPTya5Tc5hT6tJyHAwXtBDwLO61tGRIchSWV8agqSj/E9vyjUs1yTLpIELx/0/1o QFRQVQnahC7jcc6Wr3ewIhGUDa77w0DFKJ/04SjUIc9lJ5VDz4jIYUlwBJX4rzDhV/ GiTm3M0cubc8UJweoZM/K3YYBO48MUFFbzAGaXgpEdSzZqz20qcddB9M2cZRzgCAqB l05OfBObSr0IQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RwBHB68zcz9ryn for ; Tue, 26 Sep 2023 22:31:50 +0200 (CEST) From: =?utf-8?Q?Th=C3=A9o?= Tyburn To: guix-devel@gnu.org Subject: Help Packaging Incudine (Common Lisp) Date: Tue, 26 Sep 2023 20:31:10 +0000 Message-ID: <871qekptft.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=theo.tyburn@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 26 Sep 2023 18:46:27 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.89 X-Migadu-Spam-Score: -7.89 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 646A240C57 X-TUID: 2sUIUMvbsk7P Hi there, I'm trying to package Incudine, a Music/DSP programming environment for Common Lisp. I'm stuck with the binding of libsndfile. First libsndfile.so could not be found, but I fixed the paths like it is commonly done in other CL packages. Next problem is that somehow the bindings are not working. The error I get: > file: /gnu/store/s2657snmavhsnqyr0hf6f8a2v1lvrln2-sbcl-incudine-0.0.0-1.2= 1c99e4/share/common-lisp/sbcl/incudine/contrib/cl-sndfile/cffi-sndfile.lisp > in: DEFUN MAKE-SNDINFO > (CFFI:FOREIGN-TYPE-SIZE '(:STRUCT SNDFILE:INFO)) >=20 > caught WARNING: > Error during compiler-macroexpansion of > (CFFI:FOREIGN-TYPE-SIZE '(:STRUCT INFO)). Use *BREAK-ON-SIGNALS* to int= ercept. >=20=20=20 > Unknown CFFI type (:STRUCT INFO) Now in the source file `cffi-sndfile.lisp`, there is: > (declaim (inline make-sndinfo)) > (defun make-sndinfo (&optional pointer) > (%make-sndinfo > :pointer (or pointer > (cffi:foreign-alloc :int8 > :count (cffi:foreign-type-size '(:struct info)) > :initial-element 0)))) >=20 > [...] >=20 > (cffi:defcstruct info > (frames sf-count) > (sample-rate :int) > (channels :int) > (format :int) > (sections :int) > (seekable :int)) If I look at the source `sndfile.h` (which is present in source/.cl-union) there is: > struct SF_INFO > { sf_count_t frames ; /* Used to be called samples. Changed to avoid co= nfusion. */ > int samplerate ; > int channels ; > int format ; > int sections ; > int seekable ; > } ; So things look like they should match. Is there something I'm missing here? I have 0 experience with CFFI bindings, so there might be something obvious I'm missing. Cheers Th=C3=A9o