[MPlayer-users] libmpcodecs/mp_image.c:39:39: error: 'INT_MAX' undeclared (first use in this function)
Antonio Olivares
olivares14031 at yahoo.com
Fri Oct 20 16:14:05 EEST 2023
Dear Mplayer users/developers,
I have for a while attempted to update mplayer svn but I have encountered this problem. It has not gone away.
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -DZLIB_CONST -I/usr/include/libxml2 -c -o libmpcodecs/vd_lzo.o libmpcodecs/vd_lzo.c
libmpcodecs/mp_image.c: In function 'mp_image_alloc_planes':
libmpcodecs/mp_image.c:39:39: error: 'INT_MAX' undeclared (first use in this function)
39 | if ((unsigned int)mpi->height + 2 > INT_MAX ||
| ^~~~~~~
libmpcodecs/mp_image.c:34:1: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
33 | #include "mp_msg.h"
+++ |+#include <limits.h>
34 |
libmpcodecs/mp_image.c:39:39: note: each undeclared identifier is reported only once for each function it appears in
39 | if ((unsigned int)mpi->height + 2 > INT_MAX ||
| ^~~~~~~
make: *** [Makefile:730: libmpcodecs/mp_image.o] Error 1
make: *** Waiting for unfinished jobs....
[olivares at fedora mplayer]$
I hope the fix comes in, as I will attempt to update to Fedora 39 as soon as I can(when it becomes available).
Best Regards,
Antonio
More information about the MPlayer-users
mailing list