From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uMpwKprtbmb8XgAAe85BDQ:P1 (envelope-from ) for ; Sun, 16 Jun 2024 13:50:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uMpwKprtbmb8XgAAe85BDQ (envelope-from ) for ; Sun, 16 Jun 2024 15:50:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718545818; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=04xLd0ViCyGWpB4RHXutWoYD6Ehiwj9tbTxDmwbDMTU=; b=GriSJQTP2H5iiyDcjySsOTdb3lMoSWLAKoe+bGKZAxyJd4rNOIX+qhSTFr+0nqPWbk4wFl QM1ZbskLIh9/+hr6e7vEU1kBi4DoMjtBbh7hdksRNT2fYEMRnbVpf4TVaK1CEhWPByBzqK Wd0ieP9k7XasUiOh9YmrDqspKaRA4+9ZYhtOcFFHrSjcKeEEQdtXZlMI3CIWj8qOrCgsna TiKLWj0DoDnTyiI1lLOy6lWjEEq+hFcITaimfn6+y/iThEKZkNW0tkxAC2oRMl9dOTogJb 0kidgcqaxx7R8Xe6JxdXNls6MMV09ShVyzSRuTXJTGFpMABFdyeW2IT3sUzNFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718545818; a=rsa-sha256; cv=none; b=evIayijKcoQG2gRmlRK9epcQClwAQTXuZ2KQ5WOh3KT6KOFq6N3vCyNu+9YXbTbe/V/cw9 azv93f+5A7QQ5ftXm/6KQxBMHaXwd7kvhcD9I5yOoTP5b0zjc19BVwjB3fvZfH1ziB0j+V kRNVqk+Rj4xlGFp1ieC3TeK8U4stM997JK3/BVSoMm0iW53N9pSpTOc+JrV9gXo1vZhq77 tH0zCTrMIbjVpo6AxqaXvK6G0yhiMTLOTeSwRwhlro3u4wxbITYiEJ6BB7SZPhqTnvlCPa 1ALTIbWTu5Nyq5KG7O83IpQDNon+LhDp+0Y9r5qW2dks/WRzKEusK109wQm0cQ== 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 8A2C198C0 for ; Sun, 16 Jun 2024 15:50:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIqGK-0004h3-Vt; Sun, 16 Jun 2024 09:49:41 -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 1sI9oU-00065W-Go for help-guix@gnu.org; Fri, 14 Jun 2024 12:30:06 -0400 Received: from fout7-smtp.messagingengine.com ([103.168.172.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sI9oR-00038X-GS for help-guix@gnu.org; Fri, 14 Jun 2024 12:30:06 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 7E4751380175 for ; Fri, 14 Jun 2024 12:30:00 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Fri, 14 Jun 2024 12:30:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=michzappa.com; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1718382600; x=1718469000; bh=PUVxDtwB1Gr6mqO73GYgPIaxjiacDJ8l 5kXBBsCY5ZU=; b=fbVMOAVOPDHWmKnoZI9uEcoJDb94+6Og/aL90zGx33r42Q6X 2F0LUmFaaDgVmg9GlUwUYtOYb/V4O4UOds0bl/opqVuxkT0qvSuKjMyuZ1KA5qiF 00FR2ph3GNtfmypzabzIWQXPb8W9t6MgVQSEP/+0MYOsL7f/xgQueJl36zlMNkYr wvWkRZV+Yz1eHlQjx5ZYbcM5xYlcgdh7NEBJk7KXrmYUCwa98oxoEDHxu3AwPCfE Ea9fg1ZWHJ7VAAwvcR5Ml2EB1gWBxszhUn3xgOi0KbeqOVmxtmxJatn0KOLZT4mq xqWhy277m/wyctfiXcbqW3FJUUChvZ+APiZrGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1718382600; x=1718469000; bh=PUVxDtwB1Gr6mqO73GYgPIaxjiacDJ8l5kX BBsCY5ZU=; b=b7MBR6bryjTIQCowZktGZaIqhvgfqAa2Bfccjkamv/wt0uyeYo+ dhnorjgUCf5nVsi1znZVuvz1DvWg/7UofCj7R70A6xFoW0IIxkb7nKCFkqTeCEP1 GDTHnyrXGxMHT8ybqGX9FuE4ErltKJD3oCI4iMakOWWsKWynbshU03eN7cMAQ5ja QDEwYwIKotNk6aVfs3alJfc8tUxAvznKEJH6DCvzkqdVkRV5ZUtz41hf8X/XjFzm skEG0VcWaNQRyHOvTbKjqoMckSvvZC0hMvVy4Q66oNnAVki2gJTbnE9tcNt17mIn 04RTRXb5RVHJRYLLldJMsLEa1mW5kI6yfvQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeduledguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreertdenucfhrhhomhepfdfoihgthhgrvghlucgkrghpphgrfdcuoehmvgesmhhitghh iigrphhprgdrtghomheqnecuggftrfgrthhtvghrnhephfehfffflefgjeeviefhteetvd ekffdvffekfeeljeeivedvleevkeduudehleejnecuffhomhgrihhnpehgihhthhhusgdr tghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmvgesmhhitghhiigrphhprgdrtghomh X-ME-Proxy: Feedback-ID: i7c6149b1:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 317991700093; Fri, 14 Jun 2024 12:30:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-515-g87b2bad5a-fm-20240604.001-g87b2bad5 MIME-Version: 1.0 Message-Id: <497b3e48-905d-42c8-8025-250ad5153ca8@app.fastmail.com> Date: Fri, 14 Jun 2024 12:29:33 -0400 From: "Michael Zappa" To: help-guix@gnu.org Subject: Static Glib included in shared library's pkg-config file Received-SPF: pass client-ip=103.168.172.150; envelope-from=me@michzappa.com; helo=fout7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 16 Jun 2024 09:49:39 -0400 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -5.44 X-Migadu-Queue-Id: 8A2C198C0 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.44 X-TUID: 4+Js8tRM/NnG Hello, I have packaged libbson via the mongo-c-driver(https://github.com/mongodb/mongo-c-driver) but am having a curious issue with the pkg-config files generated as part of its CMake build system. It has two outputs, shared and static, but both pkg-config files include static glibc in their "Libs:" which are accessed via `pkg-config --libs ...`. Thus, when attempting to use the package in compiling a dynamic executable, the static glibc is linked in, causing immediate segfaults upon execution. I am wondering if anyone more familiar with cmake-build-system or CMake as a whole has any ideas about why the static glibc is ending up as the associated lib instead of the shared version. I am on commit `bb73faea` of Guix. The guix package: ``` (use-modules ((guix licenses) #:prefix licenses:) (guix build-system cmake) (guix git-download) (guix packages)) (define-public libbson (package (name "libbson") (version "1.27.2") (home-page "https://github.com/mongodb/mongo-c-driver") (source (origin (method git-fetch) (uri (git-reference (url home-page) (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "176qksl6zd8ffryics2pgaxji3fnqqmy4842dmyr1ycqxrx9jy4p")))) (build-system cmake-build-system) (arguments '(#:configure-flags `("-DENABLE_MONGOC=OFF" "-DENABLE_EXTRA_ALIGNMENT=OFF" "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF" ,(string-append "-DBUILD_VERSION=" "1.27.2")))) (synopsis #f) (description #f) (license licenses:asl2.0))) ``` The pkg-config file for the shared output of libbson: ``` # pkg-config .pc file generated by CMake 3.24.2 for libbson-1.27.2. DO NOT EDIT! prefix=/gnu/store/2bryf1infbhskkab3czymhbyqhhng8ns-libbson-1.27.2 exec_prefix=${prefix} libdir=${exec_prefix}/lib Name: libbson Description: The libbson BSON serialization library Version: 1.27.2 Libs: -L${libdir} -lbson-1.0 -L/gnu/store/i2g0is6wjq3ccs6m1l6w9mhf44k4042h-glibc-2.35-static/lib -lrt Cflags: -I${prefix}/include/libbson-1.0 ``` Thank you, Michael