Article 5T3K2 libzrtpcpp 2.3.4 make error

libzrtpcpp 2.3.4 make error

by
prashantsingh@dialtronic
from LinuxQuestions.org on (#5T3K2)
I tried to make libzrtpcpp2.3.4, but getting this error
while configure is succeeding.

Code:../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp: In constructor 'ZrtpDH::ZrtpDH(const char*)':
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:226:15: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
226 | tmpCtx->g = BN_new();
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:227:27: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
227 | BN_set_word(tmpCtx->g, DH_GENERATOR_2);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:230:19: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
230 | tmpCtx->p = BN_dup(bnP2048);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:232:19: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
232 | tmpCtx->priv_key = BN_bin2bn(random, 32, NULL);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:235:19: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
235 | tmpCtx->p = BN_dup(bnP3072);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:237:19: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
237 | tmpCtx->priv_key = BN_bin2bn(random, 32, NULL);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp: In member function 'int32_t ZrtpDH::computeSecretKey(uint8_t*, uint8_t*)':
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:272:19: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
272 | if (tmpCtx->pub_key != NULL) {
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:273:27: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
273 | BN_free(tmpCtx->pub_key);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:275:15: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
275 | tmpCtx->pub_key = BN_bin2bn(pubKeyBytes, getDhSize(), NULL);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:276:45: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
276 | return DH_compute_key(secret, tmpCtx->pub_key, tmpCtx);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
In file included from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:41:
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp: In member function 'int32_t ZrtpDH::getPubKeySize() const':
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:322:50: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
322 | return BN_num_bytes(static_cast<DH*>(ctx)->pub_key);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp: In member function 'int32_t ZrtpDH::getPubKeyBytes(uint8_t*) const':
../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:341:47: error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
341 | return BN_bn2bin(static_cast<DH*>(ctx)->pub_key, buf + prepend);
| ^~
In file included from /home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/crypto.h:25,
from ../src/libzrtpcpp/crypto/openssl/ZrtpDH.cpp:39:
/home/dialtronics/DIALT_WORK/RPI_YOCTO/PS_RPI_BUILD/AGNT_BSP/workspace/AGNT_SRVR/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/libzrtpcpp/2.3.4-r0/recipe-sysroot/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH' {aka 'struct dh_st'}
104 | typedef struct dh_st DH;
| ^~~~~latest?d=yIl2AUoC8zA latest?i=GUYUyxuEs7w:OX4cJdO3Nls:F7zBnMy latest?i=GUYUyxuEs7w:OX4cJdO3Nls:V_sGLiP latest?d=qj6IDK7rITs latest?i=GUYUyxuEs7w:OX4cJdO3Nls:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments