From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752051AbbIOW43 (ORCPT ); Tue, 15 Sep 2015 18:56:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59018 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751855AbbIOW42 convert rfc822-to-8bit (ORCPT ); Tue, 15 Sep 2015 18:56:28 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <12398.1442324426@warthog.procyon.org.uk> To: Vinson Lee Cc: dhowells@redhat.com, David Woodhouse , "Luis R. Rodriguez" , Mimi Zohar , Marcel Holtmann , LKML Subject: Re: Linux 4.3-rc1 build error on CentOS 5.11 "scripts/sign-file.c:23:25: fatal error: openssl/cms.h: No such file or directory" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Date: Tue, 15 Sep 2015 23:56:23 +0100 Message-ID: <19089.1442357783@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vinson Lee wrote: > This patch results in this build error on CentOS 5.11. > > HOSTCC scripts/sign-file > scripts/sign-file.c: In function ‘main’: > scripts/sign-file.c:255:23: error: ‘PKCS7_PARTIAL’ undeclared (first > use in this function) > PKCS7_NOCERTS | PKCS7_PARTIAL | PKCS7_BINARY | > ^ > scripts/sign-file.c:255:23: note: each undeclared identifier is > reported only once for each function it appears in > scripts/sign-file.c:259:2: warning: implicit declaration of function > ‘PKCS7_sign_add_signer’ [-Wimplicit-function-declaration] > ERR(!PKCS7_sign_add_signer(pkcs7, x509, private_key, digest_algo, > ^ > scripts/sign-file.c:263:2: warning: implicit declaration of function > ‘PKCS7_final’ [-Wimplicit-function-declaration] > ERR(PKCS7_final(pkcs7, bm, PKCS7_NOCERTS | PKCS7_BINARY) < 0, > ^ > scripts/sign-file.c:278:3: warning: implicit declaration of function > ‘i2d_PKCS7_bio_stream’ [-Wimplicit-function-declaration] > ERR(i2d_PKCS7_bio_stream(b, pkcs7, NULL, 0) < 0, > ^ Hmmm... Tricky. I'll have to think about it. I'm using PKCS7_NOCERTS with PKCS7_sign_add_signer() (or the CMS equivalents) to leave the cert list out of the message - but it's then necessary to manually specify the signers - at least so I recall. David