From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753565AbbIXLS7 (ORCPT ); Thu, 24 Sep 2015 07:18:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36241 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752819AbbIXLS6 convert rfc822-to-8bit (ORCPT ); Thu, 24 Sep 2015 07:18:58 -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> <19089.1442357783@warthog.procyon.org.uk> <15243.1442443515@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: Thu, 24 Sep 2015 12:18:53 +0100 Message-ID: <14070.1443093533@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vinson Lee wrote: > HOSTCC scripts/sign-file > scripts/sign-file.c: In function ‘main’: > scripts/sign-file.c:289:3: warning: implicit declaration of function > ‘i2d_PKCS7_bio_stream’ [-Wimplicit-function-declaration] > ERR(i2d_PKCS7_bio_stream(b, pkcs7, NULL, 0) < 0, > ^ > > sign-file.c:(.text.startup+0x3e7): undefined reference to `i2d_PKCS7_bio_stream' Does this addition help? David --- diff --git a/scripts/sign-file.c b/scripts/sign-file.c index f65120e2aa03..33c098225a57 100755 --- a/scripts/sign-file.c +++ b/scripts/sign-file.c @@ -307,7 +307,7 @@ int main(int argc, char **argv) #ifndef USE_PKCS7 ERR(i2d_CMS_bio_stream(bd, cms, NULL, 0) < 0, "%s", dest_name); #else - ERR(i2d_PKCS7_bio_stream(bd, pkcs7, NULL, 0) < 0, "%s", dest_name); + ERR(i2d_PKCS7_bio(bd, pkcs7) < 0, "%s", dest_name); #endif sig_size = BIO_number_written(bd) - module_size; sig_info.sig_len = htonl(sig_size);