类似错误:
making install mod_av make[4]: 进入目录“/home/quantum6/freeswitch/freeswitch-1.10.3/src/mod/applications/mod_av” CC libavmod_la-mod_av.lo In file included from /home/quantum6/build_libs/include/libavcodec/avcodec.h:46, from mod_av.c:35: /home/quantum6/build_libs/include/libavutil/mem.h:174:1: error: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Werror=attributes] 174 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size); | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[4]: *** [Makefile:985:libavmod_la-mod_av.lo] 错误 1
解决办法:
/configure \ CFLAGS="-Wno-error" # CXXFLAGS="-Wno-error"