Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't compile on ubuntu 14.04 #68

Closed
fabiostrada77 opened this issue Jul 12, 2017 · 1 comment
Closed

don't compile on ubuntu 14.04 #68

fabiostrada77 opened this issue Jul 12, 2017 · 1 comment

Comments

@fabiostrada77
Copy link

fabiostrada77 commented Jul 12, 2017

sscep don't compile on ubuntu 14.04. I executed these commands:

  1. I executed ./Configure
  2. I installed openssl from https://github.com/openssl/openssl
  3. I Modified the OPENSSL reference into the Makefile with path of my openssl
  4. I executed make
    I had these errors:

gcc -Wall -O -g -I /home/forensor/Scaricati/openssl/include -c -o pkcs7.o pkcs7.c
pkcs7.c: In function ‘pkcs7_wrap’:
pkcs7.c:89:4: warning: passing argument 1 of ‘ASN1_i2d_bio’ from incompatible pointer type [enabled by default]
if ((rc = i2d_pkcs7_issuer_and_subject_bio(databio,
^
In file included from /home/forensor/Scaricati/openssl/include/openssl/objects.h:15:0,
from /home/forensor/Scaricati/openssl/include/openssl/evp.h:28,
from sscep.h:50,
from pkcs7.c:9:
/home/forensor/Scaricati/openssl/include/openssl/asn1.h:742:5: note: expected ‘int (*)(void , unsigned char **)’ but argument is of type ‘int ()(struct pkcs7_issuer_and_subject *, unsigned char **)’
int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char x);
^
pkcs7.c:108:4: warning: passing argument 1 of ‘ASN1_i2d_bio’ from incompatible pointer type [enabled by default]
if ((rc = i2d_PKCS7_ISSUER_AND_SERIAL_bio(databio,^
In file included from /home/forensor/Scaricati/openssl/include/openssl/objects.h:15:0,
from /home/forensor/Scaricati/openssl/include/openssl/evp.h:28,
from sscep.h:50,
from pkcs7.c:9:
/home/forensor/Scaricati/openssl/include/openssl/asn1.h:742:5: note: expected ‘int (
)(void , unsigned char **)’ but argument is of type ‘int ()(struct PKCS7_ISSUER_AND_SERIAL *, unsigned char **)’
int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char x);
^
pkcs7.c:127:4: warning: passing argument 1 of ‘ASN1_i2d_bio’ from incompatible pointer type [enabled by default]
if ((rc = i2d_PKCS7_ISSUER_AND_SERIAL_bio(databio,^
In file included from /home/forensor/Scaricati/openssl/include/openssl/objects.h:15:0,
from /home/forensor/Scaricati/openssl/include/openssl/evp.h:28,
from sscep.h:50,
from pkcs7.c:9:
/home/forensor/Scaricati/openssl/include/openssl/asn1.h:742:5: note: expected ‘int (
)(void , unsigned char **)’ but argument is of type ‘int ()(struct PKCS7_ISSUER_AND_SERIAL *, unsigned char **)’
int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x);
^
pkcs7.c:185:3: warning: too many arguments for format [-Wformat-extra-args]
printf("\n %s: hexdump request payload \n", pname , i);
^
In file included from /home/forensor/Scaricati/openssl/include/openssl/conf.h:13:0,
from configuration.h:13,
from sscep.h:22,
from pkcs7.c:9:
/home/forensor/Scaricati/openssl/include/openssl/bio.h:491:34: warning: value computed is not used [-Wunused-value]

define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)^

pkcs7.c:218:2: note: in expansion of macro ‘BIO_flush’
BIO_flush(memorybio);
^
pkcs7.c:263:4: warning: pointer targets in passing argument 3 of ‘add_attribute_octet’ differ in signedness [-Wpointer-sign]
s->sender_nonce_len);
^
In file included from pkcs7.c:9:0:
sscep.h:340:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’
int add_attribute_octet(STACK_OF(X509_ATTRIBUTE) *, int, char *, int);
^
In file included from /home/forensor/Scaricati/openssl/include/openssl/conf.h:13:0,
from configuration.h:13,
from sscep.h:22,
from pkcs7.c:9:
/home/forensor/Scaricati/openssl/include/openssl/bio.h:491:34: warning: value computed is not used [-Wunused-value]

define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)^

pkcs7.c:320:2: note: in expansion of macro ‘BIO_flush’
BIO_flush(outbio);
^
pkcs7.c:34:12: warning: unused variable ‘reqcsr’ [-Wunused-variable]
X509_REQ *reqcsr = NULL;^
In file included from /home/forensor/Scaricati/openssl/include/openssl/conf.h:13:0,
from configuration.h:13,
from sscep.h:22,
from pkcs7.c:9:
pkcs7.c: In function ‘pkcs7_verify_unwrap’:
/home/forensor/Scaricati/openssl/include/openssl/bio.h:491:34: warning: value computed is not used [-Wunused-value]

define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)

                              ^

pkcs7.c:397:2: note: in expansion of macro ‘BIO_flush’
BIO_flush(outbio);
^
pkcs7.c:344:14: warning: unused variable ‘recipientkey’ [-Wunused-variable]
EVP_PKEY *recipientkey; ^
pkcs7.c:343:11: warning: unused variable ‘recipientcert’ [-Wunused-variable]
X509 *recipientcert;
^
pkcs7.c:341:11: warning: unused variable ‘p’ [-Wunused-variable]
char *p;
^
pkcs7.c:340:28: warning: unused variable ‘attribs’ [-Wunused-variable]
STACK_OF(X509_ATTRIBUTE) *attribs;
^
pkcs7.c:338:12: warning: unused variable ‘p7’ [-Wunused-variable]
PKCS7 *p7;
^
pkcs7.c:336:9: warning: unused variable ‘i’ [-Wunused-variable]
int i, len, bytes, used;
^
In file included from /home/forensor/Scaricati/openssl/include/openssl/conf.h:13:0,
from configuration.h:13,
from sscep.h:22,
from pkcs7.c:9:
pkcs7.c: In function ‘pkcs7_unwrap’:
/home/forensor/Scaricati/openssl/include/openssl/bio.h:491:34: warning: value computed is not used [-Wunused-value]

define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)

                              ^

pkcs7.c:559:2: note: in expansion of macro ‘BIO_flush’
BIO_flush(outbio);
^
pkcs7.c:628:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s->reply_sender_nonce = p;
^
pkcs7.c:641:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
s->reply_recipient_nonce = p;
^
In file included from /home/forensor/Scaricati/openssl/include/openssl/conf.h:13:0,
from configuration.h:13,
from sscep.h:22,
from pkcs7.c:9:
/home/forensor/Scaricati/openssl/include/openssl/bio.h:491:34: warning: value computed is not used [-Wunused-value]

define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)

                              ^

pkcs7.c:773:2: note: in expansion of macro ‘BIO_flush’
BIO_flush(outbio);
^
pkcs7.c: In function ‘get_signed_attribute’:
pkcs7.c:868:2: warning: ‘ASN1_STRING_data’ is deprecated (declared at /home/forensor/Scaricati/openssl/include/openssl/asn1.h:555) [-Wdeprecated-declarations]
memcpy(*buffer, ASN1_STRING_data(asn1_type->value.asn1_string), len);
^
pkcs7.c: In function ‘get_attribute’:
pkcs7.c:898:26: error: dereferencing pointer to incomplete type
if (OBJ_cmp(x509_attrib->object, asn1_obj) == 0) {
^
pkcs7.c:899:20: error: dereferencing pointer to incomplete type
if ((x509_attrib->value.set) &&
^
pkcs7.c:900:35: error: dereferencing pointer to incomplete type
(sk_ASN1_TYPE_num(x509_attrib->value.set) != 0)) {
^
pkcs7.c:907:35: error: dereferencing pointer to incomplete type
sk_ASN1_TYPE_value(x509_attrib->value.set, 0);
^
make: *** [pkcs7.o] Errore 1

@gotthardp
Copy link
Contributor

The build system and build instructions have been greatly improved since 2017, so I am closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants