Article View: linux.debian.bugs.dist
Article #4774Bug#1154190: libpari-dev: pari.h uses sigjmp_buf, so it fails to compile with -std=c17
From: Bill Allombert
Date: Mon, 16 Nov 2026 20:30
Date: Mon, 16 Nov 2026 20:30
26 lines
2598 bytes
2598 bytes
On Mon, Nov 16, 2026 at 07:37:22PM +0000, Tobias Hansen wrote: > Package: libpari-dev > Version: 2.19.1-1 > Severity: important > Affects: src:sagemath > > Dear Maintainer, > > since 2.19.1-1, the public PARI headers cannot be compiled in strict ISO C > mode (-std=c99/c11/c17), because they use the POSIX type sigjmp_buf, which > glibc's <setjmp.h> only declares when POSIX features are enabled: Hello Tobias, Note that using the PARI headers without __GNUC__ defined can lead to significant performance loss since that disables inline assembly, so it is not something we should encourage. I would consider building a Debian package this way to be a bug. That aside, if you want to use -std=c17, I suggest you also add -D_POSIX_C_SOURCE Probably this problem could be fixed by adding #define _POSIX_C_SOURCE in pari.h Cheers, -- Bill. <ballombe@debian.org> Imagine a large red swirl here.
Technical Details
Message-ID:
<O0buV-cjLO-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O0aIy-cjjs-15@gated-at.bofh.it> <O0aIy-cjjs-15@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Bill Allombert <ballombe@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154190: libpari-dev: pari.h uses sigjmp_buf, so it fails to compile with -std=c17 Date: Mon, 16 Nov 2026 21:30:01 +0100 Message-ID: <O0buV-cjLO-7@gated-at.bofh.it> References: <O0aIy-cjjs-15@gated-at.bofh.it> <O0aIy-cjjs-15@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 16 20:29:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Bill Allombert <ballombe@debian.org>, 1154190@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: ballombe@debian.org X-Debian-Pr-Message: followup 1154190 X-Debian-Pr-Package: libpari-dev X-Debian-Pr-Source: pari MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-User: ballombe X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003044 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 26 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 16 Nov 2026 21:28:20 +0100 X-Original-Message-ID: <avtnZPFKG_YTPEve@seventeen> X-Original-References: <e33ee8c8-5ab3-4e1d-880d-e825581ab385@debian.org> <e33ee8c8-5ab3-4e1d-880d-e825581ab385@debian.org>