Re: 'in_addr_t' in openssl 1.1.1g ??
Ah, so it really is the "gcc" configure target (I had to look up that such a thing even existed!). Unfortunately, 'gcc' implies 32-bit, and your x86_64-fslsdk-linux suggests that you're targetting a 64-bit system. Such a mismatch of configurations could easily cause this sort of compile error due to inconsistent input to the preprocessor conditionals. Would linux-x86_64 be more appropriate for your system? -Ben On Thu, Aug 06, 2020 at 02:23:40AM +0530, prudvi raj wrote: > Another thing , 'make && make all ' is successful , but the same openssl > files when compiled during my project's compilation show this error . > PROJECT DIR << make project here compiles all files. > |- ..folder 1. > |- openssl > |-... > Btw, Project uses same CC - > "/opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-gcc" > Hope this clears some things up. > $ ./configdata.pm -d > > Command line (with current working directory = .): > > /usr/bin/perl ./Configure no-threads no-dso no-ct no-shared no-zlib > no-asm no-engine no-bf no-aria no-blake2 no-camellia no-cast no-md2 no-md4 > no-mdc2 no-ocsp no-rc2 no-rc5 no-hw-padlock no-idea no-srp gcc > --with-rand-seed=none > --cross-compile-prefix=/opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe- > > Perl information: > > /usr/bin/perl > 5.10.1 for x86_64-linux-thread-multi > > Enabled features: > > async > autoalginit > autoerrinit > autoload-config > buildtest-c\+\+ > capieng > chacha > cmac > cms > comp > deprecated > des > dgram > dh > dsa > dtls > ec > ec2m > ecdh > ecdsa > err > filenames > gost > hw(-.+)? > makedepend > multiblock > nextprotoneg > pinshared > ocb > poly1305 > posix-io > psk > rc4 > rdrand > rfc3779 > rmd160 > scrypt > seed > siphash > sm2 > sm3 > sm4 > sock > srtp > sse2 > ssl > static-engine > stdio > tests > tls > ts > ui-console > whirlpool > tls1 > tls1-method > tls1_1 > tls1_1-method > tls1_2 > tls1_2-method > tls1_3 > dtls1 > dtls1-method > dtls1_2 > dtls1_2-method > > Disabled features: > > afalgeng[cascade] OPENSSL_NO_AFALGENG > aria[option] OPENSSL_NO_ARIA (skip > crypto/aria) > asan[default] OPENSSL_NO_ASAN > asm [option] OPENSSL_NO_ASM > bf [option] OPENSSL_NO_BF (skip > crypto/bf) > blake2 [option] OPENSSL_NO_BLAKE2 (skip > crypto/blake2) > camellia[option] OPENSSL_NO_CAMELLIA (skip > crypto/camellia) > cast[option] OPENSSL_NO_CAST (skip > crypto/cast) > crypto-mdebug [default] OPENSSL_NO_CRYPTO_MDEBUG > crypto-mdebug-backtrace [default] > OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE > ct [option] OPENSSL_NO_CT (skip > crypto/ct) > devcryptoeng[default] OPENSSL_NO_DEVCRYPTOENG > dso [option] OPENSSL_NO_DSO > dynamic-engine [cascade] > ec_nistp_64_gcc_128 [default] > OPENSSL_NO_EC_NISTP_64_GCC_128 > egd [default] OPENSSL_NO_EGD > engine [option] OPENSSL_NO_ENGINE (skip > crypto/engine, engines) > external-tests [default] OPENSSL_NO_EXTERNAL_TESTS > fuzz-libfuzzer [default] OPENSSL_NO_FUZZ_LIBFUZZER > fuzz-afl[default] OPENSSL_NO_FUZZ_AFL > heartbeats [default] OPENSSL_NO_HEARTBEATS > idea[option] OPENSSL_NO_IDEA (skip > crypto/idea) > md2 [option] OPENSSL_NO_MD2 (skip > crypto/md2) > md4 [option] OPENSSL_NO_MD4 (skip > crypto/md4) > mdc2[option] OPENSSL_NO_MDC2 (skip > crypto/mdc2) > msan[default] OPENSSL_NO_MSAN > ocsp[option] OPENSSL_NO_OCSP (skip > crypto/ocsp) > pic [no-shared-target] > rc2 [option] OPENSSL_NO_RC2 (skip > crypto/rc2) > rc5 [option] OPENSSL_NO_RC5 (skip > crypto/rc5) > sctp[default] OPENSSL_NO_SCTP > shared [option] > srp [option] OPENSSL_NO_SRP (skip > crypto/srp) > ssl-trace [default] OPENSSL_NO_SSL_TRACE > threads [option] > ubsan [default]
Re: 'in_addr_t' in openssl 1.1.1g ??
Another thing , 'make && make all ' is successful , but the same openssl files when compiled during my project's compilation show this error . PROJECT DIR << make project here compiles all files. |- ..folder 1. |- openssl |-... Btw, Project uses same CC - "/opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-gcc" Hope this clears some things up. $ ./configdata.pm -d Command line (with current working directory = .): /usr/bin/perl ./Configure no-threads no-dso no-ct no-shared no-zlib no-asm no-engine no-bf no-aria no-blake2 no-camellia no-cast no-md2 no-md4 no-mdc2 no-ocsp no-rc2 no-rc5 no-hw-padlock no-idea no-srp gcc --with-rand-seed=none --cross-compile-prefix=/opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe- Perl information: /usr/bin/perl 5.10.1 for x86_64-linux-thread-multi Enabled features: async autoalginit autoerrinit autoload-config buildtest-c\+\+ capieng chacha cmac cms comp deprecated des dgram dh dsa dtls ec ec2m ecdh ecdsa err filenames gost hw(-.+)? makedepend multiblock nextprotoneg pinshared ocb poly1305 posix-io psk rc4 rdrand rfc3779 rmd160 scrypt seed siphash sm2 sm3 sm4 sock srtp sse2 ssl static-engine stdio tests tls ts ui-console whirlpool tls1 tls1-method tls1_1 tls1_1-method tls1_2 tls1_2-method tls1_3 dtls1 dtls1-method dtls1_2 dtls1_2-method Disabled features: afalgeng[cascade] OPENSSL_NO_AFALGENG aria[option] OPENSSL_NO_ARIA (skip crypto/aria) asan[default] OPENSSL_NO_ASAN asm [option] OPENSSL_NO_ASM bf [option] OPENSSL_NO_BF (skip crypto/bf) blake2 [option] OPENSSL_NO_BLAKE2 (skip crypto/blake2) camellia[option] OPENSSL_NO_CAMELLIA (skip crypto/camellia) cast[option] OPENSSL_NO_CAST (skip crypto/cast) crypto-mdebug [default] OPENSSL_NO_CRYPTO_MDEBUG crypto-mdebug-backtrace [default] OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE ct [option] OPENSSL_NO_CT (skip crypto/ct) devcryptoeng[default] OPENSSL_NO_DEVCRYPTOENG dso [option] OPENSSL_NO_DSO dynamic-engine [cascade] ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128 egd [default] OPENSSL_NO_EGD engine [option] OPENSSL_NO_ENGINE (skip crypto/engine, engines) external-tests [default] OPENSSL_NO_EXTERNAL_TESTS fuzz-libfuzzer [default] OPENSSL_NO_FUZZ_LIBFUZZER fuzz-afl[default] OPENSSL_NO_FUZZ_AFL heartbeats [default] OPENSSL_NO_HEARTBEATS idea[option] OPENSSL_NO_IDEA (skip crypto/idea) md2 [option] OPENSSL_NO_MD2 (skip crypto/md2) md4 [option] OPENSSL_NO_MD4 (skip crypto/md4) mdc2[option] OPENSSL_NO_MDC2 (skip crypto/mdc2) msan[default] OPENSSL_NO_MSAN ocsp[option] OPENSSL_NO_OCSP (skip crypto/ocsp) pic [no-shared-target] rc2 [option] OPENSSL_NO_RC2 (skip crypto/rc2) rc5 [option] OPENSSL_NO_RC5 (skip crypto/rc5) sctp[default] OPENSSL_NO_SCTP shared [option] srp [option] OPENSSL_NO_SRP (skip crypto/srp) ssl-trace [default] OPENSSL_NO_SSL_TRACE threads [option] ubsan [default] OPENSSL_NO_UBSAN unit-test [default] OPENSSL_NO_UNIT_TEST weak-ssl-ciphers[default] OPENSSL_NO_WEAK_SSL_CIPHERS zlib[option] zlib-dynamic[default] ssl3[default] OPENSSL_NO_SSL3 ssl3-method [default] OPENSSL_NO_SSL3_METHOD Config target attributes: AR => "ar", ARFLAGS => "r", CC => "gcc", CFLAGS => "-O3", HASHBANGPERL => "/usr/bin/env perl", RANLIB => "ranlib", RC => "windres", aes_asm_src => "aes_core.c aes_cbc.c", aes_obj => "aes_core.o aes_cbc.o", apps_aux_src => "", apps_init_src => "", apps_obj => "", bf_asm_src => "bf_enc.c", bf_obj => "bf_enc.o",
Re: 'in_addr_t' in openssl 1.1.1g ??
On Thu, Aug 06, 2020 at 01:51:35AM +0530, prudvi raj wrote: > Hi there, > > I got this error during compilation , in file b_addr.c : > In function 'BIO_lookup_ex': > /b_addr.c:748:9: error: unknown type name 'in_addr_t' > > I see that "in_addr_t" is defined in "netinet/in.h" & "arpa/inet.h" in > toolchain (typedef uint32_t in_addr_t;). > i have even tried to #include<> these files directly but that doesn't seem > to fix the error. Btw, these files are included already , but under > conditional #if 's. > > I am surprised why the error persists , even after directly including the > respective source file ?? > > Here's the config options i used : > ./Configure no-threads no-dso no-ct no-shared no-zlib no-asm no-engine > no-bf no-aria no-blake2 no-camellia no-cast no-md2 no-md4 no-mdc2 no-ocsp > no-rc2 no-rc5 no-hw-padlock no-idea no-srp gcc --with-rand-seed=none > > --cross-compile-prefix=/opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe- > > PS : same error without any cross compile prefix , using only gcc. The `./configdata.pm -d` output might be helpful. -Ben
'in_addr_t' in openssl 1.1.1g ??
Hi there, I got this error during compilation , in file b_addr.c : In function 'BIO_lookup_ex': /b_addr.c:748:9: error: unknown type name 'in_addr_t' I see that "in_addr_t" is defined in "netinet/in.h" & "arpa/inet.h" in toolchain (typedef uint32_t in_addr_t;). i have even tried to #include<> these files directly but that doesn't seem to fix the error. Btw, these files are included already , but under conditional #if 's. I am surprised why the error persists , even after directly including the respective source file ?? Here's the config options i used : ./Configure no-threads no-dso no-ct no-shared no-zlib no-asm no-engine no-bf no-aria no-blake2 no-camellia no-cast no-md2 no-md4 no-mdc2 no-ocsp no-rc2 no-rc5 no-hw-padlock no-idea no-srp gcc --with-rand-seed=none --cross-compile-prefix=/opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe- PS : same error without any cross compile prefix , using only gcc. Thanks, Prudvi.