From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6fYD-0002eK-Ub for guix-patches@gnu.org; Mon, 23 Oct 2017 12:26:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6fYA-0005XM-Q7 for guix-patches@gnu.org; Mon, 23 Oct 2017 12:26:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49210) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6fYA-0005XE-Ls for guix-patches@gnu.org; Mon, 23 Oct 2017 12:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6fYA-0006Gj-G0 for guix-patches@gnu.org; Mon, 23 Oct 2017 12:26:02 -0400 Subject: [bug#28913] [PATCH 2/2] gnu: Add criu. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20171021005556.28993-1-rekado@elephly.net> <20171021005556.28993-2-rekado@elephly.net> <87h8uqyfgv.fsf@gnu.org> <87po9etn19.fsf@elephly.net> Date: Mon, 23 Oct 2017 09:25:32 -0700 In-Reply-To: <87po9etn19.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 23 Oct 2017 08:07:30 +0200") Message-ID: <87zi8hu8zn.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 28913@debbugs.gnu.org Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> Ricardo Wurmus skribis: >> >>> * gnu/packages/virtualization.scm (criu): New variable. >> >> [...] >> >>> + (replace 'configure >>> + (lambda* (#:key inputs #:allow-other-keys) >>> + ;; The includes for libnl are located in a sub-directory. >>> + (setenv "C_INCLUDE_PATH" >>> + (string-append (assoc-ref inputs "libnl") >>> + "/include/libnl3:" >>> + (getenv "C_INCLUDE_PATH"))) >> >> And there=E2=80=99s no libnet.pc or similar to provide the right -I flag? > > There is a libnl-3.0.pc file with these contents: > > prefix=3D/gnu/store/qyr5m7c21a4myx5421m90yxkxav2qij7-libnl-3.4.0 > exec_prefix=3D${prefix} > libdir=3D${exec_prefix}/lib > includedir=3D${prefix}/include > > Name: libnl > Description: Convenience library for netlink sockets > Version: 3.4.0 > Libs: -L${libdir} -lnl-3 > Cflags: -I${includedir}/libnl3 > > > That=E2=80=99s not enough, though, to find header files included by other= libnl > headers. Without the setenv snippet above compilation fails with this > error: > > In file included from criu/libnetlink.c:5:0: > /gnu/store/qyr5m7c21a4myx5421m90yxkxav2qij7-libnl-3.4.0/include/libnl3/ne= tlink/attr.h:15:29: fatal error: netlink/netlink.h: No such file or directo= ry > compilation terminated. Could it be that =E2=80=98Cflags=E2=80=99 from the .pc file is not honored? Ludo=E2=80=99.