I can't believe it's been 10 years since this thread started.
I hope you can help me with a compile error when I try to compile openwrt/lede with ffmpeg:
allformats.o -c -o libavformat/allformats.o libavformat/allformats.c
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:54:32: error: static declaration of 'cbrt' follows non-static declaration
static av_always_inline double cbrt(double x)
^~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:151:13: note: previous declaration of 'cbrt' was here
double cbrt(double);
^~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:61:31: error: static declaration of 'cbrtf' follows non-static declaration
static av_always_inline float cbrtf(float x)
^~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:152:13: note: previous declaration of 'cbrtf' was here
float cbrtf(float);
^~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:68:32: error: static declaration of 'copysign' follows non-static declaration
static av_always_inline double copysign(double x, double y)
^~~~~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:159:13: note: previous declaration of 'copysign' was here
double copysign(double, double);
^~~~~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:121:22: error: static declaration of 'erf' follows non-static declaration
static inline double erf(double z)
^~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:171:13: note: previous declaration of 'erf' was here
double erf(double);
^~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:340:0: warning: "isnan" redefined
#define isnan(x) \
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:66:0: note: this is the location of the previous definition
#define isnan(x) ( \
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:359:0: warning: "isfinite" redefined
#define isfinite(x) \
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:76:0: note: this is the location of the previous definition
#define isfinite(x) ( \
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:366:31: error: static declaration of 'hypot' follows non-static declaration
static inline av_const double hypot(double x, double y)
^~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:223:13: note: previous declaration of 'hypot' was here
double hypot(double, double);
^~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h: In function 'hypot':
./libavutil/libm.h:368:12: warning: unused variable 'ret' [-Wunused-variable]
double ret, temp;
^~~
./libavutil/libm.h: At top level:
./libavutil/libm.h:423:22: error: static declaration of 'rint' follows non-static declaration
static inline double rint(double x)
^~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:307:13: note: previous declaration of 'rint' was here
double rint(double);
^~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:430:43: error: static declaration of 'lrint' follows non-static declaration
static av_always_inline av_const long int lrint(double x)
^~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:267:13: note: previous declaration of 'lrint' was here
long lrint(double);
^~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:437:43: error: static declaration of 'lrintf' follows non-static declaration
static av_always_inline av_const long int lrintf(float x)
^~~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:268:13: note: previous declaration of 'lrintf' was here
long lrintf(float);
^~~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:444:41: error: static declaration of 'round' follows non-static declaration
static av_always_inline av_const double round(double x)
^~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:311:13: note: previous declaration of 'round' was here
double round(double);
^~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:451:40: error: static declaration of 'roundf' follows non-static declaration
static av_always_inline av_const float roundf(float x)
^~~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:312:13: note: previous declaration of 'roundf' was here
float roundf(float);
^~~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:458:41: error: static declaration of 'trunc' follows non-static declaration
static av_always_inline av_const double trunc(double x)
^~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:347:13: note: previous declaration of 'trunc' was here
double trunc(double);
^~~~~
In file included from ./libavutil/internal.h:169:0,
from ./libavutil/common.h:467,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
./libavutil/libm.h:465:40: error: static declaration of 'truncf' follows non-static declaration
static av_always_inline av_const float truncf(float x)
^~~~~~
In file included from ./libavutil/common.h:36:0,
from ./libavutil/avutil.h:290,
from ./libavutil/samplefmt.h:24,
from ./libavcodec/avcodec.h:31,
from libavformat/avformat.h:319,
from libavformat/allformats.c:22:
/media/hala/compile/lede/staging_dir/toolchain-mips_mips32_gcc-7.3.0_musl/include/math.h:348:13: note: previous declaration of 'truncf' was here
float truncf(float);
^~~~~~
common.mak:60: recipe for target 'libavformat/allformats.o' failed
make[4]: *** [libavformat/allformats.o] Error 1
make[4]: Leaving directory '/media/hala/compile/lede/build_dir/target-mips_mips32_musl/ffmpeg-mini/ffmpeg-3.2.10'
Makefile:714: recipe for target '/media/hala/compile/lede/build_dir/target-mips_mips32_musl/ffmpeg-mini/ffmpeg-3.2.10/.built' failed
make[3]: *** [/media/hala/compile/lede/build_dir/target-mips_mips32_musl/ffmpeg-mini/ffmpeg-3.2.10/.built] Error 2
make[3]: Leaving directory '/media/hala/compile/lede/feeds/packages/multimedia/ffmpeg'
package/Makefile:107: recipe for target 'package/feeds/packages/ffmpeg/compile' failed
make[2]: *** [package/feeds/packages/ffmpeg/compile] Error 2
make[2]: Leaving directory '/media/hala/compile/lede'
package/Makefile:103: recipe for target '/media/hala/compile/lede/staging_dir/target-mips_mips32_musl/stamp/.package_compile' failed
make[1]: *** [/media/hala/compile/lede/staging_dir/target-mips_mips32_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/media/hala/compile/lede'
/media/hala/compile/lede/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2