Building minihttp failed to run custom build command for `openssl v0.9.24`

I trying to build minihttp crate in Arch Linux
but i get following error

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m32" "-L" "/home/sys/.rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/i686-unknown-linux-gnu/lib" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.10yi2owqrgeszvsi.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.14a8twux5u7a9m0z.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.16icopflqd1ogzxv.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.19y80bzkmyqcm3ss.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.1a58jsitidmsdl6e.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.1f912gkqkipmmxtg.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.1vvra3uwfdy361ea.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.1x3zxt1xfvp9cckn.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.1zal4f87bz7lj8y1.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.22znm9c7t6ff0zsk.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.23gyqmu4bj75gi8x.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.23qdibawst3fa7cj.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2480qbg0z8bzg61g.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.254767vyca173ha4.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.25cjqtbvzba7g5i3.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.272fuc4p9j3gs0i5.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2b07ej7pqj44wn8w.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2e0g02n5ejq2y290.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2g6iotqnn93d4dju.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2gcylhq239qqsq0y.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2gq3bl5k925yl2ig.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2k5qwv0uzlwzr10h.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2kou1exu2132slfw.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2n3rl25tc0hm1lsr.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2nxgsc8qj7bb7akg.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2qf6n35prgp8xn6c.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2rzqf89o0kelritt.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2s4925bnisvwag31.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2soynnmrf06br0c.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2ujsk5kpfefshbnq.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.2wvpxi1zlmza8208.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.30rqdxaejkskzzqz.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.32021e63glwun2tt.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.34x8sfxb1z7tbjst.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.37qp8ymajiaa2j32.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3866oejknxx243iu.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3bpa29me5tu93j56.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3dgyplo59jrk4yyh.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3e2uggukjlohf176.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3ieap6einspi7cuk.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3iux5n5ci5xt547y.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3lk8eygmxelmwn62.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3ogbsx8dptqorgk3.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3polmaqd6t31rvkz.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3prsdnuiq3semgq0.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3qegtzj4tf9m4rbf.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3wbcze58ehgmfpv8.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3x74sha2xkp3800r.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3xb3aefjo80i68et.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.3xowztna21cexfeq.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.42zsz81oymugt9f.rcgu.o""/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4dyb3160yem531lo.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4fg502il9h5v89je.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4ibpkxln5eqebfpj.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4ju2zipxnguxt8d3.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4lgnw93atgoddb2v.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4oxa91f1mxi9gybx.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4q2s1guhm8dkid8z.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4s3g1bgrf7mxbvmf.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4tyc49zf2k9a288y.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.4u4bjc5a1fukcx92.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.50ozwmceruh3i10q.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.51a6brkd0j17l7zt.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.52k8nf9d37ntgxsj.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.52l1aqty5xh90zwk.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.5gmpikyvqq0758ny.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.a37mcl3mtp49g1l.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.elgx1kf7563zbit.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.ezz8allduu4v5wi.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.kgyvbv2bdjnwqvy.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.ltqcixbw3t0154t.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.nc7hfm4refihokf.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.ng5t8nfwfjin2t3.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.nly2ba78oi334du.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.nowrnpn68kn2p2q.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.pf4mkv0su5gg3mp.rcgu.o" "-o" "/home/sys/repos/pawn-scraper/target/debug/deps/libPawnScraper.so" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.1o7yvflnxjd89n31.rcgu.o" "/home/sys/repos/pawn-scraper/target/debug/deps/PawnScraper.532w06lb35nmlzbd.rcgu.o" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs""-L" "/home/sys/repos/pawn-scraper/target/debug/deps" "-L" "/home/sys/repos/pawn-scraper/target/debug/build/backtrace-sys-ece48e05d7ea8f88/out" "-L" "/home/sys/repos/pawn-scraper/target/debug/build/libudis86-sys-58d7da0a807a53c5/out" "-L" "/home/sys/.rustup/toolchains/nightly-i686-unknown-linux-gnu/lib/rustlib/i686-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libminihttp-e17bbd038060dcc4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libminiurl-e4e46527238919bb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libminihttpse-8a549fec6407e9d7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libnative_tls-2676395e1e2d3872.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libopenssl_probe-c2023cc28ab106c7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libopenssl-b7a4e0b987562081.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libopenssl_sys-2e281c0486e29591.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libforeign_types-b5b3dbd8fb3d3bb6.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libforeign_types_shared-e924d9b3b20d0866.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libscraper-da115e39a6641aec.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libselectors-b75baebee5bc0cf5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libthin_slice-3e6a5e6936d073bb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libservo_arc-568e5c1999832cf9.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libstable_deref_trait-33133f26a44b9e50.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libnodrop-e664fff29cd270c7.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libfxhash-50be1fd9019e8b6d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libbyteorder-2c342c884ceb982e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libbitflags-127a3f8538dc0954.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libhtml5ever-e5e234f76f914a07.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libmarkup5ever-54c1aeefbd0083b4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libtendril-c4c8bd644563c72c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libutf8-c24ea3dd161d1591.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libfutf-6de2f202a7e261b1.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libmac-eb170c2b3843caa9.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libstring_cache-3faac40e539c3096.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libstring_cache_shared-b4b2ce327116b6eb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libserde-14e2e832da4233f4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libprecomputed_hash-24719a876bb637a4.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libdebug_unreachable-0ecb6c2ef0d006ba.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/liblog-dabb8ae05c3dcc88.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libego_tree-14db918f15775884.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libcssparser-9b8dd6d50f537007.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libsmallvec-104ff2ac7a1b861e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libunreachable-9e6c40a69ca141dc.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libvoid-74cef0aa08f9b462.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libphf-e1fd9ded37aa7dba.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libphf_shared-683561ac0fc6959a.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libsiphasher-450df832ad07d38f.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libprocedural_masquerade-0c2f5cf6d3885fe8.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libmatches-a7189c675471fbfa.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libitoa-9d7ae1976bd4bcb2.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libdtoa_short-90ab96e32154eda5.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libdtoa-0977ea9a0c5f0cdb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libsamp_sdk-c78db4f02ae95603.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libfailure-2674fa230b1024c3.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libbacktrace-738cfded87c36440.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libbacktrace_sys-f34fc9097e9ec9bb.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/librustc_demangle-8dcf15123c4fbf79.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libcfg_if-19bc5d7b24831467.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/liblibc-545cd7ce46ca6c6e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/liblazy_static-6b09cb3f0f275529.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libencoding-ca4938d9889509ac.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libencoding_index_tradchinese-494a16315c50fb06.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libencoding_index_simpchinese-c63cb4e961050739.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libencoding_index_japanese-10802964e4e79ee0.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libencoding_index_korean-4752791342cc17be.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libencoding_index_singlebyte-54566af4481a74c7.rlib" "-Wl,--no-whole-archive" "-Wl,--start-group" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libstd-25c96112a6b6cd5e.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libpanic_unwind-0a50e614f7084f7d.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libunwind-e1c10fca0d76af37.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/liballoc_system-0b83c28f49ff2359.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/liblibc-1e812ea411d2d55c.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/liballoc-3fde89b5972a2f34.rlib" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "/tmp/rustcpDmVyM/libcore-df0fe8ae05072a57.rlib" "-Wl,--no-whole-archive" "-Wl,--end-group" "/tmp/rustcpDmVyM/libcompiler_builtins-a757c271697eece6.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" "-shared"
  = note: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../libssl.so when searching for -lssl
          /usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
          /usr/bin/ld: cannot find -lssl
          /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../libcrypto.so when searching for -lcrypto
          /usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto
          /usr/bin/ld: cannot find -lcrypto
          collect2: error: ld returned 1 exit status


error: aborting due to previous error

error: Could not compile `PawnScraper`.

My openssl version is
OpenSSL 1.1.1 11 Sep 2018
minihttp crate seems to be using old version of native tls which is further using old openssl so i forked the repository ,updated native tls and added it to my cargo.toml
But still i’m getting the same error
My cargo.toml

[package]
name = "PawnScraper"
version = "0.0.2"
authors = ["Sreyas <sreyassreelal@gmail.com>"]

[lib]
name = "PawnScraper"
crate-type = ["dylib"]

[dependencies]
samp-sdk = "0.8.4"
scraper  = "0.8.1"
minihttp = {git = "https://github.com/Sreyas-Sreelal/minihttp"}
openssl = { version = "0.10", feature = ["vendored"] }

Any help would be appreciated.I have no clue on fixing this problem i have tried almost all possible solutions available from github issues and google… :frowning:
PS: i’m using minihttp instead of reqwest because i wanted something light weight for my project.

Ok i have fixed the problem.I was trying to link 64 bit openssl libs and my project is 32bit.