public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Vinson Lee <vlee@twopensource.com>
Cc: dhowells@redhat.com, David Woodhouse <David.Woodhouse@intel.com>,
	"Luis R. Rodriguez" <mcgrof@suse.com>,
	Mimi Zohar <zohar@linux.vnet.ibm.com>,
	Marcel Holtmann <marcel@holtmann.org>,
	LKML <linux-kernel@vger.kernel.org>
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"
Date: Thu, 24 Sep 2015 12:18:53 +0100	[thread overview]
Message-ID: <14070.1443093533@warthog.procyon.org.uk> (raw)
In-Reply-To: <CAHTgTXUo6dvVbkhujtEyqEnZwwdzRCbMHsY47UuDkqMcG+b2aQ@mail.gmail.com>

Vinson Lee <vlee@twopensource.com> 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);

  reply	other threads:[~2015-09-24 11:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 22:41 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" Vinson Lee
2015-09-11 23:22 ` Davidlohr Bueso
2015-09-12 21:40   ` Jim Davis
2015-09-14  2:14   ` Dongsheng Yang
2015-09-15 13:40 ` David Howells
2015-09-15 22:01   ` Vinson Lee
2015-09-15 22:56     ` David Howells
2015-09-16 22:45       ` David Howells
2015-09-18  6:48         ` Vinson Lee
2015-09-24 11:18           ` David Howells [this message]
2015-09-24 11:21             ` David Howells
2015-09-24 22:24               ` Vinson Lee
2015-09-25  6:16                 ` David Howells
2015-09-25 14:24                 ` David Howells
2015-09-26  1:43                   ` Vinson Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14070.1443093533@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=David.Woodhouse@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=mcgrof@suse.com \
    --cc=vlee@twopensource.com \
    --cc=zohar@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox