From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Build failure: 'seccomp-filter' Date: Sun, 11 Apr 2021 16:40:18 +0200 Message-ID: References: <871rbhs4jk.fsf@yandex.com> <83mtu546b0.fsf@gnu.org> <87wnt9qmxz.fsf@yandex.com> <87pmz1p0ag.fsf@yandex.com> <87C5F4EB-28C7-467C-A6CB-80D6AE861ABA@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="479"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emacs developers To: Colin Baxter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 11 16:42:34 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lVbII-000Aa0-0g for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 16:42:34 +0200 Original-Received: from localhost ([::1]:54484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVbIH-0000JM-2P for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 10:42:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVbGN-0006XU-Aq for emacs-devel@gnu.org; Sun, 11 Apr 2021 10:40:35 -0400 Original-Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:37520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVbGJ-0007LV-5o; Sun, 11 Apr 2021 10:40:35 -0400 Original-Received: by mail-ot1-x32a.google.com with SMTP id t23-20020a0568301e37b02901b65ab30024so10362074otr.4; Sun, 11 Apr 2021 07:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kbuYmlpVrBKVmJmaLO3ZknS2qM2YvZtAPXRI8tgWeIE=; b=Aw5STgLPn7cFWUGg4KqCxZKcDDRj38HTGCC2yAVozeBU7WxqB3+0bHFIZghI7ayyQ6 cdPURX0Kg9DapRYYbHDDbF2O8BetgCIzdMdGRaV7S0/nJtTw3c0dTO6iREY40Xt4xxCG MAkCh/F2VrbMZ7/82R5vjyJwbKMbNmwyNtZCW0nooZaRS4qVNfe0VULA5Q7MraDeRQ+F zyKlUUpP1yPifqNGNqTRsCASXI+b4BsYSJnZJ2iPam7A8OBinxaXA2M1eqqzjcbPcf1V iqXz/WT5AUb7DX2L4nOwUSHRfvux44w08o+NGNr40zynxIpr/97VHjf9lIbT7B7H6dN9 HNbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kbuYmlpVrBKVmJmaLO3ZknS2qM2YvZtAPXRI8tgWeIE=; b=RnY7Th6b+UV7RC3D9kQ+EPWQQ9rx4b1iqbjB0WlXD/QJTKnL64xKu74D+LZEnPZrSD u5R8x1T4TkABPtLwwzok6OLMvFrQAwpHPEH6kjzKWHSGPEjGCV/nxrWuRQ9dCKE0rsNT aYp8mRu+YtBrDTFvLL20gb29tKKYN4EWiRHvOfUoC+2Ztj4s4Zalvr7Haoe3U8PB1oD3 ZBeuA1rZuPHRAtKgn1CzR6uNnY5F3qN4YrTNl8tQoti1ENJ3R8NbmYkN/2lY82O4j8Oo RxZCUdPpNT4MibbpqdT6hHbagXH2GquaY7/nullV8WRe0f9674s5FoHM9HSoagShZVYR OguQ== X-Gm-Message-State: AOAM530pq9sI+zTQEUraQIitrhSSqQcY+pBw2KgH+pmsiV5NGFoXOcun cGxkYBlDuzerhY9zgZaYOlrNwtkwLEidJyMgkw4= X-Google-Smtp-Source: ABdhPJwJ/scphAHitywITMDqN9s1xBwaUK+uxwVvX230kqyqHY1exlajOjDcB9VEwwQZXBeiLNpJEWUMZkk9VyDTZeA= X-Received: by 2002:a05:6830:4121:: with SMTP id w33mr19843783ott.153.1618152029437; Sun, 11 Apr 2021 07:40:29 -0700 (PDT) In-Reply-To: <87C5F4EB-28C7-467C-A6CB-80D6AE861ABA@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x32a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267882 Archived-At: Am So., 11. Apr. 2021 um 16:31 Uhr schrieb Philipp : > > > > > Am 11.04.2021 um 12:45 schrieb Colin Baxter : > > > >>>>>> Philipp Stephani writes: > > > >> Am So., 11. Apr. 2021 um 09:51 Uhr schrieb Colin Baxter > >> : > >>> > >>>>>>>> Eli Zaretskii writes: > >>> > >>>>> From: Colin Baxter Cc: Date: Sun, 11 Apr > >>> 2021 >> 07:45:19 +0100 > >>>>> > >>>>> I get a build with the latest pull of emacs: > >>>>> > >>>>> Makefile:415: recipe for target 'seccomp-filter' failed > >>> make[1]: >> *** [seccomp-filter] Error 1 make[1]: Leaving > >>> directory >> '/home/redknight/git/emacs/lib-src' Makefile:396: > >>> recipe for >> target 'lib-src' failed make: *** [lib-src] Error 2 > >>> > >>>> Are there no error or warning messages before the > >>> "Makefile:415" > one? If there are, please show all the > >>> messages. > >>> > >>> Yes, sorry, I missed the earlier errors. Here is the full list > >>> beginning after the attempt to compile seccomp-filter: > >>> > >>> ---------- Begin error list ------------ > >>> > >>> CCLD seccomp-filter seccomp-filter.c: In function =E2=80=98main=E2=80= =99: > >>> seccomp-filter.c:142:23: error: =E2=80=98SCMP_ACT_KILL_PROCESS=E2=80= =99 > >>> undeclared (first use in this function) ctx =3D seccomp_init > >>> (SCMP_ACT_KILL_PROCESS); ^~~~~~~~~~~~~~~~~~~~~ > > > > > >> This is an interesting failure. Looks like seccomp.h exists on > >> your system, but doesn't contain the right definitions? What does > >> your config.log say about seccomp.h (not linux/seccomp.h) and > >> seccomp_init? > > > > I have appended below the occurrences in config.log for seccomp.h. (Do > > you want me to attach the whole config.log in a second email?) The only > > other mentions are multiple lines of the form > > > > 5090:| #define HAVE_LINUX_SECCOMP_H 1 > > > > ending with > > > > 27758:ac_cv_header_linux_seccomp_h=3Dyes > > 27771:ac_cv_header_seccomp_h=3Dyes > > 29332:#define HAVE_LINUX_SECCOMP_H 1 > > > > Hope this helps. > > > > ---------- Begin relevant portion of config.log ----------- > > > > configure:17719: checking linux/seccomp.h usability > > configure:17719: gcc -c -g3 -O2 -pthread -isystem /usr/include/librsvg= -2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -i= system /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/= i386-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /us= r/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/ca= iro -isystem /usr/include/glib-2.0 -isystem /usr/lib/i386-linux-gnu/glib-2.= 0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -i= system /usr/include/libpng16 conftest.c >&5 > > configure:17719: $? =3D 0 > > configure:17719: result: yes > > configure:17719: checking linux/seccomp.h presence > > configure:17719: gcc -E conftest.c > > configure:17719: $? =3D 0 > > configure:17719: result: yes > > configure:17719: checking for linux/seccomp.h > > configure:17719: result: yes > > configure:17731: checking seccomp.h usability > > configure:17731: gcc -c -g3 -O2 -pthread -isystem /usr/include/librsvg= -2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -i= system /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/= i386-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /us= r/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/include/ca= iro -isystem /usr/include/glib-2.0 -isystem /usr/lib/i386-linux-gnu/glib-2.= 0/include -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -i= system /usr/include/libpng16 conftest.c >&5 > > configure:17731: $? =3D 0 > > configure:17731: result: yes > > configure:17731: checking seccomp.h presence > > configure:17731: gcc -E conftest.c > > configure:17731: $? =3D 0 > > configure:17731: result: yes > > configure:17731: checking for seccomp.h > > configure:17731: result: yes > > configure:17733: checking for seccomp_init in -lseccomp > > configure:17758: gcc -o conftest -g3 -O2 -pthread -isystem /usr/includ= e/librsvg-2.0 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/li= bpng16 -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem = /usr/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -is= ystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /usr/i= nclude/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/i386-linux-gn= u/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/fre= etype2 -isystem /usr/include/libpng16 conftest.c -lseccomp -lX11 -= lcairo >&5 > > configure:17758: $? =3D 0 > > configure:17767: result: yes > > > > ---------- End relevant portion of config.log ---- > > > > > > > OK, looks like libseccomp is available and should be working. Does /usr/= include/seccomp.h contain at least some of the symbols the compiler complai= ns about? > Looking at https://github.com/seccomp/libseccomp/blob/main/CHANGELOG, I guess we need at least version 2.4.0 of libseccomp. I'll see that I can add a few more checks to configure.ac.