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] 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", > bn_asm_src => "bn_asm.c", > bn_obj => "bn_asm.o", > bn_ops => "BN_LLONG", > build_file => "Makefile", > build_scheme => [ "unified", "unix" ], > cast_asm_src => "c_enc.c", > cast_obj => "c_enc.o", > cflags => "", > chacha_asm_src => "chacha_enc.c", > chacha_obj => "chacha_enc.o", > cmll_asm_src => "camellia.c cmll_misc.c cmll_cbc.c", > cmll_obj => "camellia.o cmll_misc.o cmll_cbc.o", > cppflags => "", > cpuid_asm_src => "mem_clr.c", > cpuid_obj => "mem_clr.o", > defines => [ ], > des_asm_src => "des_enc.c fcrypt_b.c", > des_obj => "des_enc.o fcrypt_b.o", > disable => [ ], > dso_extension => ".so", > ec_asm_src => "", > ec_obj => "", > enable => [ ], > exe_extension => "", > includes => [ ], > keccak1600_asm_src => "keccak1600.c", > keccak1600_obj => "keccak1600.o", > lflags => "", > lib_cflags => "", > lib_cppflags => "", > lib_defines => [ ], > md5_asm_src => "", > md5_obj => "", > modes_asm_src => "", > modes_obj => "", > module_cflags => "", > module_cppflags => "", > module_cxxflags => "", > module_defines => "", > module_includes => "", > module_ldflags => "", > module_lflags => "", > padlock_asm_src => "", > padlock_obj => "", > poly1305_asm_src => "", > poly1305_obj => "", > rc4_asm_src => "rc4_enc.c rc4_skey.c", > rc4_obj => "rc4_enc.o rc4_skey.o", > rc5_asm_src => "rc5_enc.c", > rc5_obj => "rc5_enc.o", > rmd160_asm_src => "", > rmd160_obj => "", > shared_cflag => "", > shared_cppflag => "", > shared_cxxflag => "", > shared_defines => "", > shared_extension => ".so", > shared_extension_simple => ".so", > shared_includes => "", > shared_ldflag => "", > shared_rcflag => "", > shared_target => "", > thread_defines => [ ], > thread_scheme => "(unknown)", > unistd => "<unistd.h>", > uplink_aux_src => "", > uplink_obj => "", > wp_asm_src => "wp_block.c", > wp_obj => "wp_block.o", > > Recorded environment: > > AR = > ARFLAGS = > AS = > ASFLAGS = > BUILDFILE = > CC = > CFLAGS = > CPP = > CPPDEFINES = > CPPFLAGS = > CPPINCLUDES = > CROSS_COMPILE = > CXX = > CXXFLAGS = > HASHBANGPERL = > LD = > LDFLAGS = > LDLIBS = > MT = > MTFLAGS = > OPENSSL_LOCAL_CONFIG_DIR = > PERL = > RANLIB = > RC = > RCFLAGS = > RM = > WINDRES = > __CNF_CFLAGS = > __CNF_CPPDEFINES = > __CNF_CPPFLAGS = > __CNF_CPPINCLUDES = > __CNF_CXXFLAGS = > __CNF_LDFLAGS = > __CNF_LDLIBS = > > Makevars: > > AR = > /opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ar > ARFLAGS = r > CC = > /opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-gcc > CFLAGS = -O3 > CPPDEFINES = > CPPFLAGS = > CPPINCLUDES = > CROSS_COMPILE = > /opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe- > CXXFLAGS = > HASHBANGPERL = /usr/bin/env perl > LDFLAGS = > LDLIBS = > PERL = /usr/bin/perl > RANLIB = > /opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-ranlib > RC = > /opt/toolchains/adtn-6/sysroots/x86_64-fslsdk-linux/usr/bin/ppce500v2-fsl-linux-gnuspe/powerpc-fsl-linux-gnuspe-windres > RCFLAGS = > > NOTE: These variables only represent the configuration view. The build file > template may have processed these variables further, please have a look at > the > build file for more exact data: > Makefile > > build file: > > Makefile > > build file templates: > > Configurations/common0.tmpl > Configurations/unix-Makefile.tmpl > Configurations/common.tmpl > > > On Thu, Aug 6, 2020 at 2:07 AM Benjamin Kaduk <bkaduk@xxxxxxxxxx> wrote: > > > 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 > >