Problem with openvpn-build setup

Weekly dev snapshots are available for testing.
We talk about them here. Testing features in the dev snapshot helps the features make it to stable.
Forum rules
Please report your experience with testing branch. Include what you were using and how
If there is a problem, the more info the better!
Post Reply
realtebo
OpenVpn Newbie
Posts: 6
Joined: Wed Jul 25, 2018 9:14 pm

Problem with openvpn-build setup

Post by realtebo » Wed Jul 25, 2018 9:29 pm

I'm landed on this page: SettingUpGenericBuildsystem[/wiki]

I'm trying to run [url=https://community.openvpn.net/openvpn/a ... ystem.7.sh]setup-generic-buildsystem.7.sh


My problem is when I'm trying to build osslsigncode

I can run

Code: Select all

configure
without problem, but when I launch

Code: Select all

make
I got this

Code: Select all

make  all-am
make[1]: Entering directory '/home/realtebo/osslsigncode-1.7.1'
gcc -DHAVE_CONFIG_H -I.       -g -O2 -MT osslsigncode.o -MD -MP -MF .deps/osslsigncode.Tpo -c -o osslsigncode.o osslsigncode.c
osslsigncode.c: In function ‘createOpus’:
osslsigncode.c:432:36: warning: implicit declaration of function ‘M_ASN1_IA5STRING_new’; did you mean ‘ASN1_IA5STRING_new’? [-Wimplicit-function-declaration]
   info->programName->value.ascii = M_ASN1_IA5STRING_new();
                                    ^~~~~~~~~~~~~~~~~~~~
                                    ASN1_IA5STRING_new
osslsigncode.c:432:34: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   info->programName->value.ascii = M_ASN1_IA5STRING_new();
                                  ^
osslsigncode.c:440:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   info->moreInfo->value.url = M_ASN1_IA5STRING_new();
                             ^
osslsigncode.c: In function ‘add_timestamp’:
osslsigncode.c:544:14: error: storage size of ‘mdctx’ isn’t known
   EVP_MD_CTX mdctx;
              ^~~~~
osslsigncode.c:556:3: warning: implicit declaration of function ‘M_ASN1_OCTET_STRING_set’; did you mean ‘ASN1_OCTET_STRING_set’? [-Wimplicit-function-declaration]
   M_ASN1_OCTET_STRING_set(req->messageImprint->digest, mdbuf, EVP_MD_size(md));
   ^~~~~~~~~~~~~~~~~~~~~~~
   ASN1_OCTET_STRING_set
osslsigncode.c: In function ‘cleanup_lib_state’:
osslsigncode.c:744:2: warning: ‘ERR_remove_thread_state’ is deprecated [-Wdeprecated-declarations]
  ERR_remove_thread_state(NULL);
  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/err.h:21,
                 from osslsigncode.c:98:
/usr/include/openssl/err.h:247:1: note: declared here
 DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
 ^
osslsigncode.c: At top level:
osslsigncode.c:841:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 DECLARE_STACK_OF(ASN1_OCTET_STRING)
 ^~~~~~~~~~~~~~~~
osslsigncode.c: In function ‘DECLARE_STACK_OF’:
osslsigncode.c:850:1: error: expected declaration specifiers before ‘DECLARE_STACK_OF’
 DECLARE_STACK_OF(SpcAttributeTypeAndOptionalValue)
 ^~~~~~~~~~~~~~~~
osslsigncode.c:916:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:996:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:1018:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:1028:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 static unsigned char nib2val(unsigned char c) {
                                               ^
osslsigncode.c:1041:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 static int verify_leaf_hash(X509 *leaf, const char *leafhash) {
                                                               ^
osslsigncode.c:1133:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 static PKCS7 *pkcs7_get_nested_signature(PKCS7 *p7, int *has_sig) {
                                                                   ^
osslsigncode.c:1149:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 static int pkcs7_set_nested_signature(PKCS7 *p7, PKCS7 *p7nest) {
                                                                 ^
osslsigncode.c:1828:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:1863:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:1917:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:1970:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2102:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2149:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2170:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2184:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2193:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2214:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2238:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:2276:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
osslsigncode.c:841:1: error: parameter name omitted
 DECLARE_STACK_OF(ASN1_OCTET_STRING)
 ^~~~~~~~~~~~~~~~
osslsigncode.c:3157:1: error: expected ‘{’ at end of input
 }
 ^
Makefile:399: recipe for target 'osslsigncode.o' failed
make[1]: *** [osslsigncode.o] Error 1
make[1]: Leaving directory '/home/realtebo/osslsigncode-1.7.1'
Makefile:290: recipe for target 'all' failed
make: *** [all] Error 2

I would like to simply suppress warnings, like suggested, for examples adding

Code: Select all

-Wimplicit-function-declaration
option to gcc.

... but I do not know how to do this

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4867
Joined: Fri Jun 03, 2016 1:17 pm

Re: Problem with openvpn-build setup

Post by TinCanTech » Fri Jul 27, 2018 12:01 pm


realtebo
OpenVpn Newbie
Posts: 6
Joined: Wed Jul 25, 2018 9:14 pm

Re: Problem with openvpn-build setup

Post by realtebo » Fri Jul 27, 2018 2:17 pm

What exactly in the linked page can help me?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 4867
Joined: Fri Jun 03, 2016 1:17 pm

Re: Problem with openvpn-build setup

Post by TinCanTech » Fri Jul 27, 2018 3:18 pm

The instructions for using the build system are on the page I linked you to ..

realtebo
OpenVpn Newbie
Posts: 6
Joined: Wed Jul 25, 2018 9:14 pm

Re: Problem with openvpn-build setup

Post by realtebo » Sun Jul 29, 2018 7:03 pm

It worked. thanks.

I don't understand why two build systems... and one not working, but this works...

Now, is there a webmin for this standalone ce edition?

Post Reply