Gcc編譯出錯處理 openssl 依賴問題

2021-08-03 11:32:34 字數 324 閱讀 8626

出錯資訊:error: dereferencing pointer to incomplete type 'rsa '

原因:由於預設使用了openssl 1.1.x 版本,導致的api不一致引起

解決:1,直接安裝openssl1.0版本,debian 系:apt-get install libssl1.0-dev

2,編譯openssl 1.0 版本,pkg_config_path 指向 1.0 版本,如 pkg_config_path=/usr/local/openssl-1.0.2l/lib/pkgconfig

由於環境變數可能存在眾多複雜的替換,方法2不一定能行

wireless tools編譯出錯

編譯wireless工具,彈出如下錯誤 root lqm wireless tools.29 make opt freescale usr local arm eabi 4.4.0 bin arm eabi gcc os w wall wstrict prototypes wmissing prot...

magent編譯出錯

編譯若出錯加 紅色字型 這是為什麼呢?libs levent cflags lm lrt wall o2 g cc gcc progs magent all progs stprog magent.o ketama.o ketama.o ketama.c ketama.h cc cflags inc...

交叉編譯出錯

root tim linux 2.6.29 make scripts kconfig conf s arch arm kconfig chk include linux version.h make 1 include asm arm mach types.h 是最新的。chk include li...